[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202106140511.NbHD0eRF-lkp@intel.com>
Date: Mon, 14 Jun 2021 05:10:16 +0800
From: kernel test robot <lkp@...el.com>
To: Ingo Molnar <mingo@...nel.org>
Cc: kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
linux-kernel@...r.kernel.org, x86@...nel.org
Subject: [tip:tmp.tmp2 253/364] include/linux/kernel.h:72:1: warning:
declaration specifier missing, defaulting to 'int'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: d9c2c90ff3d122ee8c4bf9129c91eb741b5c6463 [253/364] sched/headers: Simplify <linux/kernel.h>
config: x86_64-randconfig-b001-20210613 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386)
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/tip/tip.git/commit/?id=d9c2c90ff3d122ee8c4bf9129c91eb741b5c6463
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip tmp.tmp2
git checkout d9c2c90ff3d122ee8c4bf9129c91eb741b5c6463
# 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@...el.com>
All warnings (new ones prefixed by >>):
In file included from kernel/bounds.c:10:
In file included from include/linux/page-flags.h:10:
In file included from include/linux/bug.h:5:
In file included from arch/x86/include/asm/bug.h:84:
In file included from include/asm-generic/bug.h:20:
>> include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int'
DECLARE_STATIC_CALL(might_resched, __cond_resched);
^
int
include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition
DECLARE_STATIC_CALL(might_resched, __cond_resched);
^
include/linux/kernel.h:76:2: error: implicit declaration of function 'static_call_mod' [-Werror,-Wimplicit-function-declaration]
static_call_mod(might_resched)();
^
include/linux/kernel.h:76:32: error: called object type 'int' is not a function or function pointer
static_call_mod(might_resched)();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
1 warning and 3 errors generated.
--
In file included from kernel/bounds.c:10:
In file included from include/linux/page-flags.h:10:
In file included from include/linux/bug.h:5:
In file included from arch/x86/include/asm/bug.h:84:
In file included from include/asm-generic/bug.h:20:
>> include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int'
DECLARE_STATIC_CALL(might_resched, __cond_resched);
^
int
include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition
DECLARE_STATIC_CALL(might_resched, __cond_resched);
^
include/linux/kernel.h:76:2: error: implicit declaration of function 'static_call_mod' [-Werror,-Wimplicit-function-declaration]
static_call_mod(might_resched)();
^
include/linux/kernel.h:76:32: error: called object type 'int' is not a function or function pointer
static_call_mod(might_resched)();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
1 warning and 3 errors generated.
make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1232: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from kernel/bounds.c:10:
In file included from include/linux/page-flags.h:10:
In file included from include/linux/bug.h:5:
In file included from arch/x86/include/asm/bug.h:84:
In file included from include/asm-generic/bug.h:20:
>> include/linux/kernel.h:72:1: warning: declaration specifier missing, defaulting to 'int'
DECLARE_STATIC_CALL(might_resched, __cond_resched);
^
int
include/linux/kernel.h:72:21: error: a parameter list without types is only allowed in a function definition
DECLARE_STATIC_CALL(might_resched, __cond_resched);
^
include/linux/kernel.h:76:2: error: implicit declaration of function 'static_call_mod' [-Werror,-Wimplicit-function-declaration]
static_call_mod(might_resched)();
^
include/linux/kernel.h:76:32: error: called object type 'int' is not a function or function pointer
static_call_mod(might_resched)();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
1 warning and 3 errors generated.
make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1232: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/int +72 include/linux/kernel.h
b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 71)
b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 @72) DECLARE_STATIC_CALL(might_resched, __cond_resched);
b965f1ddb47daa Peter Zijlstra (Intel 2021-01-18 73)
:::::: The code at line 72 was first introduced by commit
:::::: b965f1ddb47daa5b8b2e2bc9c921431236830367 preempt/dynamic: Provide cond_resched() and might_resched() static calls
:::::: TO: Peter Zijlstra (Intel) <peterz@...radead.org>
:::::: CC: Ingo Molnar <mingo@...nel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (42099 bytes)
Powered by blists - more mailing lists