Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp241744imn; Wed, 3 Aug 2022 01:49:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tuYXJ/GHkcl9DMWbEZHilNMBGiYs9S7gcgMsVrdaM2AIzQnBIXFkyHdDBofIfm/iC8rGbH X-Received: by 2002:a17:907:6e8a:b0:72b:1496:7161 with SMTP id sh10-20020a1709076e8a00b0072b14967161mr19743053ejc.519.1659516587744; Wed, 03 Aug 2022 01:49:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659516587; cv=none; d=google.com; s=arc-20160816; b=oHuZs4kkdCW2TQm30rH0o7ljLEgtw1gL1uUI2cy2Ap0tjLgUsUHcbN2jOuCSUpdwck rss9TvaLMi2fDPYJXWTAok7kzXRQGQiG+Y/wxlvxFI7/lemlGI8M1F/gj7BfosUz8iQX zIN79T70rgG2UZ9VtxcOauDeEbtAAGNxhwODI1kohG04MsOGpE9voBAIpwapJnKVmLoZ /+sOCio8IIlAfZRQD0ee0hFpr16aSFGzsyLNeBL79nI3sFhR6ELPfOO3v1yFrwcgK7PQ Yrq2ADXbbxIypzDCoUcC8nlqdoyFjSjGPZGUV2QfkdfXfBjaormelGSX+94o72Xx4cHd VR1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=qKqo0h9Lva8dP5VOOSo7i61+QrtY8gPr4MgxUM+NaXM=; b=YC1FebWk9r8tEEGQVApib8ZjfVrE80E8+5LqMy87La6TSkuyGwXM8xh+Bl2yYZX0Mn RNmQLkzfhRDyrsoSnZRG/mSa9BDzafbcWy7iVWHL3AwlPLpI+c0IFkatkWd0x2ALkkJW tuVXH/pjIhxpwz3gGhGAUUwaU2QmiI+5fpSEenzM4tUokp9YZuC+c6yXyP18hmOLxb5E c7928ux2tz+h+4JiOeFio4YepCKUmYp/dOtkQdrrB6P3PaXDbmDBwPdr0QCyQ8XK/Gch B5O/Bv1d7kgDMkK0pCjpuc3qQO/0ki3FS2Uzpd6+WSncSNNO8yr+wyRD3c/4yJ8RfLBn kgbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K1+QwMMF; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 21-20020a170906319500b00730aa17d032si2383117ejy.337.2022.08.03.01.49.22; Wed, 03 Aug 2022 01:49:47 -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=@gmail.com header.s=20210112 header.b=K1+QwMMF; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234083AbiHCIsZ (ORCPT + 99 others); Wed, 3 Aug 2022 04:48:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233943AbiHCIsX (ORCPT ); Wed, 3 Aug 2022 04:48:23 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD7E11D31F for ; Wed, 3 Aug 2022 01:48:22 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id r67-20020a1c4446000000b003a34ac64bdfso204223wma.1 for ; Wed, 03 Aug 2022 01:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=qKqo0h9Lva8dP5VOOSo7i61+QrtY8gPr4MgxUM+NaXM=; b=K1+QwMMF0ygQFYNEgKo0BPINIfeDi/62w29AVXiJ+sIPO5wYV7vOKSvv4nkNCLXUYd mpBPtDtwoH1NBnjlBqlWtVec1LV7ZWeJ0TeRNSVIJi7+YntM4Z0tf34zRJMcc0WoYzmN PdEVxwu1atJIytuGyf3tF6oDOybJYk/8SWK+kd8v6fvxu5fqODnJFPI5KtXERKSbDljv XPwFvWejnp8S3o12ZlA9tKbpn57sEnkWliG64dOnXEqKtf5FJ/2meiXN+MyDT40B0iNJ 8Xe8/wEgxquFW3z0BRp7MYS4I0OhVqrTJ6ATOFcuzBRdKRoFXkho5Kf+YkpO9y6kLhDe JF4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=qKqo0h9Lva8dP5VOOSo7i61+QrtY8gPr4MgxUM+NaXM=; b=CgmyAHobSc/R2hr9vuD1pETpJcPyIv2I2vfPyJ7w/HwsaK4EnqS9UPbF4QoFy4DWNB FultomXE4QDSQxKC4qGi6LFCba9CZlUXg+vUqB8yXtXk25b+qW6VLC4nTKdNVqVbx9QH YdJD7Jgpkq5YBLstbAfMWL/l798zvSiPMbvHX9v64ZyT1FDCNPmc8LKN/nF/JQEWxube WoNktBDA0ljhOJS+40O6621bplLwAxE27sazjzdQccb6cjO237LQLXMYUzHWUEIt/G4Y igpndSfHbnMr+mlOZNqcwzdaYGbZwPws1POsYBw4JtMu4ymNf8NYntgBfUFEq5RjMc6u f+7w== X-Gm-Message-State: ACgBeo0n1YqLHWPPT9yi/5w/2tYwHcBy0OmBHspRFFmQ4ibKmcRnwp/4 1jsLHliXB/BdOnqt0leD8AE= X-Received: by 2002:a1c:2981:0:b0:3a2:ffe9:945c with SMTP id p123-20020a1c2981000000b003a2ffe9945cmr2090453wmp.38.1659516501272; Wed, 03 Aug 2022 01:48:21 -0700 (PDT) Received: from gmail.com (84-236-113-167.pool.digikabel.hu. [84.236.113.167]) by smtp.gmail.com with ESMTPSA id n18-20020a5d67d2000000b0020fff0ea0a3sm17319128wrw.116.2022.08.03.01.48.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Aug 2022 01:48:20 -0700 (PDT) Sender: Ingo Molnar Date: Wed, 3 Aug 2022 10:48:18 +0200 From: Ingo Molnar To: Siddh Raman Pant Cc: x86 , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , linux-kernel , linux-kernel-mentees Subject: Re: [PATCH] x86/numa: Use cpumask_available instead of hardcoded NULL check Message-ID: References: <20220731160913.632092-1-code@siddh.me> <1825f63b142.8968bde3116633.1242410031840350968@siddh.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1825f63b142.8968bde3116633.1242410031840350968@siddh.me> X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 * 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