Received: by 10.213.65.68 with SMTP id h4csp2120497imn; Sun, 8 Apr 2018 20:12:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx48n5SDUlCRcdeS3n/ve7dGqF2u4E8f6qIYG1FezYfnD8h6Wn1MNCdn1U9lXSsNmzfVzLgPw X-Received: by 2002:a17:902:aa95:: with SMTP id d21-v6mr28399945plr.66.1523243557491; Sun, 08 Apr 2018 20:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243557; cv=none; d=google.com; s=arc-20160816; b=OmHmGxy9+pMb/wfPosKVlLDdyU7UFld73uRxnebyGA4lvUndGKvsBRpyHsbE94K4La yDcEZSjCyU2OQPifyAR6Aho4AntbFVOiLmHaPZkkjPa7enbczJ8yySBFPKp9OFHq3iTs PAtoGJb9Mm6PcDScX37wR9sTE9o5q1rAI1aGEs863XJtdttn9znK9qxNKa2ZLZZ63GUz vkWcxKXf0GCDhTPfLxu/0t30EG7uP1ZueiaR5NhSEpSAGQeE5DrQTTd1XHgWFRX1Pod9 x5omvKBLCyauYra6AqdsPnejhIfue1Xd356lZhkrtJRxw/Oal5EgXXaHBjLlaBDc5e6G t46A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=ALXKdANQJ/GP/idKNpCcuJFsWRWruCyphXBzVm7SZc0=; b=kG60/2EALRuTIswII0EgxzgnjXUzIhQ8O5pLNNrOywKjgzlPDbzilAKviWWTHd0BHe /jJZXKThNaK96q7RNKAnU9YoVY3QH+sw63xctaOM12Ao/D7AhSibxDxxwY6gkgJVUVlI lA9TdT5w4mMvTpt6/130lI+Ev/FBp+AHAGWHqA6fc55CgFkgZ2km4rgrlNqRREs2xqNj 0kiafQNlXeQoMizA5oDGoyPa7LeTF0E3oyMUK4tPhEwFgnu2UgNFeF2GLCdNzq4cei9B WqtF/6i4Au3bwTkry4CuFp06vSOa1759FnSx91t2NpfhSEWoqeRSJ/5WtLsjKp+NSOl0 KseA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=eXJ1NFh7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t61-v6si13662604plb.653.2018.04.08.20.12.00; Sun, 08 Apr 2018 20:12:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=eXJ1NFh7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933277AbeDICuH (ORCPT + 99 others); Sun, 8 Apr 2018 22:50:07 -0400 Received: from mail-cys01nam02on0098.outbound.protection.outlook.com ([104.47.37.98]:9607 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755358AbeDIA0e (ORCPT ); Sun, 8 Apr 2018 20:26:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ALXKdANQJ/GP/idKNpCcuJFsWRWruCyphXBzVm7SZc0=; b=eXJ1NFh7nzwN98WbfvIrIkgh3I9+9wu1NHsXsmgrvWoVT+JbURBeFAC/CH6FRVblwD5RkfAjeFvTRa7RdiRSez6GyMOkMFU41YMe4vPr99ZqbcV/ZquVf82uywQ2iLsYDeyHbewxXMKs2bw45ADiuL1ZLlgKtpFrX3wiXQzom4Q= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1015.namprd21.prod.outlook.com (52.132.133.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:26:28 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:26:28 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Michael Kelley , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , KY Srinivasan , "martin.petersen@oracle.com" , "Michael Kelley (EOSG)" , Ingo Molnar , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 160/161] cpumask: Make for_each_cpu_wrap() available on UP as well Thread-Topic: [PATCH AUTOSEL for 4.14 160/161] cpumask: Make for_each_cpu_wrap() available on UP as well Thread-Index: AQHTz5jKiUg6yOhUVkKzYi+wqhqNcQ== Date: Mon, 9 Apr 2018 00:22:06 +0000 Message-ID: <20180409001936.162706-160-alexander.levin@microsoft.com> References: <20180409001936.162706-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001936.162706-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1015;7:vsLxTB0JXP2AfN24Wag1uBfB/1R6dJ3o7QrwtQXn/WFapt/KntzP2Uyub6l6d5ny9404rZfGcgKdJ628A9owQ74HlyK0gpxdTXjASk/3CR12AKk75xNj1qqdH1jxtkWFxZgVW5rJFMUjUCV9y0Jntdru7jOdsgq6FxxdkHH3yUu8/QsDiHyOCaXSptxBM6LTrdo85nByEnxRGKeorJg8V1DAoWGzygqjqiNQSDa0B92o+Fm/llC98KF1W0DIpoUH;20:NwfQTsMocOtM3f3lJkje0lKKiYPXf+RX6TSYK4UM1cqd5QgU93zRFVltsWTkLD7PZjOt7sMCe3bp9Zk+4r4U1YMcw1qko7dpCEZU9nq3HbmOY5JKxPrQO6FTDItoxsa38RB+UCoz15LhGTi1K99mtuMnuoSppDHWL3eDUtjougI= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: c5759d7d-7e1e-4d42-1823-08d59db088fc x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1015; x-ms-traffictypediagnostic: DM5PR2101MB1015: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(189930954265078)(42068640409301)(146099531331640)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1015;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1015; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(39860400002)(39380400002)(376002)(346002)(366004)(189003)(199004)(53936002)(4326008)(478600001)(72206003)(3280700002)(2616005)(14454004)(305945005)(5250100002)(3660700001)(2501003)(2900100001)(54906003)(110136005)(86362001)(1076002)(966005)(107886003)(6506007)(36756003)(446003)(68736007)(6512007)(7736002)(486006)(2906002)(6306002)(5660300001)(6436002)(3846002)(86612001)(6486002)(66066001)(11346002)(575784001)(476003)(6666003)(26005)(10090500001)(316002)(22452003)(8676002)(81156014)(81166006)(6116002)(105586002)(99286004)(186003)(106356001)(76176011)(39060400002)(25786009)(97736004)(10290500003)(102836004)(8936002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1015;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: nVP2GqR9XVzeCgksTpF38b/EP0LIkZYfcNOHORyQPCROF+ZZCnd8wItZ4sF1zD0HUf3bxqwsLNpkGCrWkM1UN4R9bkrTSjsROEnVN2iw8+27YXL2El+IwI6xHgNGFYubWSkAc9tWy0cJYFxJdTqGXlNY0yVfc5ZiVIQRCewjD+wM+K1AqCKjEltBNcOwyH3CPuEmPzgM9l4MqmerHE7TzxUqj+K8wJFCds9LGFAXtoJvcl7VXj7jTQ7lVVcnxvbH2vWAtGE3+zpH9QsCcO7wiMW69pAFqdo5KY0JmiSXvKZ7Iur7VnOue/on/slU178oKsFGGOn7cNyltSDnSEA3DKJKJgBl+HN+0SnTjoHb9q6j/bjOP5wbZHMf5xpR+MGvXlPBuYKiTNV2SXQf4qYgWbxyVGbADBT1Q89+HkHoKr0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5759d7d-7e1e-4d42-1823-08d59db088fc X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:22:06.7685 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1015 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Kelley [ Upstream commit d207af2eab3f8668b95ad02b21930481c42806fd ] for_each_cpu_wrap() was originally added in the #else half of a large "#if NR_CPUS =3D=3D 1" statement, but was omitted in the #if half. This patch adds the missing #if half to prevent compile errors when NR_CPUS is 1. Reported-by: kbuild test robot Signed-off-by: Michael Kelley Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: kys@microsoft.com Cc: martin.petersen@oracle.com Cc: mikelley@microsoft.com Fixes: c743f0a5c50f ("sched/fair, cpumask: Export for_each_cpu_wrap()") Link: http://lkml.kernel.org/r/SN6PR1901MB2045F087F59450507D4FCC17CBF50@SN6= PR1901MB2045.namprd19.prod.outlook.com Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin --- include/linux/cpumask.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index 8d3125c493b2..db461a07bf38 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h @@ -165,6 +165,8 @@ static inline unsigned int cpumask_local_spread(unsigne= d int i, int node) for ((cpu) =3D 0; (cpu) < 1; (cpu)++, (void)mask) #define for_each_cpu_not(cpu, mask) \ for ((cpu) =3D 0; (cpu) < 1; (cpu)++, (void)mask) +#define for_each_cpu_wrap(cpu, mask, start) \ + for ((cpu) =3D 0; (cpu) < 1; (cpu)++, (void)mask, (void)(start)) #define for_each_cpu_and(cpu, mask, and) \ for ((cpu) =3D 0; (cpu) < 1; (cpu)++, (void)mask, (void)and) #else --=20 2.15.1