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 ACF967F for ; Mon, 1 Aug 2022 12:51:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659358313; x=1690894313; h=date:from:to:cc:subject:message-id:mime-version; bh=oEH9ZvYvCx/3dKmuYTCK9/kphMzYWzwnyuI/8wCWF5I=; b=JY0qXurQGGDVPCDTs1zszT8yRf88cNL6tg+0P4bBNMHHB0i5d7lUrTVu PtvVKSJ+YTxbT65petbxfh/nQPvZ4vArZNQKHMmXfD8xGiv/DNiW8MTY8 9W2AyKQxw+UTvDLsQbGkoNk0e4rSuOvkZUELLtqWBROK+NJwNWblaUUI+ e3APZ2QJVQiXPNY/i5YCmaRRAwhirMZwxw/CBlrPz9UlJDxJIFp22j8B9 himlxHgHLOc9+WfYOBbZcLqLwtka8vPL1Oy6sWcN+6T8gFXs5pL8m0zqh fadaEuS512vOnniUHdcVEJXanTHunuo/K7uCP136TH3R7keznfNpWsOEc Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10426"; a="375439210" X-IronPort-AV: E=Sophos;i="5.93,206,1654585200"; d="scan'208";a="375439210" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2022 05:51:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,208,1654585200"; d="scan'208";a="552502356" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 01 Aug 2022 05:51:30 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oIUtO-000F53-0R; Mon, 01 Aug 2022 12:51:30 +0000 Date: Mon, 1 Aug 2022 20:51:19 +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 , Mark Rutland Subject: mm/kasan/sw_tags.c:211:6: warning: no previous prototype for function 'kasan_tag_mismatch' Message-ID: <202208012031.pyukKQJC-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 Hi Peter, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3d7cb6b04c3f3115719235cc6866b10326de34cd commit: 1cbdf60bd1b74e397d48aa877367cfc621f45ffe kasan: arm64: support specialized outlined tag mismatch checks date: 1 year, 2 months ago config: arm64-randconfig-r032-20220801 (https://download.01.org/0day-ci/archive/20220801/202208012031.pyukKQJC-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 52cd00cabf479aa7eb6dbb063b7ba41ea57bce9e) 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=1cbdf60bd1b74e397d48aa877367cfc621f45ffe git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 1cbdf60bd1b74e397d48aa877367cfc621f45ffe # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash mm/kasan/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot Note: functions only called from assembly code should be annotated with the asmlinkage attribute All warnings (new ones prefixed by >>): >> mm/kasan/sw_tags.c:211:6: warning: no previous prototype for function 'kasan_tag_mismatch' [-Wmissing-prototypes] void kasan_tag_mismatch(unsigned long addr, unsigned long access_info, ^ mm/kasan/sw_tags.c:211:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void kasan_tag_mismatch(unsigned long addr, unsigned long access_info, ^ static 1 warning generated. vim +/kasan_tag_mismatch +211 mm/kasan/sw_tags.c 210 > 211 void kasan_tag_mismatch(unsigned long addr, unsigned long access_info, -- 0-DAY CI Kernel Test Service https://01.org/lkp