Received: by 10.213.65.68 with SMTP id h4csp2200673imn; Sun, 8 Apr 2018 22:21:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/0rbl2kH5yEKl8uSQriYkTK065ydLqbnQnpC3kHlMvl1mAZgjpzR5kY0clglZZtE+u9OFU X-Received: by 10.99.132.72 with SMTP id k69mr24100964pgd.367.1523251260790; Sun, 08 Apr 2018 22:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523251260; cv=none; d=google.com; s=arc-20160816; b=JVNm5IEMwdtOM1QVYUYqsfWy2nzDOSmwMslDCj0ji8bmJXh2uWlOVo1qvFk2o1ihQa IM8Z7WN+ckNaPd9n6tdim3XpXDMMuBebY+4114Yf96MNgv9nzYXPkd2zMKs7ZVEGRP9h i+GHpTVTYO2Gyylt31h+uzOEDInSR0h+Yx/LsBlGM+JDDjyxwkKl5btFHoqP1trRvKDX tPcNVwe7OjqYwc26Q7wt4onDgn1Z+sPjEv87ypsQnFGlIWlnyku3qE0PUp4LPhu4XVXd uv9DW7W1glmRJJi0fOBkFo/L5nw5ltSHxi2bFUEHWS145641/pB+ddlFTb506mqJYO4b sHYg== 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=G6FBAzAhD1ZuEKsN4Fjtjy9z5YwNPzgjPAxjD7vsxus=; b=Utv39+nTw5DZyUcFX8PiB8GKcRYPZNtpK5ytJSliqXjNZnvNTUF430n1agrPWsFmK4 FKUexGEGvuWcFxgQu+kMbwha5Au9DR9kMf+5bU0a1Wdcwij3LVM4OJU0kwl5Ra12N+Lx s+LzCj7qroTjONm1sgghpNAZUR9+hPz+OxyFDejuSKBA1LDL7UMGbdDQNeEuzNYw0cfc oAM5PEySmO5mkBKssip0zxd/RJOX6AmLA3XQDi8l51cLsXfJFTCRtDNfHiTSX25AvDwD ESS9dh48nBWF/5qGdVHk8tEXRT2PUrdZ90lPZDtfzv6wzU3psQ07SnPbA1AnCvHx97LJ 8RcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=M4b1GYXr; 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 a1-v6si13465982pld.529.2018.04.08.22.20.23; Sun, 08 Apr 2018 22:21:00 -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=M4b1GYXr; 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 S1754570AbeDIAV7 (ORCPT + 99 others); Sun, 8 Apr 2018 20:21:59 -0400 Received: from mail-sn1nam02on0123.outbound.protection.outlook.com ([104.47.36.123]:35872 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754538AbeDIAVz (ORCPT ); Sun, 8 Apr 2018 20:21:55 -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=G6FBAzAhD1ZuEKsN4Fjtjy9z5YwNPzgjPAxjD7vsxus=; b=M4b1GYXr1xzHKptL1bucDhvvuVsyn+0DkTZhBn9UU5p3+McffqgBA/f3HxMluWVsgfn0DI2UI/fSPIi6CtQjmA998so6OAMxHnmnwHEqPCN1Ose1+mj2b9LNs1AVGhEnBjeM2qZ0tyYx4dZpDgXjF7vAQGW5NxWX299ubFmUUn4= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0936.namprd21.prod.outlook.com (52.132.131.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.3; Mon, 9 Apr 2018 00:21:53 +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:21:53 +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.15 188/189] cpumask: Make for_each_cpu_wrap() available on UP as well Thread-Topic: [PATCH AUTOSEL for 4.15 188/189] cpumask: Make for_each_cpu_wrap() available on UP as well Thread-Index: AQHTz5hlGMIUaEniZ0a+eADlYu9dGA== Date: Mon, 9 Apr 2018 00:19:17 +0000 Message-ID: <20180409001637.162453-188-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-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;DM5PR2101MB0936;7:wPBEVwqsRZryed4LZR+KZeHPD9iIbBuLjQ8eOTe3Zn9YGNtaj+bT1V+iAeENtRuk1zfw7iDFhQxjf5d8VIlnZmlUubGGVNDrlhEzcAaPRhr9ZMbV1y607SBkZ8pJXrUmMp/wjpyoxeEUKGtDLgzdA+Ag2tClwuWizxl34iSTa1PI5xIgkLlR6leKUBr3zMiA2TXxyD0o26GJdMrwlXWNsxsE7d48OrFM7FAYW7Kk9ScxKP2NIYT6+aNv89Tha+/x;20:Mb9R/gEJ3aOUrdjPmma86vMFw1WSab8V5S42ocxw1Zv4htV/6mSiWWos10DWtbdU5iEwmOyvhOjocuFRcxWa/uzUEbeE0UvvorTA+wErKbakW66kytwp0Ikqw0AV8C8yV4yOrvc9IchEHrs5laiddAvYEsw0ZSW31a8Vd4MuLyE= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: c1929927-a66a-4061-1e2d-08d59dafe52a x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0936; x-ms-traffictypediagnostic: DM5PR2101MB0936: 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)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB0936;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0936; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(39380400002)(39860400002)(396003)(376002)(366004)(199004)(189003)(3660700001)(36756003)(2501003)(76176011)(10290500003)(2616005)(5250100002)(3280700002)(478600001)(1076002)(72206003)(6436002)(53936002)(486006)(6306002)(476003)(4326008)(6486002)(107886003)(5660300001)(54906003)(110136005)(102836004)(2906002)(6116002)(575784001)(3846002)(86612001)(81156014)(81166006)(6666003)(8936002)(305945005)(8676002)(2900100001)(6506007)(68736007)(14454004)(106356001)(105586002)(25786009)(966005)(6512007)(86362001)(99286004)(446003)(10090500001)(11346002)(39060400002)(316002)(26005)(7736002)(66066001)(186003)(22452003)(97736004)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0936;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: UOge+KTI7ZSsqNxIxTvaI25rvHJfQwSfPfqpfYmp0ONqIHwW8MIT2zgvHtU2eOg3ualjxQzJV4R6KUVnl4Ww7Gz7b4IAqswpdzLr4ZRkmESe5RPOYSCWMKHVGI208/wTHizNYYIqXR1ucMLexQ60jpBDSRMpufZjZJVqWFmwT9LD8z3ldufKwxjGd3NwO8Mxp5ZjFCJ6PcDJoeZ3ZgoLeVExG0jm+TUthgmfDTaUQX0iH5avKPSi7oSGgF+frSDsDdPQdZiA3E6o31/7jVKgWcn8U22mKEq6/G3lOjoCQfLDjgcMY0v3wBzL5BF/W9+WearrwNPuAas/IMPo4nrWPxYijbPxJh/hWSnBGbDMMhnONiMA3tNjZ012QQcA0RKsilAau1TqYJjeFMc7dlDAJxvh+ELtgUy9tLyKk7v+864= 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: c1929927-a66a-4061-1e2d-08d59dafe52a X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:19:17.8454 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0936 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 75b565194437..09b8d8aaa35f 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h @@ -170,6 +170,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