Messages in this thread | | | Date | Mon, 1 Aug 2022 20:51:19 +0800 | From | kernel test robot <> | Subject | mm/kasan/sw_tags.c:211:6: warning: no previous prototype for function 'kasan_tag_mismatch' |
| |
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 <lkp@intel.com>
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
| |