From patchwork Sun Feb 24 13:13:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 10827965 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9033713B5 for ; Sun, 24 Feb 2019 13:13:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 63F9E2AEDE for ; Sun, 24 Feb 2019 13:13:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C2482AEF1; Sun, 24 Feb 2019 13:13:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E1EA2AEDE for ; Sun, 24 Feb 2019 13:13:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2B4B68E0165; Sun, 24 Feb 2019 08:13:50 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 262F68E015B; Sun, 24 Feb 2019 08:13:50 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 12D568E0165; Sun, 24 Feb 2019 08:13:50 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by kanga.kvack.org (Postfix) with ESMTP id C7B2A8E015B for ; Sun, 24 Feb 2019 08:13:49 -0500 (EST) Received: by mail-pg1-f200.google.com with SMTP id g188so5023631pgc.22 for ; Sun, 24 Feb 2019 05:13:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:thread-topic :thread-index:date:message-id:accept-language:content-language :content-transfer-encoding:mime-version; bh=I2G4O9wlADocTI+KLYf2C4pFRKOP+5n5ebNSX0r2+y0=; b=HCreRpSf+miPPfTe8ZLNv/VA7W5MxP6WH3BnCBshJY7GhsD4Wv70YkBqyxz4mQnf/F vdnd4WK5MZd9R5rwDkVg6ufe7l7MD37puFMgqmlq6FbhyaFAbaDQVdGjBNseGNfira05 uHPa+rN2tiKvXxVQJtt3gx22BpBbGUdUP5JzBPdFG2dndEee+uMBx/RtNN5LuBpS7vmv GLx7FXMRP4jpCM+3dhtWYQp7vVtVNj/LffmIVt66o0RqMycVVB4IAiWTgabYyuxoUS35 Jwsht0Wi5IkRIs1ArKOXWQgzh4aOQ/cqPFWHYiCVQBhXw1wWB5jgfCuth0EVjrLSDEIQ 6tSw== X-Gm-Message-State: AHQUAuaw7RkdwkzI+12fApkDIAoZVmqwXxqBLmB4ZyggixX4ShrlwvHH YVQ+yo86EggkXKiMDUP9LiQDuAiur848N2ttykwozVJX5yEa2sB2P0+RudmL3wk6r3sygSWj6q5 UhBVORZNSuQYVWxhLos0eN+zzIQu/UmDOittrkedgUyAdF4AEyPXciGol6M0r4RDKOw== X-Received: by 2002:a63:cf02:: with SMTP id j2mr13222739pgg.113.1551014029398; Sun, 24 Feb 2019 05:13:49 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibbuuk4cWe1tNrn4Th8ZW1HaCAuqaWamGtqxUKY0qex1s6Oo1wl4/7mDl1ToC20FnLrrrsN X-Received: by 2002:a63:cf02:: with SMTP id j2mr13222630pgg.113.1551014028397; Sun, 24 Feb 2019 05:13:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551014028; cv=none; d=google.com; s=arc-20160816; b=xF8RR65JG/DERwLapqXCHOIWQkFczCR5Xchvh/vxYifumQxkGyydqpwYBLarUwvOI2 vvoSV/l+kXAnH1wg6y8aTOrT+d7M0YZvuYKSTIWEtELqE7myDBa9Oed/DWhTkacjzEWJ WNjAssMZmuuSGIroaQR53pxkbSMGtFSWQ+0Hgd0XnRlXtgQ2cR3cZvoq3NvcTUpG4MsD 7fMe+ybm/mMUyxMIHs82uBdiZybOKZ9bve0YFGzyDpKN1ZihhhCiS3O5jiDCzRdjIhme W6sONvB9WII8S8ChdJTOao3GMOiinUT3Ez2AfjSsdzJQBhmwTnZXSl9iuilP87jTSlqJ 0pjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :cc:to:from:dkim-signature; bh=I2G4O9wlADocTI+KLYf2C4pFRKOP+5n5ebNSX0r2+y0=; b=gq1u2jHH7ul6DWt6/eVTmNmWt7v8hPy0OTZ6kYDba09vyUFnCzvEwfhXmUHnLK3cl0 9cP6JmMejaRx3DmzhJIQqhkH/wNnN0oqeFIfAUJGH95+5YJUbMG0KlDCQj9mH6quLxPe LlpdUuFYhpGlz49Yt49mCe9fY7OEV3folyYVnXximONi5hrhxsVbjjrVnSOMSUF4FMiB v2NdzyfwuaZ2nE9QOoEZA+vSyHTf1HCVtvnVgNzveBGxzkoNGcjbXlDtnDcXkVcefBaf RsPW9bVKSO1P3d03/T12lm/NjgJsFfm6KjBJwJAxK6QAkEYwFQitdDbyvGQA5HQKHeYX otsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=OvVDnBwO; spf=pass (google.com: domain of peng.fan@nxp.com designates 40.107.4.51 as permitted sender) smtp.mailfrom=peng.fan@nxp.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40051.outbound.protection.outlook.com. [40.107.4.51]) by mx.google.com with ESMTPS id i3si5992611plt.120.2019.02.24.05.13.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Feb 2019 05:13:48 -0800 (PST) Received-SPF: pass (google.com: domain of peng.fan@nxp.com designates 40.107.4.51 as permitted sender) client-ip=40.107.4.51; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=OvVDnBwO; spf=pass (google.com: domain of peng.fan@nxp.com designates 40.107.4.51 as permitted sender) smtp.mailfrom=peng.fan@nxp.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com 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=I2G4O9wlADocTI+KLYf2C4pFRKOP+5n5ebNSX0r2+y0=; b=OvVDnBwO3X3f0rK7c4337JhaoK3C8BIJ6bx+jhEzXMB0V7B6I2kAKXsK0AaGWKXtU++pWwvZ3+B42dl/kD60PeQ89VSYDCN239E5xYB+2YBLaKs4hhcZWku9pVZgq4RScL2n2FqMOKdcDxBhcmFtZrdT1Etd8YOa7Og3TkNdQUo= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB5651.eurprd04.prod.outlook.com (20.178.118.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.20; Sun, 24 Feb 2019 13:13:43 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::a51f:134d:b530:f185]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::a51f:134d:b530:f185%5]) with mapi id 15.20.1643.019; Sun, 24 Feb 2019 13:13:43 +0000 From: Peng Fan To: "dennis@kernel.org" , "tj@kernel.org" , "cl@linux.com" CC: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "van.freenix@gmail.com" , Peng Fan Subject: [PATCH 1/2] percpu: km: remove SMP check Thread-Topic: [PATCH 1/2] percpu: km: remove SMP check Thread-Index: AQHUzELEXhV7UVWfi0W/HwwXYpeEXw== Date: Sun, 24 Feb 2019 13:13:43 +0000 Message-ID: <20190224132518.20586-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: HK2PR02CA0131.apcprd02.prod.outlook.com (2603:1096:202:16::15) 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: 1732d3c7-21c0-4f68-94f5-08d69a59e653 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB5651; x-ms-traffictypediagnostic: AM0PR04MB5651: x-microsoft-exchange-diagnostics: =?iso-8859-1?q?1=3BAM0PR04MB5651=3B23=3Axi?= =?iso-8859-1?q?MsaAmZ8pun0f27xTp7/QNsVnrSyGVfb7IR9yOGd8SzEziPqW9jDiezxk500w?= =?iso-8859-1?q?etxooeiLs2sYPWCchKNRrKcF6fvIZvO1klBrpp7fFmhmAVTd8Wl36prVYI9P?= =?iso-8859-1?q?YxmIufPt79deLiDyqePCnj/qG/3WTlvC9mx9PPIg9Rq2OXcQd0HhhqJwX3KT?= =?iso-8859-1?q?Vp7q/1Fog4/+Xf3W5DZETVzL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ZkfzLfyv9EONEbhJHn6Wi?= =?iso-8859-1?q?Z1re0TWRXQWWAxfVrqXVNXQIn2dwsPrAnXv81Ah/6YACS9TRUNUAjKwi96eR?= =?iso-8859-1?q?XfsrR6Lz2p2J8PBXyuDJZc2hPg0TGeWMMkXmgafcoN6xMJxQoCpVs2RzP/9V?= =?iso-8859-1?q?3+79XVu6M8ueN0MEBdSItp1+pUafnGaT7UBWI/E23G4SiKfd16xU68ECQ=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09583628E0 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(136003)(376002)(346002)(396003)(39850400004)(189003)(199004)(8936002)(8676002)(81166006)(44832011)(81156014)(486006)(97736004)(7736002)(6436002)(476003)(110136005)(68736007)(305945005)(2616005)(53936002)(6512007)(54906003)(316002)(2906002)(26005)(186003)(2501003)(4744005)(14454004)(1076003)(50226002)(256004)(478600001)(52116002)(66066001)(99286004)(71190400001)(71200400001)(386003)(6506007)(5660300002)(106356001)(36756003)(105586002)(2201001)(6116002)(4326008)(3846002)(6486002)(14444005)(102836004)(86362001)(25786009);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5651;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: JmCNdrJHUtGwPN8uvn3la4mMD04szSF4b9BKS1jWQ4dsDi1SG4swoPSDZZwMHjYGDeJFM1RDg1mqSgQbdORF0bskE/MkEGxzc6OwWIZoX6eiiXmhI2XEisbZtKdfjL1w/M7gTUpwO9mx/qk+k+tpffLaFtVZ1/eG7P3/fJGAJLo2QhuyKoQbsL5iW1UHNt0vdpy8UEa6/aWtE/xwQBKPwMcIGkJyAwE6GZmsWmMdi+425kZ3mWZzPQOVeKNT2Ug7ZMqFzJYCIJVvbmqKM9PPrLVKNR4xWwLwcS37xmr31LMOGhyPI+/gUxgtXP1ACLnh6MY8hg0kqiuIXl7TEFAcA47QqFFX7cr5sEFUILGxbzn9vUcuxlYTQAD1tSIU0W3EQKtjjXFbnxKkKwhJ99RY3dUyAnc0f0zq+dVCKb+lUxI= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1732d3c7-21c0-4f68-94f5-08d69a59e653 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Feb 2019 13:13:40.2301 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5651 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000212, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP percpu-km could only be selected by NEED_PER_CPU_KM which depends on !SMP, so CONFIG_SMP will be false when choose percpu-km. Signed-off-by: Peng Fan Acked-by: Peng Fan --- mm/percpu-km.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/percpu-km.c b/mm/percpu-km.c index 0f643dc2dc65..66e5598be876 100644 --- a/mm/percpu-km.c +++ b/mm/percpu-km.c @@ -27,7 +27,7 @@ * chunk size is not aligned. percpu-km code will whine about it. */ -#if defined(CONFIG_SMP) && defined(CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK) +#if defined(CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK) #error "contiguous percpu allocation is incompatible with paged first chunk" #endif