From: kernel test robot <lkp@intel.com>
To: Eric Biggers <ebiggers@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [ebiggers:xor-pending 1/1] lib/raid/xor/x86/xor_arch.h:16:6: error: call to undeclared function 'cpu_has_xfeatures'; ISO C99 and later do not support implicit function declarations
Date: Sat, 13 Jun 2026 02:42:36 +0800 [thread overview]
Message-ID: <202606130214.hwLDHz6m-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git xor-pending
head: 29d2790c2a2ae236ad76443f63a16fc2ebc3c3bf
commit: 29d2790c2a2ae236ad76443f63a16fc2ebc3c3bf [1/1] lib/raid/xor: x86: Add AVX-512 optimized xor_gen()
config: um-randconfig-002-20260612 (https://download.01.org/0day-ci/archive/20260613/202606130214.hwLDHz6m-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 62847ab7593df144a5708406e6240ec5e8a3a101)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260613/202606130214.hwLDHz6m-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606130214.hwLDHz6m-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from lib/raid/xor/x86/xor-avx512.c:12:
>> lib/raid/xor/x86/xor_arch.h:16:6: error: call to undeclared function 'cpu_has_xfeatures'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
16 | cpu_has_xfeatures(XFEATURE_MASK_AVX512, NULL)) {
| ^
>> lib/raid/xor/x86/xor_arch.h:16:24: error: use of undeclared identifier 'XFEATURE_MASK_AVX512'
16 | cpu_has_xfeatures(XFEATURE_MASK_AVX512, NULL)) {
| ^~~~~~~~~~~~~~~~~~~~
2 errors generated.
--
In file included from lib/raid/xor/xor-core.c:140:
In file included from lib/raid/xor/um/xor_arch.h:2:
>> lib/raid/xor/um/../x86/xor_arch.h:16:6: error: call to undeclared function 'cpu_has_xfeatures'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
16 | cpu_has_xfeatures(XFEATURE_MASK_AVX512, NULL)) {
| ^
>> lib/raid/xor/um/../x86/xor_arch.h:16:24: error: use of undeclared identifier 'XFEATURE_MASK_AVX512'
16 | cpu_has_xfeatures(XFEATURE_MASK_AVX512, NULL)) {
| ^~~~~~~~~~~~~~~~~~~~
2 errors generated.
vim +/cpu_has_xfeatures +16 lib/raid/xor/x86/xor_arch.h
11
12 static __always_inline void __init arch_xor_init(void)
13 {
14 if (IS_ENABLED(CONFIG_X86_64) && boot_cpu_has(X86_FEATURE_AVX512F) &&
15 !boot_cpu_has(X86_FEATURE_PREFER_YMM) &&
> 16 cpu_has_xfeatures(XFEATURE_MASK_AVX512, NULL)) {
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-06-12 18:43 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=202606130214.hwLDHz6m-lkp@intel.com \
--to=lkp@intel.com \
--cc=ebiggers@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox