Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [rmk:for-next 3/7] arch/arm/mm/ioremap.c:130:32: error: call to undeclared function 'kasan_mem_to_shadow'; ISO C99 and later do not support implicit function declarations
@ 2024-11-12 23:10 kernel test robot
  2024-11-13  0:34 ` Linus Walleij
  0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2024-11-12 23:10 UTC (permalink / raw)
  To: Melon Liu; +Cc: llvm, oe-kbuild-all, Russell King (Oracle), Linus Walleij

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rmk/linux.git for-next
head:   315cfa0efa30b8f1c9b8d6b8b5cc9e6c337906ff
commit: 15c0b4cb0223a5cf9783e3759be115c1ca643368 [3/7] ARM: 9427/1: mm: Fix stack recursion caused by KASAN
config: arm-integrator_defconfig (https://download.01.org/0day-ci/archive/20241113/202411130711.xfVEiMKn-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241113/202411130711.xfVEiMKn-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411130711.xfVEiMKn-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/arm/mm/ioremap.c:26:
   In file included from include/linux/mm.h:2213:
   include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     518 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> arch/arm/mm/ioremap.c:130:32: error: call to undeclared function 'kasan_mem_to_shadow'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     130 |                 sync_pgds(mm, (unsigned long)kasan_mem_to_shadow(
         |                                              ^
   1 warning and 1 error generated.


vim +/kasan_mem_to_shadow +130 arch/arm/mm/ioremap.c

   125	
   126	static inline void sync_vmalloc_pgds(struct mm_struct *mm)
   127	{
   128		sync_pgds(mm, VMALLOC_START, VMALLOC_END);
   129		if (IS_ENABLED(CONFIG_KASAN_VMALLOC))
 > 130			sync_pgds(mm, (unsigned long)kasan_mem_to_shadow(
   131						(void *)VMALLOC_START),
   132				      (unsigned long)kasan_mem_to_shadow(
   133						(void *)VMALLOC_END));
   134	}
   135	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-14  7:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-12 23:10 [rmk:for-next 3/7] arch/arm/mm/ioremap.c:130:32: error: call to undeclared function 'kasan_mem_to_shadow'; ISO C99 and later do not support implicit function declarations kernel test robot
2024-11-13  0:34 ` Linus Walleij
2024-11-13 14:20   ` Russell King (Oracle)
2024-11-14  7:40     ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox