Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4600536rwb; Tue, 8 Aug 2023 10:45:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGnIcPNzfDHfR9N03RsD7PGR8LS3ZYpmzL8/9GWgpOY6pxJakxJcYO2W5w1nlWq13tBkxi4 X-Received: by 2002:a05:6a21:788a:b0:13b:7757:d5b6 with SMTP id bf10-20020a056a21788a00b0013b7757d5b6mr236227pzc.57.1691516756618; Tue, 08 Aug 2023 10:45:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691516756; cv=none; d=google.com; s=arc-20160816; b=RscMcLyvzw/5o3TO1RK3DpyQZi8741b79mgbk+xLjlHIy3aPPMMcyhtsfF+wuEkcqv Kl7wMsh024+wWvONdXK+fH/xdJ9F9o7OpDXpXG+lyr9tpBvnv89PlfnPzRodwSRx9ZHH vXVMRBkvlmyl7UEOELUDP+DvXThVx5Bv0X3z+XhyLrZw2FFlFgNgcBF+kVU73IoiaMqR qpSi6vRjaw0n62uBYI2YViz9kDIFPGLe9eViRksORhqhOBUYe5c30aHCGIIJyAgBrp90 glKHRC6i6+0opYR4EcvQG9k6vEO+AfU8Eq9S1mmI0y0EU+hrrIdcqJIIFOQywJTg56Hk YNUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9SVrz+NVnSrV/fLNgs83Potq7jZtIyWv2wx5nvF6Lpk=; fh=S76ZWOvwNApI4oGvxaUMj+isnrVMG8kp53GfP1+x8a8=; b=m8CC9PhNi+yCAGczu9wUQHiIgwFwowy1K9ZOKWfOnTYnZYDC1rHrr3MEYkqE26Mnbi vEsD3o1Rv01QUkWGKBlEGrnX0BNMNHxe0mnVsxbNEO941bPEIgvzXOUFtMV8U8HGoQZq YWI1lkKaMDCN8qkp3ajAd0eedRmrSLM1JyIdAvDCpnBtFTN6jLYzxdcmjqhwLHlqaH3X pXfnp2UC9VeFdgTHw0YGYZC8s0ERb7AOz/D8CQjWwFc/+NMFR7df5LOSCLK69ZteNm3N X3bvwKzn4GJv33xyVRL/49Thm59ma+pCg636CnWCaHy7DNRhWWzZ9/3gWhuk6cmbacBe jmhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=wsIgw4tt; 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=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l8-20020a63ba48000000b00553c6af75d5si7591918pgu.315.2023.08.08.10.45.43; Tue, 08 Aug 2023 10:45:56 -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=@google.com header.s=20221208 header.b=wsIgw4tt; 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=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230117AbjHHRGb (ORCPT + 99 others); Tue, 8 Aug 2023 13:06:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230008AbjHHRFx (ORCPT ); Tue, 8 Aug 2023 13:05:53 -0400 Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8897F5FDD9 for ; Tue, 8 Aug 2023 09:02:29 -0700 (PDT) Received: by mail-qv1-xf32.google.com with SMTP id 6a1803df08f44-63d0228d32bso33317396d6.2 for ; Tue, 08 Aug 2023 09:02:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691510510; x=1692115310; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9SVrz+NVnSrV/fLNgs83Potq7jZtIyWv2wx5nvF6Lpk=; b=wsIgw4ttZUc2vvn2tUt++rZEm50ULJebTCU/roVp/5gOMExAdK5YJUbFsyMFKAUtj/ sr7CZ18c5XSrJK4tPJJbP6Kb20ZUlQj/Cc9jH+WdEWSp0tlUSPulflq3S3Zfd2Cp6gZv BRryW682w6jq2nH7wDUUO+5FPFTKvwSOXupphetV0nv90l4FpNzkOwz3cCp6vyhv1V+u t4wcmyk/N6PwdmGIAEOIWHTOf3T6hAfh+bDOgVs7IdgDFIKpGV1rfn7gcGpFUKCCyuEL I3fM8Kg75g229/2XxbmG5oQKnX/KZ2rJrHsG7nE34vt5cj4kTkXW+5cIyQ5Fqx8lH8ha ++rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691510510; x=1692115310; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9SVrz+NVnSrV/fLNgs83Potq7jZtIyWv2wx5nvF6Lpk=; b=G5oTfree7tvTUaGWA9v0hJl8M8vYLS8rLWGaZ0YGsMuwmyPIp13o3FnaN4AJHtl51I MA2a40h1EuaJ+DusP2VP5RiR4LU3nflNTjw6AXLo2Yzi40UkY7PRIUbYBmoyD1M1d9Z0 v4iKuhqQbhIyPKCrmFogoZnRmwQ4Hgyw08fMyx8SdFDFIrU1rgGfN5DOTnDHVB1KNTVz 5EXNNNVR//gm9xUzJZ4wRyC4t2bfQ3HERg3FvnWIOy0ufwQ/6SLl69s1uXKN3m2A9RXo jNIpcXv8h9A4L05B1olDlAb29mCCsddjjMwqMyqhNHjuto9wwp7OvOMOHDd5IlesNsZr ke5w== X-Gm-Message-State: AOJu0YwagT22sQhoFLu01aRV7VetnL1xNnZLyn7MlzVoOjR3IgQLj+Jl 2L/PiGF/0g4l96Cn37YZ8Q0pN/LZy8shEVnjHM3u+g== X-Received: by 2002:a0c:edca:0:b0:631:f9ad:1d43 with SMTP id i10-20020a0cedca000000b00631f9ad1d43mr9972971qvr.14.1691510509757; Tue, 08 Aug 2023 09:01:49 -0700 (PDT) MIME-Version: 1.0 References: <20230807-missing_proto-v2-1-3ae2e188bb0c@google.com> <202308081508.EI3CRzQo-lkp@intel.com> In-Reply-To: <202308081508.EI3CRzQo-lkp@intel.com> From: Nick Desaulniers Date: Tue, 8 Aug 2023 09:01:38 -0700 Message-ID: Subject: Re: [PATCH v2] Makefile.extrawarn: enable -Wmissing-variable-declarations for W=1 To: Masahiro Yamada , Nathan Chancellor , kernel test robot Cc: Nicolas Schier , Tom Rix , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 Tue, Aug 8, 2023 at 1:03=E2=80=AFAM kernel test robot wr= ote: > > Hi Nick, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on 52a93d39b17dc7eb98b6aa3edb93943248e03b2f] > > url: https://github.com/intel-lab-lkp/linux/commits/Nick-Desaulniers/M= akefile-extrawarn-enable-Wmissing-variable-declarations-for-W-1/20230808-00= 5859 > base: 52a93d39b17dc7eb98b6aa3edb93943248e03b2f > patch link: https://lore.kernel.org/r/20230807-missing_proto-v2-1-3ae2= e188bb0c%40google.com > patch subject: [PATCH v2] Makefile.extrawarn: enable -Wmissing-variable-d= eclarations for W=3D1 > config: arm64-randconfig-r013-20230807 (https://download.01.org/0day-ci/a= rchive/20230808/202308081508.EI3CRzQo-lkp@intel.com/config) > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git = 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) > reproduce: (https://download.01.org/0day-ci/archive/20230808/202308081508= .EI3CRzQo-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new vers= ion of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202308081508.EI3CRzQo-lkp= @intel.com/ > > All errors (new ones prefixed by >>): > > In file included from lib/test_bitops.c:9: > In file included from include/linux/module.h:13: > In file included from include/linux/stat.h:19: > In file included from include/linux/time.h:60: > In file included from include/linux/time32.h:13: > In file included from include/linux/timex.h:67: > In file included from arch/arm64/include/asm/timex.h:8: > In file included from arch/arm64/include/asm/arch_timer.h:18: > In file included from include/linux/smp.h:110: > In file included from include/linux/preempt.h:79: > In file included from arch/arm64/include/asm/preempt.h:6: > In file included from include/linux/thread_info.h:60: > In file included from arch/arm64/include/asm/thread_info.h:18: > >> arch/arm64/include/asm/stack_pointer.h:8:24: error: no previous extern= declaration for non-static variable 'current_stack_pointer' [-Werror,-Wmis= sing-variable-declarations] > 8 | register unsigned long current_stack_pointer asm ("sp"); > | ^ > arch/arm64/include/asm/stack_pointer.h:8:10: note: declare 'static' if= the variable is not intended to be used outside of this translation unit > 8 | register unsigned long current_stack_pointer asm ("sp"); > | ^ I actually don't think that either compiler should warn for variables with register storage. I spoke briefly with some GCC folks on IRC and the initial assesment was agreed. I've filed - https://github.com/llvm/llvm-project/issues/64509 - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110947 Also, I've received 3 emails from zero day; this is expected as the tree is not W=3D1 clean (actually, I think Arnd has been a lot of cleanup around these groups of warnings, so I take that back). What's more curious to me is that none are GCC builds. I wonder if 0day bot team is only testing W=3D1 with clang and not GCC? That would seem like perhaps the bar is higher for LLVM? Masahiro, Nathan, What are your thoughts on how to proceed here? Do we need the tree to be free of warnings before it can be added to W=3D1? Hopefully not; I would think that's the criteria for promoting a warning from being hidden behind W=3D1 to being on by default in the top level Makefile. What are your thoughts? > 1 error generated. > > > vim +/current_stack_pointer +8 arch/arm64/include/asm/stack_pointer.h > > a9ea0017ebe888 Mark Rutland 2016-11-03 4 > a9ea0017ebe888 Mark Rutland 2016-11-03 5 /* > a9ea0017ebe888 Mark Rutland 2016-11-03 6 * how to get the current stac= k pointer from C > a9ea0017ebe888 Mark Rutland 2016-11-03 7 */ > a9ea0017ebe888 Mark Rutland 2016-11-03 @8 register unsigned long current= _stack_pointer asm ("sp"); > a9ea0017ebe888 Mark Rutland 2016-11-03 9 > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki --=20 Thanks, ~Nick Desaulniers