From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB166C04A94 for ; Tue, 8 Aug 2023 19:18:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235977AbjHHTSz (ORCPT ); Tue, 8 Aug 2023 15:18:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235955AbjHHTSM (ORCPT ); Tue, 8 Aug 2023 15:18:12 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23AC1FF61F; Tue, 8 Aug 2023 09:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691512868; x=1723048868; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ySK3NlCA6fyTM7xr3G84YaQjAx5GVDZt2tqPMcZ+1SA=; b=BgXxXFNIe0dCMecngDK4Ac/z0xwyw49iWzN8VpZnAFyRc1iKPV0JlQkS TDEQUY9cdi0enw/3W/Y0cAQGo9H30JflspDMFeL3kCDopuLkf4deIVFDk vzoqghi0hLtgCG7iRkGcea9sG9QTAq0C+KXvAXAcyHpD0tURqh7Klypmz nvAafrrOcOROn5TZuMm85AFHmm8Y1qmtk30QqsAwEfZq1o0PhpIQ6pGP4 4Od4px0EUwajpX8jSR/MIGl1ZfaM83jnCxSvq19IFOsPKK9oD1TWHmeYs UmDGEC4vAIcaM9BO23UMvIss7bzd5lTHd4JAumUlb+D67e1d93U07Hget w==; X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="374428090" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="374428090" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Aug 2023 01:03:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="760808069" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="760808069" Received: from lkp-server01.sh.intel.com (HELO d1ccc7e87e8f) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 08 Aug 2023 01:03:50 -0700 Received: from kbuild by d1ccc7e87e8f with local (Exim 4.96) (envelope-from ) id 1qTHh1-0005DS-0c; Tue, 08 Aug 2023 08:03:51 +0000 Date: Tue, 8 Aug 2023 16:03:02 +0800 From: kernel test robot To: Nick Desaulniers , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Tom Rix Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers Subject: Re: [PATCH v2] Makefile.extrawarn: enable -Wmissing-variable-declarations for W=1 Message-ID: <202308081508.EI3CRzQo-lkp@intel.com> References: <20230807-missing_proto-v2-1-3ae2e188bb0c@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230807-missing_proto-v2-1-3ae2e188bb0c@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/Makefile-extrawarn-enable-Wmissing-variable-declarations-for-W-1/20230808-005859 base: 52a93d39b17dc7eb98b6aa3edb93943248e03b2f patch link: https://lore.kernel.org/r/20230807-missing_proto-v2-1-3ae2e188bb0c%40google.com patch subject: [PATCH v2] Makefile.extrawarn: enable -Wmissing-variable-declarations for W=1 config: arm64-randconfig-r013-20230807 (https://download.01.org/0day-ci/archive/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 version 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,-Wmissing-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"); | ^ 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 stack 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