Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp248134imn; Wed, 3 Aug 2022 02:08:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR41waMknb0qBOsbvTdUrEqaMTRmYYL0FAcYjEF3Lxtul/WdLfOeVB1v4jSpAV7U0VjE4dxZ X-Received: by 2002:a17:90a:4809:b0:1f0:59d7:7ee2 with SMTP id a9-20020a17090a480900b001f059d77ee2mr3861257pjh.240.1659517691192; Wed, 03 Aug 2022 02:08:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1659517691; cv=pass; d=google.com; s=arc-20160816; b=tjRrgwPKXOGhVczZTNQPwCk2ZDakaSZSiPOP8nwJloMe0o2amNgOXUjA+Ie5KEDtZj ze2DBoJv9eIsdgEfqgz0e2Vg23FHBL46hs9LMGSk/mPOhm8qR/Z2iCZk7eP5XZ/ixgdY FGhM7ChzuvqIPKPCwNkgCbM8ysBum+abJcOUbwD8Jw3iUhXE9xsicO5Nnc+pTCakFBLv 0LHrFMlA6HHuJ5Ya7fJCAgBMuNmsLsel79bnhxqSolAXRogcuYLahbSg64PraYniy5Mz +BBa6RPQs1/JjrKD+TgdKYvWjX7owGY1zNuUgrtr1zzogQ9my2Vbxd7n0cfyh5UkJOlN Qmrw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:importance:content-transfer-encoding :mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:dkim-signature; bh=UWM3Q8d65CxhgoPYwJTl/FGjavrP+S1bO4WDYI0LZmM=; b=jOn0OC7OyERVlTEjFvwnAb7sO1moy+SDQHB0liDFkQ+dnmdAZ9lNuz1b5K3ZNjajzv MVx3vlawiJ4dAxEHtWs8vNOocuLJ/XT1yCbqknVEXRgvcDejh2shj9smNAliZIWxj6wD ysf6MkizgdrD7vyyvgPB4gF6ieTQj1dtBHQ33ozf/F4bPvwwHc0KZS7kYgYNgcILiOc5 Mx4+9C3YP8HDR+5BNyBQG1rDODwnKZiVI+VOhsGBh5boja0nVHDuJEKUBJJffshhJgza RJ/sFGi8CyrLQl5vyel4uT3CfHmHDl9+1vkYXgYLfrzg19qICN42ESxi+OMZJwIrYqJO N2vQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=aCGxjGgu; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siddh.me Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e18-20020a17090301d200b0016c8facc00asi2042163plh.435.2022.08.03.02.07.54; Wed, 03 Aug 2022 02:08:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=aCGxjGgu; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siddh.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235188AbiHCI71 (ORCPT + 99 others); Wed, 3 Aug 2022 04:59:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231495AbiHCI70 (ORCPT ); Wed, 3 Aug 2022 04:59:26 -0400 Received: from sender-of-o53.zoho.in (sender-of-o53.zoho.in [103.117.158.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D1B32251E for ; Wed, 3 Aug 2022 01:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659517103; cv=none; d=zohomail.in; s=zohoarc; b=Z0C1RFtHhWVL38VXioPhEM9PPXQDeSm2BDZOVRVGojx6UymDi/ZUoEg/9UlUSIi8g46xDsAVg3Wogu/iGCelF+aWVZgdR30N2JlZVoWe0d7g9IZEbw8HknkaCjZS/WUf9xENkOYap7Kid2PxtROalZuz9xImGkscEjCgzYGXK/w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1659517103; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=UWM3Q8d65CxhgoPYwJTl/FGjavrP+S1bO4WDYI0LZmM=; b=W1ZXKcqpJWvXzse0uYPyMk5Wbt9n5kgRL/CVobzc02368p5EC0Ah11Wp88I6dQluMagaIz4YapLyoKV4I92lJKghTxunvVTR7ciVfMNZTYGJTZrhddT9YrFsVYVxEqNoANNhdj+Cq8NcBSExPI+hLofdFE4yO4jASvWPZLYwIZc= ARC-Authentication-Results: i=1; mx.zohomail.in; dkim=pass header.i=siddh.me; spf=pass smtp.mailfrom=code@siddh.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1659517103; s=zmail; d=siddh.me; i=code@siddh.me; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=UWM3Q8d65CxhgoPYwJTl/FGjavrP+S1bO4WDYI0LZmM=; b=aCGxjGguCX3vmghCE0g7WVP1LHmEMjvjiTKUyp/oqsYrIKb3ZJNjNRLgT+oM4CoJ rWMDVAwlOrhZwXBzDi0MRaLxBoGofBlWCY+U+51CCIwe+hrxMUUzFVdUFsrOuwCpAcw 54wHQHb2HtbY4dhL/2oz06j/DHLsiwL0BnUp6/mc= Received: from mail.zoho.in by mx.zoho.in with SMTP id 1659517084780174.63182416015275; Wed, 3 Aug 2022 14:28:04 +0530 (IST) Date: Wed, 03 Aug 2022 14:28:04 +0530 From: Siddh Raman Pant To: "Ingo Molnar" Cc: "x86" , "Dave Hansen" , "Andy Lutomirski" , "Peter Zijlstra" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "H. Peter Anvin" , "linux-kernel" , "linux-kernel-mentees" Message-ID: <18262ed2459.44b0d74d434377.3690496800292832933@siddh.me> In-Reply-To: References: <20220731160913.632092-1-code@siddh.me> <1825f63b142.8968bde3116633.1242410031840350968@siddh.me> Subject: Re: [PATCH] x86/numa: Use cpumask_available instead of hardcoded NULL check MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_RED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 03 Aug 2022 14:18:18 +0530 Ingo Molnar wrote: > > * Siddh Raman Pant wrote: > > > On Tue, 02 Aug 2022 16:37:44 +0530 Ingo Molnar wrote: > > > Your fix makes sense I suppose, but I'm wondering how testing didn't > > > trigger this warning. > > > > > > Off-stack isn't a rare config option: > > > > > > kepler:~/tip> make allmodconfig > > > # > > > # No change to .config > > > # > > > kepler:~/tip> grep CPUMASK_OFFSTACK .config > > > CONFIG_CPUMASK_OFFSTACK=y > > > kepler:~/tip> > > > > > > What am I missing? > > > > Maybe this triggers on certain config options set, or maybe due to new > > gcc version? (I'm using gcc-12, I also likely saw while on gcc-11.) > > It nevertheless is a helpful warning. > > > > I just now tried `make defconfig` (default configuration based on > > 'x86_64_defconfig') and compiling with `make -j13 all`, and gcc doesn't > > give any warning. (CONFIG_CPUMASK_OFFSTACK isn't even listed in the > > .config file produced, grep fails.) > > Does 'allmodconfig' reproduce the warning for you: > > $ make allmodconfig > $ make arch/x86/mm/numa.o > > ? > > If yes, then this could be due to gcc-12, as it doesn't reproduce with > gcc-11 for me: > > gcc version 11.2.0 (Ubuntu 11.2.0-19ubuntu1) > > Thanks, > > Ingo > There is no reason why allmodconfig would trigger the warning, as it has CONFIG_CPUMASK_OFFSTACK=y, but the warning is because of the other case. Still, I tried that, and as expected there was no warning. Did you try the config file I had linked to earlier? Thanks, Siddh