* [luto:x86/fixes 21/26] arch/x86/entry/common.c:217:24: warning: no previous prototype for function 'ret_from_fork'
@ 2021-03-02 8:16 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-02 8:16 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2507 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git x86/fixes
head: 5a71c0b98407b8fc659967e261ce84da00270892
commit: b529690d96d16fa95b3e6f7baed3f303d01e962c [21/26] x86/entry: Convert ret_from_fork to C
config: x86_64-randconfig-r023-20210302 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5de09ef02e24d234d9fc0cd1c6dfe18a1bb784b0)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/commit/?id=b529690d96d16fa95b3e6f7baed3f303d01e962c
git remote add luto https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git
git fetch --no-tags luto x86/fixes
git checkout b529690d96d16fa95b3e6f7baed3f303d01e962c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/entry/common.c:217:24: warning: no previous prototype for function 'ret_from_fork' [-Wmissing-prototypes]
__visible void noinstr ret_from_fork(struct task_struct *prev,
^
arch/x86/entry/common.c:217:11: note: declare 'static' if the function is not intended to be used outside of this translation unit
__visible void noinstr ret_from_fork(struct task_struct *prev,
^
static
1 warning generated.
vim +/ret_from_fork +217 arch/x86/entry/common.c
216
> 217 __visible void noinstr ret_from_fork(struct task_struct *prev,
218 int (*kernel_thread_fn)(void *),
219 void *kernel_thread_arg,
220 struct pt_regs *user_regs)
221 {
222 instrumentation_begin();
223
224 schedule_tail(prev);
225
226 if (kernel_thread_fn) {
227 kernel_thread_fn(kernel_thread_arg);
228 user_regs->ax = 0;
229 }
230
231 instrumentation_end();
232 syscall_exit_to_user_mode(user_regs);
233 }
234
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 35389 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-02 8:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-02 8:16 [luto:x86/fixes 21/26] arch/x86/entry/common.c:217:24: warning: no previous prototype for function 'ret_from_fork' 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.