From: kernel test robot <lkp@intel.com>
To: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Sat, 11 Mar 2023 07:24:41 +0800 [thread overview]
Message-ID: <202303110734.cvRB3UtN-lkp@intel.com> (raw)
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
reply other threads:[~2023-03-10 23:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202303110734.cvRB3UtN-lkp@intel.com \
--to=lkp@intel.com \
--cc=jpoimboe@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.