From: kernel test robot <lkp@intel.com>
To: Gregory Price <gourry@gourry.net>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
x86@kernel.org, Thomas Gleixner <tglx@kernel.org>
Subject: [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
Date: Wed, 08 Jul 2026 16:15:39 +0800 [thread overview]
Message-ID: <202607081618.nuPYnSk5-lkp@intel.com> (raw)
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
reply other threads:[~2026-07-08 8:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202607081618.nuPYnSk5-lkp@intel.com \
--to=lkp@intel.com \
--cc=gourry@gourry.net \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tglx@kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox