From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13BC42F23 for ; Sun, 6 Feb 2022 03:23:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644117783; x=1675653783; h=date:from:to:cc:subject:message-id:mime-version; bh=zRFZcFJxNOvl7gkKaNqqxG6U0Rwhutvl9H+hCyQSK1M=; b=Hg8tpcu2NuLs1iiaW5FluSrksBtBO9vTKfcUvCZz9XoR2HE/IZWI4gwc PwH903iLJT3caHatGSrOb/DL0BjReCUPijwOK9G0KjY0yBnVYxx59MBaU Qn85gr/NzRyo0LkVNFgnIxJimVfm+hIfqsnHC7IOjWEeDIcHw6XFvQv4v VWncDXI8nWKRVGBLeHaTl5MloviZxc2xYjNJPp62bTwY/UCUbIIPMYIOF 6pEFmw8+3xvC6kWhwRMH1Yjj7nyi9hFQNnnpXDXg3zugMkuwCDD0pbNDr rbpMyaxDCet6zrX19WUoerlXNHll9hj/To1fx4ZiaczbLipIu8X3xMfTt w==; X-IronPort-AV: E=McAfee;i="6200,9189,10249"; a="334951187" X-IronPort-AV: E=Sophos;i="5.88,346,1635231600"; d="scan'208";a="334951187" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2022 19:23:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,346,1635231600"; d="scan'208";a="481212395" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 05 Feb 2022 19:23:00 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nGY8h-000ZpT-GB; Sun, 06 Feb 2022 03:22:59 +0000 Date: Sun, 6 Feb 2022 11:22:50 +0800 From: kernel test robot To: Peter Collingbourne Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Will Deacon , Catalin Marinas Subject: arch/arm64/kernel/mte.c:197:13: warning: no previous prototype for function 'kasan_hw_tags_enable' Message-ID: <202202061150.YiFFY3QD-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Hi Peter, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 90c9e950c0def5c354b4a6154a2ddda3e5f214ac commit: e5af50a5df571c1d0268b02f924de49b742c990f arm64: kasan: mte: move GCR_EL1 switch to task switch when KASAN disabled date: 4 months ago config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20220206/202202061150.YiFFY3QD-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project dee058c670593b999fec19c458dbbd882ad9de56) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e5af50a5df571c1d0268b02f924de49b742c990f git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout e5af50a5df571c1d0268b02f924de49b742c990f # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kernel/ drivers/ata/ drivers/usb/dwc3/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/arm64/kernel/mte.c:197:13: warning: no previous prototype for function 'kasan_hw_tags_enable' [-Wmissing-prototypes] void __init kasan_hw_tags_enable(struct alt_instr *alt, __le32 *origptr, ^ arch/arm64/kernel/mte.c:197:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __init kasan_hw_tags_enable(struct alt_instr *alt, __le32 *origptr, ^ static arch/arm64/kernel/mte.c:103:20: warning: unused function '__mte_enable_kernel' [-Wunused-function] static inline void __mte_enable_kernel(const char *mode, unsigned long tcf) ^ 2 warnings generated. vim +/kasan_hw_tags_enable +197 arch/arm64/kernel/mte.c 196 > 197 void __init kasan_hw_tags_enable(struct alt_instr *alt, __le32 *origptr, 198 __le32 *updptr, int nr_inst) 199 { 200 BUG_ON(nr_inst != 1); /* Branch -> NOP */ 201 202 if (kasan_hw_tags_enabled()) 203 *updptr = cpu_to_le32(aarch64_insn_gen_nop()); 204 } 205 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6521713472167902626==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: arch/arm64/kernel/mte.c:197:13: warning: no previous prototype for function 'kasan_hw_tags_enable' Date: Sun, 06 Feb 2022 11:22:50 +0800 Message-ID: <202202061150.YiFFY3QD-lkp@intel.com> List-Id: --===============6521713472167902626== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Peter, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = master head: 90c9e950c0def5c354b4a6154a2ddda3e5f214ac commit: e5af50a5df571c1d0268b02f924de49b742c990f arm64: kasan: mte: move GC= R_EL1 switch to task switch when KASAN disabled date: 4 months ago config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/2022020= 6/202202061150.YiFFY3QD-lkp(a)intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project dee058= c670593b999fec19c458dbbd882ad9de56) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi= t/commit/?id=3De5af50a5df571c1d0268b02f924de49b742c990f git remote add linus https://git.kernel.org/pub/scm/linux/kernel/gi= t/torvalds/linux.git git fetch --no-tags linus master git checkout e5af50a5df571c1d0268b02f924de49b742c990f # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Darm64 SHELL=3D/bin/bash arch/arm64/kernel/ drivers/a= ta/ drivers/usb/dwc3/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/arm64/kernel/mte.c:197:13: warning: no previous prototype for funct= ion 'kasan_hw_tags_enable' [-Wmissing-prototypes] void __init kasan_hw_tags_enable(struct alt_instr *alt, __le32 *origptr, ^ arch/arm64/kernel/mte.c:197:1: note: declare 'static' if the function is= not intended to be used outside of this translation unit void __init kasan_hw_tags_enable(struct alt_instr *alt, __le32 *origptr, ^ static = arch/arm64/kernel/mte.c:103:20: warning: unused function '__mte_enable_k= ernel' [-Wunused-function] static inline void __mte_enable_kernel(const char *mode, unsigned long t= cf) ^ 2 warnings generated. vim +/kasan_hw_tags_enable +197 arch/arm64/kernel/mte.c 196 = > 197 void __init kasan_hw_tags_enable(struct alt_instr *alt, __le32 *orig= ptr, 198 __le32 *updptr, int nr_inst) 199 { 200 BUG_ON(nr_inst !=3D 1); /* Branch -> NOP */ 201 = 202 if (kasan_hw_tags_enabled()) 203 *updptr =3D cpu_to_le32(aarch64_insn_gen_nop()); 204 } 205 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6521713472167902626==--