[broonie-ci:tmp 1/1] init/main.c:1641:2: error: TEST

From: kernel test robot
Date: Sat Apr 02 2022 - 03:32:53 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git tmp
head: 43b72ebc853c105427885ca515416f58459c0a5d
commit: 43b72ebc853c105427885ca515416f58459c0a5d [1/1] Test build failures
config: x86_64-randconfig-a014 (https://download.01.org/0day-ci/archive/20220402/202204021556.nxlZnplP-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566)
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/broonie/ci.git/commit/?id=43b72ebc853c105427885ca515416f58459c0a5d
git remote add broonie-ci https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git
git fetch --no-tags broonie-ci tmp
git checkout 43b72ebc853c105427885ca515416f58459c0a5d
# 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=x86_64 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

init/main.c:781:20: warning: no previous prototype for function 'mem_encrypt_init' [-Wmissing-prototypes]
void __init __weak mem_encrypt_init(void) { }
^
init/main.c:781: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:1641:2: error: TEST
#error TEST
^
1 warning and 1 error generated.


vim +1641 init/main.c

1640
> 1641 #error TEST

--
0-DAY CI Kernel Test Service
https://01.org/lkp