Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5288299iob; Mon, 9 May 2022 12:53:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkPmDw4iKtYAJA0QZL05CLjkTCH0N3S2/mTi5Zg5GT5QHPQMK0Aks5FiaZU2gzXiBVGBpH X-Received: by 2002:a17:902:a9c6:b0:15e:fe5d:cf67 with SMTP id b6-20020a170902a9c600b0015efe5dcf67mr10923624plr.74.1652125983403; Mon, 09 May 2022 12:53:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652125983; cv=none; d=google.com; s=arc-20160816; b=xFSzN3Uy5Y+jN35H0SR4ZRiXGw5EEpF0ketUi+cqqFQYEcsHDf5qX5mO568wGudGjv u2OeYtjSuLk6xDTvhRT3GlumHjrI8XyJgAu4V86vCqwTnjWGcIExeogwRXeb+BqGPZNm oEu2kw02uCXX36OepIenZvp8CzsUuN1kOrk/whL3KKyMK4tVeEGkYt5fWgBJUOgPibD9 MAGCr9Zv38rDVthFVS7gAW/o3CB11UCApS1iOB2DHg8TVMjfObeiHJQmSevbWCfKTORm DIuM8LqYrNGSS4KQ+EVPkHknl+Z4N2bct+KSPo7oE7EynT3I72g0pW6jEX2B2ruOtx94 JEEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lUw4VaKIzxrbYNwvojWVRe8W2wHxEMMJeCH5HQ+Oo5w=; b=ffNgVQorvAU7mZcSizgzDsIsPNba5UjY89zcDUev7frhTt2kzxMwqwuXFh2gOFGICs e3tqxD9LjtdB+AUASiuNWArfgo3DUw76Uhg0mCtVYu0HpOolFIrCEk3SP0Lg/uw4VNcr LYvKclXaivR+/77pDFopaV8CvTrcx9Ki4+rCOkXfqoqmVXb+Hl3zmVTU8pCCUGLDBYlz qFKTRUlKc5rfKRdjJyJFNiBSqTpCiG4X3LBmMU97vhRMssTbOQXh5fJ8hlYwcmGzRxE6 PMRMSvnf8+DwS5TYLzPmZDi/z6aBNcZ3/5QUd8M/0fHhjWyZMMWQKTuETuAJyHr4v9oD mxqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=RjU5sRMW; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r10-20020a170902ea4a00b0015852f2a130si442062plg.620.2022.05.09.12.53.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 12:53:03 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=RjU5sRMW; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3970E1E029D; Mon, 9 May 2022 12:50:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240698AbiEITyO (ORCPT + 99 others); Mon, 9 May 2022 15:54:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240677AbiEITyK (ORCPT ); Mon, 9 May 2022 15:54:10 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 132301D5033 for ; Mon, 9 May 2022 12:50:16 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id t25so25637051lfg.7 for ; Mon, 09 May 2022 12:50:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lUw4VaKIzxrbYNwvojWVRe8W2wHxEMMJeCH5HQ+Oo5w=; b=RjU5sRMW3dnGEQjLoVoh4aJgCLuyLKWdPccKJsojGEtVqmZdIWkuXQWc9cF7Ej/2zB HHBnEjo99v2jfWA+f/P7jQnzyexM6xakAs3aIrOnzRgfKtuGeHzQS3SbhFzdm7S50A3n CCt1j4XXaSI71WLPsEoU+4V1qUNuSDxf0GOQG3PMYwyljAmf5EHaLuATgVBaCvoKesTp oKSRvrU6Cu287E6FaG2f6Z4zpZnAJM+BixQ0Ttko8R8KvNTVwvRnaH9bPHU3fbH0HU95 guFNGhyt9baLgCmsZ781fRIugm3e8RB6RjXGultZMfiuIG3cf/X8T+7P/8p+jI6gfCNF GTYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lUw4VaKIzxrbYNwvojWVRe8W2wHxEMMJeCH5HQ+Oo5w=; b=DdlBMJ9ijEotqZPGsAW4kDH3JIdVECjTxHp2+ti0nBOfnug2bs2cFepRpTdvzp+MPO Ca5kmh6c6KHFcjRxl6q/ar5NcI+TxVScuf8ENRsGZIvsBdyQL2iHWV8odEGyuf2tA4rh PwFdY6Ymo+RDj2WBx38DpHyoCN1VBqAVoO3OGYCXYl6DM4bEnVTfvxw7kaMPuqHCExtD vL5TWBMfunV+Qow9A9s3B9jkVZW1TQKDihIjXUmbCKXvvrmzG4Ar7BLqFiYUY5nU5k+f 7CF3vN+85qkeGwHtDl/wnLc7AuJNnd0HnYjPgT521Izqmqe7KkXKgQLh8SVPSBz9BgsL ACPg== X-Gm-Message-State: AOAM531YPCq5stvRL3LEJP3nzYDRTXX602CfB4S11uQ51mkuzylZAUAa AVUlcJXpyW9sy9tvc2kCodRDGsaOwETSYJ1g3G2HCA== X-Received: by 2002:a05:6512:48f:b0:472:3c47:94a0 with SMTP id v15-20020a056512048f00b004723c4794a0mr13708380lfq.579.1652125814206; Mon, 09 May 2022 12:50:14 -0700 (PDT) MIME-Version: 1.0 References: <20220306171009.1973074-1-mailhol.vincent@wanadoo.fr> <20220508100907.61231-1-mailhol.vincent@wanadoo.fr> In-Reply-To: From: Nick Desaulniers Date: Mon, 9 May 2022 12:50:01 -0700 Message-ID: Subject: Re: [RESEND PATCH v1] x86/build: add -fno-builtin flag to prevent shadowing To: Vincent MAILHOL Cc: Nathan Chancellor , Arnd Bergmann , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "the arch/x86 maintainers" , "H . Peter Anvin" , Linux Kernel Mailing List , clang-built-linux , Tom Rix , Kees Cook Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL 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 On Mon, May 9, 2022 at 8:01 AM Vincent MAILHOL wrote: > > Instead, I am thinking of just using -fno-builtin-ffs to remove > the annoying -Wshadow warning. Would that make more sense? Perhaps a pragma would be the best tool to silence this instance of -Wshadow? I understand what GCC is trying to express, but the kernel does straddle a weird place between -ffreestanding and a "hosted" env. -- Thanks, ~Nick Desaulniers