* [linux-next:master 3237/3437] arch/m68k/include/asm/irqflags.h:44:29: error: implicit declaration of function 'hardirq_count'
@ 2025-02-13 7:58 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-13 7:58 UTC (permalink / raw)
To: Mel Gorman; +Cc: oe-kbuild-all, Kees Cook
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 7b7a883c7f4de1ee5040bd1c32aabaafde54d209
commit: fe348e05890776897acb931eb39987fcef0f6f65 [3237/3437] mm: security: Check early if HARDENED_USERCOPY is enabled
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20250213/202502131523.z4DBMW40-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250213/202502131523.z4DBMW40-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/202502131523.z4DBMW40-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/irqflags.h:18,
from arch/m68k/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/jump_label.h:257,
from include/linux/thread_info.h:221,
from include/asm-generic/preempt.h:5,
from ./arch/m68k/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:79,
from arch/m68k/include/asm/processor.h:11,
from include/linux/sched.h:13,
from arch/m68k/kernel/asm-offsets.c:15:
arch/m68k/include/asm/irqflags.h: In function 'arch_local_irq_enable':
>> arch/m68k/include/asm/irqflags.h:44:29: error: implicit declaration of function 'hardirq_count' [-Wimplicit-function-declaration]
44 | if (MACH_IS_Q40 || !hardirq_count())
| ^~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:102: arch/m68k/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1264: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:251: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:251: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/hardirq_count +44 arch/m68k/include/asm/irqflags.h
df9ee29270c11d David Howells 2010-10-07 31
df9ee29270c11d David Howells 2010-10-07 32 static inline void arch_local_irq_enable(void)
df9ee29270c11d David Howells 2010-10-07 33 {
df9ee29270c11d David Howells 2010-10-07 34 #if defined(CONFIG_COLDFIRE)
df9ee29270c11d David Howells 2010-10-07 35 asm volatile (
df9ee29270c11d David Howells 2010-10-07 36 "move %/sr,%%d0 \n\t"
df9ee29270c11d David Howells 2010-10-07 37 "andi.l #0xf8ff,%%d0 \n\t"
df9ee29270c11d David Howells 2010-10-07 38 "move %%d0,%/sr \n"
df9ee29270c11d David Howells 2010-10-07 39 : /* no outputs */
df9ee29270c11d David Howells 2010-10-07 40 :
df9ee29270c11d David Howells 2010-10-07 41 : "cc", "%d0", "memory");
df9ee29270c11d David Howells 2010-10-07 42 #else
df9ee29270c11d David Howells 2010-10-07 43 # if defined(CONFIG_MMU)
df9ee29270c11d David Howells 2010-10-07 @44 if (MACH_IS_Q40 || !hardirq_count())
df9ee29270c11d David Howells 2010-10-07 45 # endif
df9ee29270c11d David Howells 2010-10-07 46 asm volatile (
df9ee29270c11d David Howells 2010-10-07 47 "andiw %0,%%sr"
df9ee29270c11d David Howells 2010-10-07 48 :
df9ee29270c11d David Howells 2010-10-07 49 : "i" (ALLOWINT)
df9ee29270c11d David Howells 2010-10-07 50 : "memory");
df9ee29270c11d David Howells 2010-10-07 51 #endif
df9ee29270c11d David Howells 2010-10-07 52 }
df9ee29270c11d David Howells 2010-10-07 53
:::::: The code at line 44 was first introduced by commit
:::::: df9ee29270c11dba7d0fe0b83ce47a4d8e8d2101 Fix IRQ flag handling naming
:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: David Howells <dhowells@redhat.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-13 7:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-13 7:58 [linux-next:master 3237/3437] arch/m68k/include/asm/irqflags.h:44:29: error: implicit declaration of function 'hardirq_count' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.