* [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
* Re: [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 [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)
0 siblings, 1 reply; 4+ messages in thread
From: Linus Walleij @ 2024-11-13 0:34 UTC (permalink / raw)
To: kernel test robot; +Cc: Melon Liu, llvm, oe-kbuild-all, Russell King (Oracle)
On Wed, Nov 13, 2024 at 12:11 AM kernel test robot <lkp@intel.com> wrote:
> >> 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.
I mentioned this in a comment to 9429/1 that it supercedes 9427/1 since the
author didn't send a new version to solve this issue. Maybe I should have
mailed some more...
9429/1, 9430/1 and 9431/1 can be applied cleanly in its place.
Sorry for the mess. Tell me if you want me to re-send them!
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [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-13 0:34 ` Linus Walleij
@ 2024-11-13 14:20 ` Russell King (Oracle)
2024-11-14 7:40 ` Linus Walleij
0 siblings, 1 reply; 4+ messages in thread
From: Russell King (Oracle) @ 2024-11-13 14:20 UTC (permalink / raw)
To: Linus Walleij; +Cc: kernel test robot, Melon Liu, llvm, oe-kbuild-all
On Wed, Nov 13, 2024 at 01:34:34AM +0100, Linus Walleij wrote:
> On Wed, Nov 13, 2024 at 12:11 AM kernel test robot <lkp@intel.com> wrote:
>
> > >> 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.
>
> I mentioned this in a comment to 9429/1 that it supercedes 9427/1 since the
> author didn't send a new version to solve this issue. Maybe I should have
> mailed some more...
Sorry, missed that comment.
> 9429/1, 9430/1 and 9431/1 can be applied cleanly in its place.
I initially applied all of them, deciding that 9427/1 was a fix and
the other three were development. On merging the two branches, the
conflicts looked horrible, so I dropped the "development" stuff rather
than the apparent "fix" patch, clearly I should've looked closer and
done the opposite.
Now corrected, assuming tonight's build is clean, no further action
should be required.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [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-13 14:20 ` Russell King (Oracle)
@ 2024-11-14 7:40 ` Linus Walleij
0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2024-11-14 7:40 UTC (permalink / raw)
To: Russell King (Oracle); +Cc: kernel test robot, Melon Liu, llvm, oe-kbuild-all
On Wed, Nov 13, 2024 at 3:20 PM Russell King (Oracle)
<linux@armlinux.org.uk> wrote:
> Now corrected, assuming tonight's build is clean, no further action
> should be required.
Thanks Russell, much appreciated! Tested the linux-next
tree this morning and all seems fine.
Yours,
Linus Walleij
^ 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