From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (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 E4B2B168 for ; Wed, 5 Jan 2022 03:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641354986; x=1672890986; h=date:from:to:cc:subject:message-id:mime-version; bh=D5eclF4/ysYCgANbZOwUOhgfhC0pmmqGuRW80NVd8AE=; b=REe0IMEwR0l/ffIL/pk5TJ25HxBfJeAYJBOja4o/D++uDF3jXRXH27Uu 9XLm/ucJ17PnJAJ9a7UsafwklHaBbYY2jZGtENuujdN+LQn5WabE6Q2A2 OQx0uz1h0y7kspvoU/szsDnawr6D5V1ynm6vWsqyKJxWhD6ND2kZzH1Jc Sfa85PV6P2a3q59WeiZR6Va9Piprf1fcx2HU4HGxWyDuBR7eqVIGaWYBA 2FJaQ4yI+xSHLF6hYYnLFcRd+VE8h7Qxv1hSgxV+cBcjnuJwfp/vkEi/m jMv7aIzpqxaiEdiGLlSEfUxp7sSvy9QBGYou3Va2dhe3TXUkssNHqbUga A==; X-IronPort-AV: E=McAfee;i="6200,9189,10217"; a="239901504" X-IronPort-AV: E=Sophos;i="5.88,262,1635231600"; d="scan'208";a="239901504" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2022 19:56:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,262,1635231600"; d="scan'208";a="556389172" Received: from lkp-server01.sh.intel.com (HELO e357b3ef1427) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 04 Jan 2022 19:56:24 -0800 Received: from kbuild by e357b3ef1427 with local (Exim 4.92) (envelope-from ) id 1n4xPT-000GD7-P8; Wed, 05 Jan 2022 03:56:23 +0000 Date: Wed, 5 Jan 2022 11:55:35 +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: <202201051108.401TVotF-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: c9e6606c7fe92b50a02ce51dda82586ebdf99b48 commit: e5af50a5df571c1d0268b02f924de49b742c990f arm64: kasan: mte: move GCR_EL1 switch to task switch when KASAN disabled date: 3 months ago config: arm64-randconfig-r025-20220105 (https://download.01.org/0day-ci/archive/20220105/202201051108.401TVotF-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d5b6e30ed3acad794dd0aec400e617daffc6cc3d) 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/ 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="===============5808444472720912723==" 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: Wed, 05 Jan 2022 11:55:35 +0800 Message-ID: <202201051108.401TVotF-lkp@intel.com> List-Id: --===============5808444472720912723== 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: c9e6606c7fe92b50a02ce51dda82586ebdf99b48 commit: e5af50a5df571c1d0268b02f924de49b742c990f arm64: kasan: mte: move GC= R_EL1 switch to task switch when KASAN disabled date: 3 months ago config: arm64-randconfig-r025-20220105 (https://download.01.org/0day-ci/arc= hive/20220105/202201051108.401TVotF-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d5b6e3= 0ed3acad794dd0aec400e617daffc6cc3d) 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/ 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 --===============5808444472720912723==--