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 From patchwork Sun Feb 24 13:13:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 10827967 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 8C96413B5 for ; Sun, 24 Feb 2019 13:13:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A16F2AEDE for ; Sun, 24 Feb 2019 13:13:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E0262AEF1; Sun, 24 Feb 2019 13:13:55 +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 061612AEDE for ; Sun, 24 Feb 2019 13:13:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DB1488E0166; Sun, 24 Feb 2019 08:13:53 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id CEFE38E015B; Sun, 24 Feb 2019 08:13:53 -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 B66F78E0166; Sun, 24 Feb 2019 08:13:53 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by kanga.kvack.org (Postfix) with ESMTP id 602A78E015B for ; Sun, 24 Feb 2019 08:13:53 -0500 (EST) Received: by mail-ed1-f70.google.com with SMTP id u12so2798871edo.5 for ; Sun, 24 Feb 2019 05:13:53 -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:references:in-reply-to:accept-language :content-language:content-transfer-encoding:mime-version; bh=vpNmAJGfNaAbucE9at8ymMaSSbS6S7aVICsihO7VzvQ=; b=huS4qxaIFcNM85t3/+KPepqSo0YUQdQGVa2kbaMUwidPHc9jqz85284YCidpqT7Sva y810NLCPqw/8OsCQPRm+4twbfo3X7nfb9WCaJUPYl8jA8D0EZWTJ9qK67XetELIlETiz rAXPmsuPYI21TcLgpH/Mhzkks9cEI08TY0EAOFHgzlOFpJS8Anohnj/3NKOZR5k8WcP/ 7+lnAUusdQyuU6g2YYxjwYqKjk44JoGPqZZGAZQeuRuwnvpl0HW5C7HDr5zyL/hMI8dF Z3n0kkCe3ti0cgmeS/vb6xwKouR7BJG41Mwm30DGpyfXkiYKVBfscBNHIyjCrzXWmshq 78MQ== X-Gm-Message-State: AHQUAub4bKmye8Xj9So7y5G7RL6Grrkz3J/DNnqJuCeqHyzh/KUGIfmt BYiWD2P+05iQOXjYSjcyn8Jigpfxi98NicvIFZuVAUJ+ONFaZ0+D/iiTZV5d+DAtHPjlltuoAyi gu6QSKnjff91Wl2dbM40rkI+fWbjGD7jF6+/LWr+HV9L/nrp4Wa11t1sIXayw/xNhVw== X-Received: by 2002:a50:81e4:: with SMTP id 91mr10686003ede.274.1551014032767; Sun, 24 Feb 2019 05:13:52 -0800 (PST) X-Google-Smtp-Source: AHgI3IblJQmtVF8c2nITaue3u3Nl0kWuAAOnVfsqfwD3cVsTBVy59teMMv1k4Vh003Ienm/ZWj1i X-Received: by 2002:a50:81e4:: with SMTP id 91mr10685971ede.274.1551014031979; Sun, 24 Feb 2019 05:13:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551014031; cv=none; d=google.com; s=arc-20160816; b=lt73DteSPNRWHVSmf2MhcdZQP5A8upoNBBKlyJxeXTlUa4pZDmtVIOvmPWh5kuK9Mh teDi2J35Q3eS7bVJPgAIRsfyE9T8/VLkPB6DrLo0ctqSxA/PH45W35WKftQu1UBgDW9r I+rZR94K1RO1W0RxcewM16N0MRxI3iJGqqrY2EoIqA2bLstVm1SbeC3HDBIt1BVImONi YWQsBnO47guWgzMOQzwMJrq40pd2EKlxj0JGXBeiLeceaXFWdQOw9MN4NEtXbbPrXyu5 oklmj8G2AimNMtqvTX/QGKTGp88kWiO4Jo3HF68cEs1+8ffMcpVH6Y7hABlPJ6Dz+eFE 3ydA== 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:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=vpNmAJGfNaAbucE9at8ymMaSSbS6S7aVICsihO7VzvQ=; b=qSI8nXGx73aFUlymJ+VkDfQXNnKBdr7h0SnctT96JTxkqvJJlHkgr9AhbX94krKO7J F0hKgOOXVC3G2MnvqGpY0fso2mc2W/xO8KgC5cMOncN5575KGGbPCp14RstvcL6aMZPs LjtPrh8ie9zOX/+OtGjtz6SeHaJvKf9B3H9hbP4SOvi7om2POkSSg0uCXheNHF4F1Wuj 9ewpebN7oyk9AHKVmnl5AQdxMmUcVMnQiNxeiLzbjdecbwfPElSHvQZ5Q/iGeFYT17el vCHN1/oxEGu+bGgmcKZhdnN2QMWXtkbZaE/5IsR6gaIQVDN0W3e489JPmk11saQXjnCD SDNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=D2f8pTKa; spf=pass (google.com: domain of peng.fan@nxp.com designates 40.107.14.44 as permitted sender) smtp.mailfrom=peng.fan@nxp.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140044.outbound.protection.outlook.com. [40.107.14.44]) by mx.google.com with ESMTPS id n2si2722734edi.135.2019.02.24.05.13.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 24 Feb 2019 05:13:51 -0800 (PST) Received-SPF: pass (google.com: domain of peng.fan@nxp.com designates 40.107.14.44 as permitted sender) client-ip=40.107.14.44; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=D2f8pTKa; spf=pass (google.com: domain of peng.fan@nxp.com designates 40.107.14.44 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=vpNmAJGfNaAbucE9at8ymMaSSbS6S7aVICsihO7VzvQ=; b=D2f8pTKa+M+LNCtAizGstJZ2Db2D7c96itlmOHob8s8EVwXoPr859Bs5O6nyqbpCLOagwxjh+O5HMUs1N7TN6xe24FJIrhA3oHu+VAtiC4sVyhmjkCiBFzrASpxCgY2c0DupwnnQaZkG4jzezhIKCAyXfJ3p0zPKPNbMDU6/whE= 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:50 +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:50 +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 2/2] percpu: km: no need to consider pcpu_group_offsets[0] Thread-Topic: [PATCH 2/2] percpu: km: no need to consider pcpu_group_offsets[0] Thread-Index: AQHUzELI99orDQmet0qADTSfLzpSUQ== Date: Sun, 24 Feb 2019 13:13:50 +0000 Message-ID: <20190224132518.20586-2-peng.fan@nxp.com> References: <20190224132518.20586-1-peng.fan@nxp.com> In-Reply-To: <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: 6348761f-7961-49e4-f8b6-08d69a59eac8 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=3Awq?= =?iso-8859-1?q?jxN6jLGDsg0Vq9FnyEweRo7y7akEJU5QtmbMheP+YH8FtXVshIYy0hsfRQli?= =?iso-8859-1?q?srJ451zQ2/PM9g3QDLTcHJ0+GE4J7Aw7DEt+ULoDOWJ6CJBQs+6KYqeDrdvB?= =?iso-8859-1?q?DLE0cf41hyTbx7yD2lQ3HLYUzobaOoCJHxpIsx+pIoLDh9V+gU13ItxnuYzn?= =?iso-8859-1?q?d24AzVJOALZWWX3zHbRdNGf+CpTILvR2kGhTaj42AaYR2bGOXetZYOy6VPhj?= =?iso-8859-1?q?hhsvJIC7X1hRk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RMI2eRyZ1lEOUi8i?= =?iso-8859-1?q?gkObpqUxZihV9tW2KyrklPhjLq5WHttgNS+OxgIPF8Vf90Q9wBZWOU81dBS7?= =?iso-8859-1?q?UG0AdzoBwM/ASM4l2O6l6LCGDNtfHE0bIukef+AIFh17PnDpsvAjq13tuNNm?= =?iso-8859-1?q?CdnlinTKSYJ6KJsExMGqQaGno1GcsyBUlw5yupsQVUto61qsLGyWvwsZXcTQ?= =?iso-8859-1?q?U=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)(11346002)(446003)(476003)(110136005)(68736007)(305945005)(2616005)(53936002)(6512007)(54906003)(316002)(2906002)(26005)(186003)(2501003)(4744005)(14454004)(1076003)(50226002)(256004)(478600001)(52116002)(76176011)(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: ZlgEQcSPGQTUfjrCx6CeqTSgsM1y7qKUgDLM0l8C6SYqoltT3GUTSSDwgDtD5m4jOOXEcqsAp2NM2sIi1rd0Qyel7C7dEh2Q7WTK0H6423BLqRdT+YB7zIMcBG3l0gKdUvImpP692UQsPzvYLlZzXGhjV93U+N+4Cuvfbmr7NIUpYegeP7uB0UGYdWJ1009NIA2cYnIke+QqpHTNKd5ixb8aHcLf54yZwMaEIcxJyp1h+OrETnYhyHiz4P+uhYs9dT3H+UgDx7A5/b6ffDWZRPRyKVIm3guN+npFtvx1kLaW3MqcN8+egdkF3EtxMG1kbWFswWwLis9j+ELSIbqlaxckwpnjgd6ZfUj8L4JN+39fjlCMZMLALE5L1D6Og40Rtltf23oHgZs3GdJR6TrY+LqqRbg4GhKSSEaXop1ymCw= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6348761f-7961-49e4-f8b6-08d69a59eac8 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Feb 2019 13:13:47.7133 (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.000002, 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 is used on UP systems which only has one group, so the group offset will be always 0, there is no need to subtract pcpu_group_offsets[0] when assigning chunk->base_addr Signed-off-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 66e5598be876..8872c21a487b 100644 --- a/mm/percpu-km.c +++ b/mm/percpu-km.c @@ -67,7 +67,7 @@ static struct pcpu_chunk *pcpu_create_chunk(gfp_t gfp) pcpu_set_page_chunk(nth_page(pages, i), chunk); chunk->data = pages; - chunk->base_addr = page_address(pages) - pcpu_group_offsets[0]; + chunk->base_addr = page_address(pages); spin_lock_irqsave(&pcpu_lock, flags); pcpu_chunk_populated(chunk, 0, nr_pages, false);