From patchwork Tue Sep 10 08:51:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 1160100 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=prevas.dk Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=prevas.se header.i=@prevas.se header.b="sdKPiApT"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46SJgw197Jz9s4Y for ; Tue, 10 Sep 2019 18:52:28 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id E6E96C21D65; Tue, 10 Sep 2019 08:52:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 09D6EC21DC1; Tue, 10 Sep 2019 08:51:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AEB05C21C38; Tue, 10 Sep 2019 08:51:56 +0000 (UTC) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40111.outbound.protection.outlook.com [40.107.4.111]) by lists.denx.de (Postfix) with ESMTPS id B03C0C21C38 for ; Tue, 10 Sep 2019 08:51:55 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FO9Dd8utDA2H8wWsMDxHMTbk/xm2IYvhzlrG7pAmp4qZy5tQ7GwWPenJuhi9FiMbDSjb31lOXWtQv5ZYr0vudPhyFHI94guD66f8Xmo7p52WAHTyJBcZizCqyqYRnVJlKqvcXi35CqpYvYSi4sov9mAaAFMvEf8s6A6KqwtIOcTDSxhMAaETepoy0YYoZAtqnfQ26X6a/XsRekn0rjhbXBshm8OW5qeDfFffIP3hFyC6tpV9hCPZ+eiV1c0Po8aKPPE6VNdvIwDwDAqnhkttn0gM51303tVhVonONo8x2EKnPn9kVtmh7Cz/+kSrjMd6OJ9PVSWVYUwMzaT1Tz28VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y1lq0SYiVr8Tie6ujpeMjyOkioH+ZyRj9voQky3HCOc=; b=PADNlGDohcJZkNNAeJFtCu9zUetGHJI5v4o7zHKmH/xb88O+QMGgZNnqDH/Gl/wEQTRQXR48dbU20I+ZsZOcIiOHGUnQBHLwSHZrUCgOk1jvPaAARFUr4F3xzDxx/EiLk4VeFzcQIIxRfaCLwmsBHJAe7RcP1sUA7j/UWKVXWpprnHj8gz6GiofV6e3Y1O35O4PZz9eBN8yjLY3jmNI4uVATJsJ84sy+BkxhpDkaiQYjnvUiJb9tDj3SJxpgMzLEQmOEFLRJfHiggjrocSYh9yCYWRFRv2oBMFfR0FvbiID+uGXnnjsvTuaatGXaXTsC0LYfwm3RrMetBva5oMQTIg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.se; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.se; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y1lq0SYiVr8Tie6ujpeMjyOkioH+ZyRj9voQky3HCOc=; b=sdKPiApTxke81RjsJznqtW+++tmoWN2ihnjByFDW9yQHVoSiRH2qjPWHMfa0np5hdlnbcjc7Y5Fi3Wf9NNyJz/P0bfG1gfsNNRJD6S8OVTPth0XEnwwziVy5VrxdeowxIXwyYW7g7te9qss6xthEKTyVwN1dv903eDrvjfY1uOI= Received: from AM0PR10MB3476.EURPRD10.PROD.OUTLOOK.COM (10.186.175.83) by AM0PR10MB3699.EURPRD10.PROD.OUTLOOK.COM (10.186.175.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.13; Tue, 10 Sep 2019 08:51:54 +0000 Received: from AM0PR10MB3476.EURPRD10.PROD.OUTLOOK.COM ([fe80::1819:3dc9:c8a1:4d96]) by AM0PR10MB3476.EURPRD10.PROD.OUTLOOK.COM ([fe80::1819:3dc9:c8a1:4d96%2]) with mapi id 15.20.2241.018; Tue, 10 Sep 2019 08:51:54 +0000 From: Rasmus Villemoes To: "u-boot@lists.denx.de" Thread-Topic: [PATCH 2/2] ARM: asm/io.h: remove redundant #if !defined(readb) block Thread-Index: AQHVZ7T+M4DabE08jESTcWSyAVoqAw== Date: Tue, 10 Sep 2019 08:51:54 +0000 Message-ID: <20190910085144.4478-2-rasmus.villemoes@prevas.dk> References: <20190910085144.4478-1-rasmus.villemoes@prevas.dk> In-Reply-To: <20190910085144.4478-1-rasmus.villemoes@prevas.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR0102CA0023.eurprd01.prod.exchangelabs.com (2603:10a6:7:14::36) To AM0PR10MB3476.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:15e::19) x-mailer: git-send-email 2.20.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=Rasmus.Villemoes@prevas.se; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [81.216.59.226] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 705b23a6-ae22-4082-3033-08d735cc2128 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:AM0PR10MB3699; x-ms-traffictypediagnostic: AM0PR10MB3699: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3173; x-forefront-prvs: 01565FED4C x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(346002)(39850400004)(396003)(366004)(376002)(136003)(189003)(199004)(256004)(66446008)(66946007)(66476007)(64756008)(66556008)(2906002)(50226002)(446003)(8976002)(44832011)(486006)(476003)(2351001)(2616005)(102836004)(11346002)(8936002)(478600001)(26005)(186003)(66066001)(42882007)(53936002)(14454004)(5640700003)(6512007)(386003)(6506007)(25786009)(54906003)(3846002)(4326008)(6116002)(107886003)(6916009)(71200400001)(6486002)(36756003)(7736002)(2501003)(316002)(52116002)(81156014)(81166006)(8676002)(305945005)(99286004)(1076003)(6436002)(5660300002)(71190400001)(76176011); DIR:OUT; SFP:1102; SCL:1; SRVR:AM0PR10MB3699; H:AM0PR10MB3476.EURPRD10.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: prevas.se does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 8LnyZC6HMZhfPX9axavG5yegpJTXG+IKnfRIgXScvc1Fuosmrw6d3ZTWvuQsLwQldSMvCnkosSdGN8PyaOHDwXhUC4VUAM38myELgRmOMzkuBG3+eidHxPAAsQNJOIB6EiXVYEm2EhBjvyV5VUKQ24TxbiNd203mmw1Iff681inmrLeVWkNKaz5852/DXOQDvu9Xhd0bqSg23TJHe5K0OiauLTftrwKwYIBsAj7RY8Qlc5hFzZp02nq3nw9q+nxm52ItwxflvgRBcFUO8o9Q3S1lj0YTIJxKEl+pHQ0/5ThW8f4PXRtw+s5d6p6PqLGO/9ILldXNWl+UtD0kpv7LanYdD3Nl2lraMO1LWxQa25oBWyNqJyhO/MFIqu5yLS3jjoI5xTqLcx7izBG528FQbnZsG9XgpKzVcL8CQoEuMQs= MIME-Version: 1.0 X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: 705b23a6-ae22-4082-3033-08d735cc2128 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Sep 2019 08:51:54.3988 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: qG0p3bQaV/UxO5a/O8phCvbw/QizCZlPHHRPmUxPYpa9d53hMUTA9sg2DNd1OtFOz/toy1ze++EsYHTJ333UN93p0i2EZHWlXTevbiujEDY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR10MB3699 Cc: Rasmus Villemoes , Tom Rini Subject: [U-Boot] [PATCH 2/2] ARM: asm/io.h: remove redundant #if !defined(readb) block X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" readb is unconditionally defined earlier in io.h, so there's no point checking whether it's undefined. Signed-off-by: Rasmus Villemoes --- arch/arm/include/asm/io.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index 78b183d42f..723f3cf497 100644 --- a/arch/arm/include/asm/io.h +++ b/arch/arm/include/asm/io.h @@ -319,21 +319,6 @@ extern void __readwrite_bug(const char *fn); #define memcpy_fromio(a, b, c) memcpy((a), (void *)(b), (c)) #define memcpy_toio(a, b, c) memcpy((void *)(a), (b), (c)) -#if !defined(readb) - -#define readb(addr) (__readwrite_bug("readb"),0) -#define readw(addr) (__readwrite_bug("readw"),0) -#define readl(addr) (__readwrite_bug("readl"),0) -#define writeb(v,addr) __readwrite_bug("writeb") -#define writew(v,addr) __readwrite_bug("writew") -#define writel(v,addr) __readwrite_bug("writel") - -#define eth_io_copy_and_sum(a,b,c,d) __readwrite_bug("eth_io_copy_and_sum") - -#define check_signature(io,sig,len) (0) - -#endif - /* * If this architecture has ISA IO, then define the isa_read/isa_write * macros.