[mingo-tip:sched/headers 104/2372] init/main.c:884:13: warning: no previous prototype for function 'init_per_task_early'

From: kernel test robot
Date: Sat Jan 08 2022 - 01:07:55 EST


tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 67f8f45b4d0cf00f8e53fc1c2b50c67608ede063
commit: eefe4b7749e3afbf9a5cb237cfb3727701126996 [104/2372] headers/deps: cpusets: Move task_struct::mems_allowed_seq to per_task()
config: i386-randconfig-r014-20220107 (https://download.01.org/0day-ci/archive/20220108/202201081348.mrJjpM8b-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f3a344d2125fa37e59bae1b0874442c650a19607)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=eefe4b7749e3afbf9a5cb237cfb3727701126996
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout eefe4b7749e3afbf9a5cb237cfb3727701126996
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

init/main.c:783:20: warning: no previous prototype for function 'mem_encrypt_init' [-Wmissing-prototypes]
void __init __weak mem_encrypt_init(void) { }
^
init/main.c:783:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init __weak mem_encrypt_init(void) { }
^
static
>> init/main.c:884:13: warning: no previous prototype for function 'init_per_task_early' [-Wmissing-prototypes]
void __init init_per_task_early(void)
^
init/main.c:884:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init init_per_task_early(void)
^
static
2 warnings generated.


vim +/init_per_task_early +884 init/main.c

883
> 884 void __init init_per_task_early(void)
885 {
886 #ifdef CONFIG_POSIX_TIMERS
887 per_task(&init_task, posix_cputimers) = (struct posix_cputimers) __INIT_CPU_TIMERS(init_task);
888 #endif
889

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx