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 6DB83C433F5 for ; Fri, 11 Mar 2022 20:56:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230177AbiCKU5d (ORCPT ); Fri, 11 Mar 2022 15:57:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbiCKU5b (ORCPT ); Fri, 11 Mar 2022 15:57:31 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CCD11F484F for ; Fri, 11 Mar 2022 12:56:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647032178; x=1678568178; h=date:from:to:cc:subject:message-id:mime-version; bh=Eft7ilMFBTtn33WKAneo4xUPJ38xQRQ0vY+nWyGwX7A=; b=GCDGbPropqXfjKzSTtdYwH9y4a61mq8OeM2Dw7R5A4dJJlEAehZxFdSQ RWs/Avw7Y2eOkrFt2ITAc0ee2wzpPYaA6wWA6xwzHxeyFUXv4JlHDtOCN 1bg1M8hXB2GoFafOw1ZQM8farPf1uXenFmbf52wo/xXhdLO7x/NZthWhI wj8gx/S3YEUjGPUkXxWlgI8TUMV1v0OpSKmSYFHjR65mYBnThDvjV3KT5 UA3S5QdkILpZFHbXfbLW64cDqjxl4mo8VppamVumGRCn5TLarZyrinilV fJMPdXelhcs2v6ErVt9b19oJCeOXSmEO4l88pAlkzweXc2ATSuytOw+1D w==; X-IronPort-AV: E=McAfee;i="6200,9189,10283"; a="255599380" X-IronPort-AV: E=Sophos;i="5.90,174,1643702400"; d="scan'208";a="255599380" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2022 12:55:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,174,1643702400"; d="scan'208";a="514633839" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 11 Mar 2022 12:55:06 -0800 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nSmHy-00075B-56; Fri, 11 Mar 2022 20:55:06 +0000 Date: Sat, 12 Mar 2022 04:54:24 +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: <202203120429.Fx8bkRdV-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 79b00034e9dcd2b065c1665c8b42f62b6b80a9be commit: e5af50a5df571c1d0268b02f924de49b742c990f arm64: kasan: mte: move GCR_EL1 switch to task switch when KASAN disabled date: 5 months ago config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20220312/202203120429.Fx8bkRdV-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 276ca87382b8f16a65bddac700202924228982f6) 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/gpu/drm/tegra/ drivers/usb/host/ kernel/debug/kdb/ 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 https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org