Received: by 10.192.165.148 with SMTP id m20csp530374imm; Wed, 25 Apr 2018 03:46:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/dr7w4tp23bVKIX2U9SEc+XKtZ5hk0tJ+Ggb72/iulG8P1o1/V+f4q/tDHi8SR+sYbl7C6 X-Received: by 10.98.157.90 with SMTP id i87mr22888625pfd.190.1524653162163; Wed, 25 Apr 2018 03:46:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524653162; cv=none; d=google.com; s=arc-20160816; b=oCI1V0J0qyf4uiGMor2Y6GK69mOOEUk8Qoi02KxXk78Zi4llvZ/rMHF5ks6HaHMJ6/ YV9MzMlSzGu0D9BFOl2JiWMaiA9Z7cq4T7S60CTgjwcu4z/7yyV+v2xnNgde2l1XJg/g IzYNFRhQpxqKxwEQTELob5fhNBBflx41UQ5yGWqcGbN11MgJBa8J2ZXmI5pcSBeqQCeP 8dYA2JNspXZ2Sg0Z9rhPLkdc4vKIBkrHR8flvTFTiVbcuSxmTwHp331i3PHgts+WKecH esSi648VHr6abiR8Ecrl86MVTVsHJZgdtnGJhFR75XuNT8KRu9K41pyRN/wg1qCN12+n 5duQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=drlntcuTymZJXwbcI85YIY14MExcpzR7upshc23f8y0=; b=aKDLyX/yowHG8a21AQWl5wd1c+Yd9EL9aagtAzqrC9At1QbJm9YCxxZSL3emXAMTK/ JTEoZVjK4mrayKoxv6Rd/rdO3uQND15IBINuwWMpyPoJkQfZ5uiuNt42J+N5Qs0z4z4q 1cLYt6rmYL5Ai3nMSeXxP0n84Ei9s1Wf2DEtY4IKo4wXAEi2evITAIxm1zhNqE3Rv0vQ VKAn27eibz3lvp4iZRyTRr4tWDKbTM6VxQFOAHSE7+oCkoDNTG0uUPkGlueVUBrhL5j0 aDECgNCtc3iGH8ULebvTNfCBcRhJkhVRXrdgvo1S+AYKfqVYmBaUyCMWFphXerAaJ5kC KPYg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d16-v6si15744865plj.57.2018.04.25.03.45.47; Wed, 25 Apr 2018 03:46:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754390AbeDYKoa (ORCPT + 99 others); Wed, 25 Apr 2018 06:44:30 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:53308 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754340AbeDYKoY (ORCPT ); Wed, 25 Apr 2018 06:44:24 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B592C272; Wed, 25 Apr 2018 10:44:23 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kbuild test robot , Michael Kelley , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , kys@microsoft.com, martin.petersen@oracle.com, mikelley@microsoft.com, Ingo Molnar , Sasha Levin Subject: [PATCH 4.14 170/183] cpumask: Make for_each_cpu_wrap() available on UP as well Date: Wed, 25 Apr 2018 12:36:30 +0200 Message-Id: <20180425103249.347516890@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425103242.532713678@linuxfoundation.org> References: <20180425103242.532713678@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Michael Kelley [ Upstream commit d207af2eab3f8668b95ad02b21930481c42806fd ] for_each_cpu_wrap() was originally added in the #else half of a large "#if NR_CPUS == 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@SN6PR1901MB2045.namprd19.prod.outlook.com Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- include/linux/cpumask.h | 2 ++ 1 file changed, 2 insertions(+) --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h @@ -165,6 +165,8 @@ static inline unsigned int cpumask_local for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask) #define for_each_cpu_not(cpu, mask) \ for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask) +#define for_each_cpu_wrap(cpu, mask, start) \ + for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask, (void)(start)) #define for_each_cpu_and(cpu, mask, and) \ for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask, (void)and) #else