From patchwork Tue Apr 30 10:18:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 1093152 X-Patchwork-Delegate: sbabic@denx.de 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=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="i8IvePau"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44td1y0HW6z9s9y for ; Tue, 30 Apr 2019 20:24:54 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id B7CD3C21E1D; Tue, 30 Apr 2019 10:24:04 +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 3E5DBC21E73; Tue, 30 Apr 2019 10:18:36 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 04F3CC21DF9; Tue, 30 Apr 2019 10:18:27 +0000 (UTC) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80073.outbound.protection.outlook.com [40.107.8.73]) by lists.denx.de (Postfix) with ESMTPS id 219C2C21E42 for ; Tue, 30 Apr 2019 10:18:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sOpDsSWZtVuiM9EoyHWI19SoSUyFh8vKaRmn8IPJjEY=; b=i8IvePau1SE0vQSZ/TmTJPl3D0/oaSy/MGvdVfqqnSdJVGlxIK91T8QzbXuh04v5O93rm05yiBxgA/zlkot9YxrUiU6IwTDcRda6Mvu1OfZfB4LovZ8PyTjYPRLkeGpnm4pajLEGdaQO/PyhdMS83Bcp1l6Als3HQc6eCUMZ/ZU= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB5204.eurprd04.prod.outlook.com (20.176.214.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.15; Tue, 30 Apr 2019 10:18:23 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::3173:24:d401:2378]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::3173:24:d401:2378%6]) with mapi id 15.20.1835.018; Tue, 30 Apr 2019 10:18:23 +0000 From: Peng Fan To: "sbabic@denx.de" , "festevam@gmail.com" , "lukma@denx.de" Thread-Topic: [i.MX8MM+CCF 15/41] linux: compat: guard PAGE_SIZE Thread-Index: AQHU/z4KecHfw2SISke9iCfsb1qPcg== Date: Tue, 30 Apr 2019 10:18:23 +0000 Message-ID: <20190430103056.32537-16-peng.fan@nxp.com> References: <20190430103056.32537-1-peng.fan@nxp.com> In-Reply-To: <20190430103056.32537-1-peng.fan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.16.4 x-clientproxiedby: HK0PR03CA0057.apcprd03.prod.outlook.com (2603:1096:203:52::21) To AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e4f7d52c-f0da-498f-735d-08d6cd552ce1 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:AM0PR04MB5204; x-ms-traffictypediagnostic: AM0PR04MB5204: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:187; x-forefront-prvs: 00235A1EEF x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(376002)(136003)(346002)(366004)(189003)(199004)(7736002)(8676002)(110136005)(4744005)(305945005)(6512007)(53936002)(50226002)(81156014)(66066001)(4326008)(68736007)(25786009)(97736004)(2501003)(316002)(44832011)(54906003)(8936002)(26005)(186003)(102836004)(446003)(476003)(486006)(76176011)(66446008)(71190400001)(71200400001)(11346002)(66946007)(99286004)(81166006)(66556008)(64756008)(52116002)(66476007)(6506007)(14454004)(6486002)(2616005)(1076003)(73956011)(6436002)(2201001)(478600001)(3846002)(86362001)(5660300002)(386003)(14444005)(36756003)(2906002)(6116002)(256004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB5204; H:AM0PR04MB4481.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: TgmFCUFhkyJiYIa3YVGe8CgZ8BNt03UjguNCc6oH4/P+bNEsbYtZViExqiCpst6zJvReO5G+IvkxTharus2ONy7BpyT9aMSb4WY+osjYXwiyIy7Nz+aHOFj0Pv3zQqr/EnbtMVmvx/AZ0/4c37Xhwmp7hsVAhExha2Gu6LjVa0IO4YtXmyMV2cxQE8C5mP1okYFqxk7QWvrgwmqKO5OQNI3pew6XhRqIAlwHDJP+esDj1u8HOTsMj1uFUhHq/TS1fwqA7fERyvVQIoly0+2scMp9+15PgnoZLdCOfS/8NgZsU1ZGkSvACO8dW313HigE2PbVrvOSpdU6NYI3eDGnkSnlSk6UArujX17JICtGBUNk6XozW55Pvw8Ee5TOBR6khd1ASykJq1Wj8SUGmv2UliKVUh6kc53jG6c8eDjmtnE= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e4f7d52c-f0da-498f-735d-08d6cd552ce1 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Apr 2019 10:18:23.2848 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5204 Cc: "trini@konsulko.com" , "u-boot@lists.denx.de" , dl-uboot-imx , "sr@denx.de" Subject: [U-Boot] [i.MX8MM+CCF 15/41] linux: compat: guard PAGE_SIZE 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" Some archs defined PAGE_SIZE, such as ARMv8, to avoid build warning, guard PAGE_SIZE. Signed-off-by: Peng Fan --- include/linux/compat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/compat.h b/include/linux/compat.h index d0f51baab4..c1f8bdf8f2 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h @@ -123,7 +123,9 @@ static inline void kmem_cache_destroy(struct kmem_cache *cachep) #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) +#ifndef PAGE_SIZE #define PAGE_SIZE 4096 +#endif /* drivers/char/random.c */ #define get_random_bytes(...)