* [glemco:staging_mm_cid_batches_rebased 2/4] include/linux/rseq.h:71:6: error: call to undeclared function 'mm_cid_needs_scan'; ISO C99 and later do not support implicit function declarations
@ 2025-09-24 22:28 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-09-24 22:28 UTC (permalink / raw)
To: Gabriele Monaco; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gmonaco/linux.git staging_mm_cid_batches_rebased
head: 24c26371786d14151f048bd5a5cbeb5d94c0b4f1
commit: 1acdeaba787d05a2b3508a21c4eddcdf55486f5d [2/4] rseq: Schedule the mm_cid_compaction from rseq_sched_switch_event()
config: s390-allnoconfig (https://download.01.org/0day-ci/archive/20250925/202509250642.jctDs4XW-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project cafc064fc7a96b3979a023ddae1da2b499d6c954)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250925/202509250642.jctDs4XW-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/202509250642.jctDs4XW-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/s390/kernel/signal.c:15:
>> include/linux/rseq.h:71:6: error: call to undeclared function 'mm_cid_needs_scan'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
71 | if (mm_cid_needs_scan(t->mm))
| ^
In file included from arch/s390/kernel/signal.c:16:
In file included from include/linux/mm.h:7:
In file included from include/linux/gfp.h:7:
In file included from include/linux/mmzone.h:22:
>> include/linux/mm_types.h:1444:20: error: static declaration of 'mm_cid_needs_scan' follows non-static declaration
1444 | static inline bool mm_cid_needs_scan(struct mm_struct *mm)
| ^
include/linux/rseq.h:71:6: note: previous implicit declaration is here
71 | if (mm_cid_needs_scan(t->mm))
| ^
In file included from arch/s390/kernel/signal.c:16:
In file included from include/linux/mm.h:36:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
98 | return (set->sig[3] | set->sig[2] |
| ^ ~
arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here
22 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/s390/kernel/signal.c:16:
In file included from include/linux/mm.h:36:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
98 | return (set->sig[3] | set->sig[2] |
| ^ ~
arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here
22 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/s390/kernel/signal.c:16:
In file included from include/linux/mm.h:36:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:99:4: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
99 | set->sig[1] | set->sig[0]) == 0;
| ^ ~
arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here
22 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/s390/kernel/signal.c:16:
In file included from include/linux/mm.h:36:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:101:11: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
101 | return (set->sig[1] | set->sig[0]) == 0;
| ^ ~
arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here
22 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/s390/kernel/signal.c:16:
In file included from include/linux/mm.h:36:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
114 | return (set1->sig[3] == set2->sig[3]) &&
| ^ ~
arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here
22 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/s390/kernel/signal.c:16:
In file included from include/linux/mm.h:36:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:114:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
114 | return (set1->sig[3] == set2->sig[3]) &&
| ^ ~
arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here
22 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/s390/kernel/signal.c:16:
In file included from include/linux/mm.h:36:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:115:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
115 | (set1->sig[2] == set2->sig[2]) &&
| ^ ~
arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here
22 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/s390/kernel/signal.c:16:
In file included from include/linux/mm.h:36:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:115:21: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
115 | (set1->sig[2] == set2->sig[2]) &&
| ^ ~
arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here
22 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/s390/kernel/signal.c:16:
In file included from include/linux/mm.h:36:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:116:5: warning: array index 1 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
116 | (set1->sig[1] == set2->sig[1]) &&
| ^ ~
arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here
22 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/s390/kernel/signal.c:16:
In file included from include/linux/mm.h:36:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:116:21: warning: array index 1 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
vim +/mm_cid_needs_scan +71 include/linux/rseq.h
45
46 /* Invoked from context switch to force evaluation on exit to user */
47 static __always_inline void rseq_sched_switch_event(struct task_struct *t)
48 {
49 struct rseq_event *ev = &t->rseq.event;
50
51 if (IS_ENABLED(CONFIG_GENERIC_IRQ_ENTRY)) {
52 /*
53 * Avoid a boat load of conditionals by using simple logic
54 * to determine whether NOTIFY_RESUME needs to be raised.
55 *
56 * It's required when the CPU or MM CID has changed or
57 * the entry was from user space.
58 */
59 bool raise = (ev->user_irq | ev->ids_changed) & ev->has_rseq;
60
61 if (raise) {
62 ev->sched_switch = true;
63 rseq_raise_notify_resume(t);
64 }
65 } else {
66 if (ev->has_rseq) {
67 t->rseq.event.sched_switch = true;
68 rseq_raise_notify_resume(t);
69 }
70 }
> 71 if (mm_cid_needs_scan(t->mm))
72 task_add_mm_cid(t);
73 }
74
--
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-09-24 22:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-24 22:28 [glemco:staging_mm_cid_batches_rebased 2/4] include/linux/rseq.h:71:6: error: call to undeclared function 'mm_cid_needs_scan'; ISO C99 and later do not support implicit function declarations 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.