* [jpoimboe:static-call-null-3 2/5] arch/powerpc/kernel/irq.c:223:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int
@ 2023-03-10 23:24 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-10 23:24 UTC (permalink / raw)
To: Josh Poimboeuf; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git static-call-null-3
head: 432e4844ba65840af4a24f5e3f561aead867f6e7
commit: 999f0b7f8056dcb51476a6515a8601c9d6374aa2 [2/5] static_call: Make NULL static calls return 0
config: powerpc-randconfig-r001-20230310 (https://download.01.org/0day-ci/archive/20230311/202303110734.cvRB3UtN-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git/commit/?id=999f0b7f8056dcb51476a6515a8601c9d6374aa2
git remote add jpoimboe https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git
git fetch --no-tags jpoimboe static-call-null-3
git checkout 999f0b7f8056dcb51476a6515a8601c9d6374aa2
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/kernel/ kernel/events/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303110734.cvRB3UtN-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/powerpc/kernel/irq.c:223:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
DEFINE_STATIC_CALL_RET0(ppc_get_irq, *ppc_md.get_irq);
^
include/linux/static_call.h:212:33: note: expanded from macro 'DEFINE_STATIC_CALL_RET0'
#define DEFINE_STATIC_CALL_RET0 DEFINE_STATIC_CALL_NULL
^
include/linux/static_call.h:210:2: note: expanded from macro 'DEFINE_STATIC_CALL_NULL'
ARCH_DEFINE_STATIC_CALL_NULL_TRAMP(name)
^
>> arch/powerpc/kernel/irq.c:223:25: error: a parameter list without types is only allowed in a function definition
DEFINE_STATIC_CALL_RET0(ppc_get_irq, *ppc_md.get_irq);
^
include/linux/static_call.h:212:33: note: expanded from macro 'DEFINE_STATIC_CALL_RET0'
#define DEFINE_STATIC_CALL_RET0 DEFINE_STATIC_CALL_NULL
^
2 errors generated.
--
>> kernel/events/core.c:13769:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
DEFINE_STATIC_CALL_RET0(perf_snapshot_branch_stack, perf_snapshot_branch_stack_t);
^
include/linux/static_call.h:212:33: note: expanded from macro 'DEFINE_STATIC_CALL_RET0'
#define DEFINE_STATIC_CALL_RET0 DEFINE_STATIC_CALL_NULL
^
include/linux/static_call.h:210:2: note: expanded from macro 'DEFINE_STATIC_CALL_NULL'
ARCH_DEFINE_STATIC_CALL_NULL_TRAMP(name)
^
>> kernel/events/core.c:13769:25: error: a parameter list without types is only allowed in a function definition
DEFINE_STATIC_CALL_RET0(perf_snapshot_branch_stack, perf_snapshot_branch_stack_t);
^
include/linux/static_call.h:212:33: note: expanded from macro 'DEFINE_STATIC_CALL_RET0'
#define DEFINE_STATIC_CALL_RET0 DEFINE_STATIC_CALL_NULL
^
2 errors generated.
vim +/int +223 arch/powerpc/kernel/irq.c
48cf12d88969bd Christophe Leroy 2021-03-19 222
e59596a2d6a75e Christophe Leroy 2022-03-11 @223 DEFINE_STATIC_CALL_RET0(ppc_get_irq, *ppc_md.get_irq);
e59596a2d6a75e Christophe Leroy 2022-03-11 224
:::::: The code at line 223 was first introduced by commit
:::::: e59596a2d6a75ea3deb60698b95942aaf03681f5 powerpc: Use static call for get_irq()
:::::: TO: Christophe Leroy <christophe.leroy@csgroup.eu>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-10 23:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-10 23:24 [jpoimboe:static-call-null-3 2/5] arch/powerpc/kernel/irq.c:223:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).