From: kernel test robot <lkp@intel.com>
To: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jpoimboe:static-call-null-4 11/11] arch/x86/kvm/x86.c:9324:40: error: implicit declaration of function '__KVM_X86_OP'; did you mean 'KVM_X86_OP'?
Date: Wed, 22 Mar 2023 15:01:08 +0800 [thread overview]
Message-ID: <202303221418.V17gjoGr-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git static-call-null-4
head: 67517470624490a1d82c0b3a5e744a72d325b4af
commit: 99a484ab8cf69008f50c0cc79d3ebec8d67ebc2d [11/11] static_call: Remove DEFINE_STATIC_CALL_RET0()
config: i386-randconfig-a003 (https://download.01.org/0day-ci/archive/20230322/202303221418.V17gjoGr-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git/commit/?id=99a484ab8cf69008f50c0cc79d3ebec8d67ebc2d
git remote add jpoimboe https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git
git fetch --no-tags jpoimboe static-call-null-4
git checkout 99a484ab8cf69008f50c0cc79d3ebec8d67ebc2d
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 olddefconfig
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kvm/
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/202303221418.V17gjoGr-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
arch/x86/include/asm/kvm-x86-ops.h: In function 'kvm_ops_update':
>> arch/x86/kvm/x86.c:9324:40: error: implicit declaration of function '__KVM_X86_OP'; did you mean 'KVM_X86_OP'? [-Werror=implicit-function-declaration]
9324 | #define KVM_X86_OP_OPTIONAL_RET0(func) __KVM_X86_OP
| ^~~~~~~~~~~~
arch/x86/include/asm/kvm-x86-ops.h:23:1: note: in expansion of macro 'KVM_X86_OP_OPTIONAL_RET0'
23 | KVM_X86_OP_OPTIONAL_RET0(vcpu_precreate)
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/include/asm/bug.h:87,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/percpu.h:5,
from include/linux/context_tracking_state.h:5,
from include/linux/hardirq.h:5,
from include/linux/kvm_host.h:7,
from arch/x86/kvm/x86.c:20:
>> include/asm-generic/bug.h:121:29: error: expected expression before '{' token
121 | #define WARN_ON(condition) ({ \
| ^
arch/x86/kvm/x86.c:9322:9: note: in expansion of macro 'WARN_ON'
9322 | WARN_ON(!kvm_x86_ops.func); __KVM_X86_OP(func)
| ^~~~~~~
arch/x86/include/asm/kvm-x86-ops.h:24:1: note: in expansion of macro 'KVM_X86_OP'
24 | KVM_X86_OP(vcpu_create)
| ^~~~~~~~~~
In file included from include/linux/kernel.h:31,
from arch/x86/include/asm/percpu.h:27,
from arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:78,
from include/linux/percpu.h:6,
from include/linux/context_tracking_state.h:5,
from include/linux/hardirq.h:5,
from include/linux/kvm_host.h:7,
from arch/x86/kvm/x86.c:20:
>> include/linux/static_call.h:191:2: error: expected expression before '{' token
191 | ({ \
| ^
arch/x86/kvm/x86.c:9320:9: note: in expansion of macro 'static_call_update'
9320 | static_call_update(kvm_x86_##func, kvm_x86_ops.func);
| ^~~~~~~~~~~~~~~~~~
arch/x86/kvm/x86.c:9323:29: note: in expansion of macro '__KVM_X86_OP'
9323 | #define KVM_X86_OP_OPTIONAL __KVM_X86_OP
| ^~~~~~~~~~~~
arch/x86/include/asm/kvm-x86-ops.h:82:1: note: in expansion of macro 'KVM_X86_OP_OPTIONAL'
82 | KVM_X86_OP_OPTIONAL(load_eoi_exitmap)
| ^~~~~~~~~~~~~~~~~~~
>> arch/x86/kvm/x86.c:9324:40: warning: statement with no effect [-Wunused-value]
9324 | #define KVM_X86_OP_OPTIONAL_RET0(func) __KVM_X86_OP
| ^~~~~~~~~~~~
arch/x86/include/asm/kvm-x86-ops.h:87:1: note: in expansion of macro 'KVM_X86_OP_OPTIONAL_RET0'
87 | KVM_X86_OP_OPTIONAL_RET0(set_tss_addr)
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> arch/x86/kvm/x86.c:9324:40: error: expected ';' before '__KVM_X86_OP'
9324 | #define KVM_X86_OP_OPTIONAL_RET0(func) __KVM_X86_OP
| ^~~~~~~~~~~~
arch/x86/include/asm/kvm-x86-ops.h:88:1: note: in expansion of macro 'KVM_X86_OP_OPTIONAL_RET0'
88 | KVM_X86_OP_OPTIONAL_RET0(set_identity_map_addr)
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/kernel.h:31,
from arch/x86/include/asm/percpu.h:27,
from arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:78,
from include/linux/percpu.h:6,
from include/linux/context_tracking_state.h:5,
from include/linux/hardirq.h:5,
from include/linux/kvm_host.h:7,
from arch/x86/kvm/x86.c:20:
>> include/linux/static_call.h:191:2: error: expected expression before '{' token
191 | ({ \
| ^
arch/x86/kvm/x86.c:9320:9: note: in expansion of macro 'static_call_update'
9320 | static_call_update(kvm_x86_##func, kvm_x86_ops.func);
| ^~~~~~~~~~~~~~~~~~
arch/x86/kvm/x86.c:9323:29: note: in expansion of macro '__KVM_X86_OP'
9323 | #define KVM_X86_OP_OPTIONAL __KVM_X86_OP
| ^~~~~~~~~~~~
arch/x86/include/asm/kvm-x86-ops.h:108:1: note: in expansion of macro 'KVM_X86_OP_OPTIONAL'
108 | KVM_X86_OP_OPTIONAL(set_hv_timer)
| ^~~~~~~~~~~~~~~~~~~
>> arch/x86/kvm/x86.c:9324:40: warning: statement with no effect [-Wunused-value]
9324 | #define KVM_X86_OP_OPTIONAL_RET0(func) __KVM_X86_OP
| ^~~~~~~~~~~~
arch/x86/include/asm/kvm-x86-ops.h:131:1: note: in expansion of macro 'KVM_X86_OP_OPTIONAL_RET0'
131 | KVM_X86_OP_OPTIONAL_RET0(vcpu_get_apicv_inhibit_reasons);
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +9324 arch/x86/kvm/x86.c
9314
9315 static inline void kvm_ops_update(struct kvm_x86_init_ops *ops)
9316 {
9317 memcpy(&kvm_x86_ops, ops->runtime_ops, sizeof(kvm_x86_ops));
9318
9319 #define __KVM_X86_OP(func) \
9320 static_call_update(kvm_x86_##func, kvm_x86_ops.func);
9321 #define KVM_X86_OP(func) \
9322 WARN_ON(!kvm_x86_ops.func); __KVM_X86_OP(func)
9323 #define KVM_X86_OP_OPTIONAL __KVM_X86_OP
> 9324 #define KVM_X86_OP_OPTIONAL_RET0(func) __KVM_X86_OP
9325 #include <asm/kvm-x86-ops.h>
9326 #undef __KVM_X86_OP
9327
9328 kvm_pmu_ops_update(ops->pmu_ops);
9329 }
9330
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
next reply other threads:[~2023-03-22 7:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-22 7:01 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-03-22 7:01 [jpoimboe:static-call-null-4 11/11] arch/x86/kvm/x86.c:9324:40: error: implicit declaration of function '__KVM_X86_OP'; did you mean 'KVM_X86_OP'? kernel test robot
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=202303221418.V17gjoGr-lkp@intel.com \
--to=lkp@intel.com \
--cc=jpoimboe@kernel.org \
--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 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).