Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp262697imn; Wed, 3 Aug 2022 02:50:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v0JiJiVcGoYiR9RN1YFrgUyxWkjhQvkleWREz+A1OnJhU6EwsZny5lKYLviBZLQNlP+LJ2 X-Received: by 2002:a17:906:ef8b:b0:72b:58da:b115 with SMTP id ze11-20020a170906ef8b00b0072b58dab115mr18668659ejb.417.1659520234835; Wed, 03 Aug 2022 02:50:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1659520234; cv=pass; d=google.com; s=arc-20160816; b=NYN9ujjleQeG2YMPbkG9hOoyvNx961tN+gMBj6GE5MeI5sLN4yPiRkEvY226v2nyXr Mmad8s6YTTNbb6cdL6b+Gk+5lXbKkQLykBcD2J2kxSvYoF0JJSqIrx9msLGdwRSZH0dR cIF90RXF1TnNJ9mw/zaqgDTJaukCgOEcLfUmXYIzKvQ8KiE5Duva8MlLQQMMTslJRWIF lhfcTdvvIj6ewPGjr+WGhtXodzYH8ST39wChT06A/dgNJwaItesBFyozgJn6g8HPe8hX Js1+OImEH2Cum04uuB8z4FK89FplP3z3ZZlEG45JlMLGa5oSOe2dCZFM39GdFfRpa0a6 0cTw== 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=tCHNfkvLKa0BySi4rSrFMkX48wCJeADFiMbfJkU5ves=; b=oXK5W2rNS1dQz3P5yoS1rXLcPaZJLvVS9/kU9VZNbp1sHetmHlws822gpUlb0Hpq3M Q1KHK74TdXrhC4Hnt3becA57rBJ4bVG201J9sLZrhtJKeLCZq67992E2YKomZ04ZW1Uc 18fUrVlJLJz1sKh3oYxP8tv5vn7+gxAD86v5Y7D+8yACFMZ6fVumJlesNmS2+L8Aig4M 371EbSv8hDZQ1tuaHvMxt45qCfYoI7ZqLEeFQnm0TVATP364CXhuKzszcfbb6kDMeeD1 kI7IbIPnEWK7lMZEx74NQqkWtZ9HZj42UFHKP79OvVoIPeIGUUkSwv4Ft+y8rnKtJCCr 2SXw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=LjjQilOD; 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 g5-20020a056402428500b0043d63bbf493si8420192edc.348.2022.08.03.02.50.10; Wed, 03 Aug 2022 02:50:34 -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=LjjQilOD; 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 S235947AbiHCJrh (ORCPT + 99 others); Wed, 3 Aug 2022 05:47:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232303AbiHCJrf (ORCPT ); Wed, 3 Aug 2022 05:47:35 -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 90C331CB12 for ; Wed, 3 Aug 2022 02:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659519997; cv=none; d=zohomail.in; s=zohoarc; b=XvWsWjE8t5zW4M60jT2kOoKrtmPXvGOMsKVwKyiC2PnFszBqjdRoLPEB5p0Gm4snpFnbYZXTpo2f16yAE99b5YKURvkAqOpSpV5x+fcKGA+qHTZ9eoviJpaSLmXBMEjSoOQdwCbL6hIrRDBCVDyg36UZvsrFYIrC069hNuHmhpY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1659519997; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=tCHNfkvLKa0BySi4rSrFMkX48wCJeADFiMbfJkU5ves=; b=HOyH+TgaaaO2ChMWCD3C9KPP3EGmrp0QUke4MOKwGprGZFQbFRQp2xY9Tyyz1Plz5al4841MlxDMKySAaxJH9rog+bQClxfO6KmUcnb5DaNhRAWlZbs+p/c19AN2GoqAjkTfstZP4KCTqfHkN47VuysSTIieON8M5FOw4lISLis= 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=1659519997; 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=tCHNfkvLKa0BySi4rSrFMkX48wCJeADFiMbfJkU5ves=; b=LjjQilODd69kMHJImKMUgwONAibLg0YAN8FOsMPeE36IMjtDxzLrJj9TY/02IOqe rezK8hZNAgPX0BkAmfPwP/s8bqbqgOW/MpEIK7ECFtoMn1CH3yZ9MJfBduOnZBv2L/h Ky8fP0E8dFzeKVY9obsL3O2nyFW+hyIdjbg/9I3M= Received: from mail.zoho.in by mx.zoho.in with SMTP id 1659519981497938.089830690879; Wed, 3 Aug 2022 15:16:21 +0530 (IST) Date: Wed, 03 Aug 2022 15:16:21 +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: <182631957a7.c72ff42439506.3030495024426988155@siddh.me> In-Reply-To: References: <20220731160913.632092-1-code@siddh.me> <1825f63b142.8968bde3116633.1242410031840350968@siddh.me> <18262ed2459.44b0d74d434377.3690496800292832933@siddh.me> <18263030220.8a990e82436929.3216192040531777412@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: quoted-printable 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 15:12:11 +0530 Ingo Molnar wrote: > Oh. So I was daft, as suspected. ;-) >=20 > And I can confirm that while gcc-11 doesn't trigger the warning, gcc-12= =20 > does: >=20 > $ make ARCH=3Dx86_64 CC=3Dgcc-11 arch/x86/mm/numa.o > CC arch/x86/mm/numa.o > $ >=20 > $ rm -f arch/x86/mm/numa.o > $ > $ make ARCH=3Dx86_64 CC=3Dgcc-12 arch/x86/mm/numa.o >=20 > CC arch/x86/mm/numa.o > arch/x86/mm/numa.c: In function =E2=80=98cpumask_of_node=E2=80=99: > arch/x86/mm/numa.c:916:39: error: the comparison will always evaluate a= s =E2=80=98false=E2=80=99 for the address of =E2=80=98node_to_cpumask_map= =E2=80=99 will never be NULL [-Werror=3Daddress] > 916 | if (node_to_cpumask_map[node] =3D=3D NULL) { >=20 >=20 > > [...] >=20 > Yeah - and I agree with your fix - will apply it. >=20 > Thanks for your patience :-) >=20 > Ingo >=20 No worries, and thanks! :) Siddh