The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [tip:core/entry 2/3] include/linux/user-return-notifier.h:39:56: warning: 'struct task_struct' declared inside parameter list will not be visible outside of this definition or declaration
@ 2026-07-08  8:15 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-08  8:15 UTC (permalink / raw)
  To: Gregory Price; +Cc: oe-kbuild-all, linux-kernel, x86, Thomas Gleixner

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core/entry
head:   34ef6308418f138395a664bf9f5d80ace9825ac6
commit: 7fc04d7044aaa5ffe2afe78979fe6ddd5da24f10 [2/3] syscall_user_dispatch: Make it configurable in Kconfig
config: i386-buildonly-randconfig-006-20260708 (https://download.01.org/0day-ci/archive/20260708/202607081618.nuPYnSk5-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260708/202607081618.nuPYnSk5-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/202607081618.nuPYnSk5-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arch/x86/include/asm/entry-common.h:6,
                    from include/linux/entry-common.h:5,
                    from kernel/entry/syscall_user_dispatch.c:6:
>> include/linux/user-return-notifier.h:39:56: warning: 'struct task_struct' declared inside parameter list will not be visible outside of this definition or declaration
      39 | static inline void propagate_user_return_notify(struct task_struct *prev,
         |                                                        ^~~~~~~~~~~
   include/linux/user-return-notifier.h:46:54: warning: 'struct task_struct' declared inside parameter list will not be visible outside of this definition or declaration
      46 | static inline void clear_user_return_notifier(struct task_struct *p) {}
         |                                                      ^~~~~~~~~~~
   In file included from arch/x86/include/asm/bug.h:193,
                    from arch/x86/include/asm/alternative.h:9,
                    from arch/x86/include/asm/nospec-branch.h:10,
                    from arch/x86/include/asm/entry-common.h:8:
   arch/x86/include/asm/entry-common.h: In function 'arch_enter_from_user_mode':
   arch/x86/include/asm/processor.h:650:46: error: implicit declaration of function 'task_stack_page'; did you mean 'task_spread_page'? [-Wimplicit-function-declaration]
     650 |         unsigned long __ptr = (unsigned long)task_stack_page(task);     \
         |                                              ^~~~~~~~~~~~~~~
   include/asm-generic/bug.h:120:32: note: in definition of macro 'WARN_ON_ONCE'
     120 |         int __ret_warn_on = !!(condition);                              \
         |                                ^~~~~~~~~
   arch/x86/include/asm/entry-common.h:43:38: note: in expansion of macro 'task_pt_regs'
      43 |                 WARN_ON_ONCE(regs != task_pt_regs(current));
         |                                      ^~~~~~~~~~~~
   In file included from arch/x86/include/asm/switch_to.h:5,
                    from arch/x86/include/asm/stacktrace.h:14,
                    from arch/x86/include/asm/perf_event.h:721,
                    from include/linux/perf_event.h:25,
                    from include/linux/trace_events.h:10,
                    from include/trace/syscall.h:7,
                    from include/linux/syscalls.h:95,
                    from include/linux/irq-entry-common.h:9,
                    from include/linux/entry-common.h:8:
   include/linux/sched/task_stack.h: At top level:
   include/linux/sched/task_stack.h:21:30: error: conflicting types for 'task_stack_page'; have 'void *(const struct task_struct *)'
      21 | static __always_inline void *task_stack_page(const struct task_struct *task)
         |                              ^~~~~~~~~~~~~~~
   arch/x86/include/asm/processor.h:650:46: note: previous implicit declaration of 'task_stack_page' with type 'int()'
     650 |         unsigned long __ptr = (unsigned long)task_stack_page(task);     \
         |                                              ^~~~~~~~~~~~~~~
   include/asm-generic/bug.h:120:32: note: in definition of macro 'WARN_ON_ONCE'
     120 |         int __ret_warn_on = !!(condition);                              \
         |                                ^~~~~~~~~
   arch/x86/include/asm/entry-common.h:43:38: note: in expansion of macro 'task_pt_regs'
      43 |                 WARN_ON_ONCE(regs != task_pt_regs(current));
         |                                      ^~~~~~~~~~~~


vim +39 include/linux/user-return-notifier.h

7c68af6e32c739 Avi Kivity 2009-09-19  38  
7c68af6e32c739 Avi Kivity 2009-09-19 @39  static inline void propagate_user_return_notify(struct task_struct *prev,
7c68af6e32c739 Avi Kivity 2009-09-19  40  						struct task_struct *next)
7c68af6e32c739 Avi Kivity 2009-09-19  41  {
7c68af6e32c739 Avi Kivity 2009-09-19  42  }
7c68af6e32c739 Avi Kivity 2009-09-19  43  

:::::: The code at line 39 was first introduced by commit
:::::: 7c68af6e32c73992bad24107311f3433c89016e2 core, x86: Add user return notifiers

:::::: TO: Avi Kivity <avi@redhat.com>
:::::: CC: H. Peter Anvin <hpa@zytor.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:[~2026-07-08  8:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-08  8:15 [tip:core/entry 2/3] include/linux/user-return-notifier.h:39:56: warning: 'struct task_struct' declared inside parameter list will not be visible outside of this definition or declaration kernel test robot

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