From: kernel test robot <lkp@intel.com>
To: Dmitry Vyukov <dvyukov@google.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [dvyukov:dvyukov-rseq-pkey 1/3] arch/x86/kernel/process.c:270:2: error: call to undeclared function 'pkru_write_default'; ISO C99 and later do not support implicit function declarations
Date: Sun, 16 Feb 2025 22:08:11 +0800 [thread overview]
Message-ID: <202502162255.fYDLueTx-lkp@intel.com> (raw)
tree: https://github.com/dvyukov/linux dvyukov-rseq-pkey
head: 1063b1cd65e97d1ec20c1e016f8d4414d1c40df8
commit: 963efc053e92eb50c830ad41445a77e8607b5d98 [1/3] pkeys: add API to switch to permissive pkey register
config: i386-buildonly-randconfig-003-20250216 (https://download.01.org/0day-ci/archive/20250216/202502162255.fYDLueTx-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250216/202502162255.fYDLueTx-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/202502162255.fYDLueTx-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/x86/kernel/process.c:270:2: error: call to undeclared function 'pkru_write_default'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
270 | pkru_write_default();
| ^
1 error generated.
--
>> arch/x86/kernel/fpu/core.c:706:2: error: call to undeclared function 'pkru_write_default'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
706 | pkru_write_default();
| ^
1 error generated.
--
>> arch/x86/kernel/cpu/common.c:534:2: error: call to undeclared function 'pkru_write_default'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
534 | pkru_write_default();
| ^
1 error generated.
vim +/pkru_write_default +270 arch/x86/kernel/process.c
2fff071d28b54f Thomas Gleixner 2019-11-11 263
33344368cb08f8 Andy Lutomirski 2021-06-23 264 static void pkru_flush_thread(void)
33344368cb08f8 Andy Lutomirski 2021-06-23 265 {
33344368cb08f8 Andy Lutomirski 2021-06-23 266 /*
33344368cb08f8 Andy Lutomirski 2021-06-23 267 * If PKRU is enabled the default PKRU value has to be loaded into
33344368cb08f8 Andy Lutomirski 2021-06-23 268 * the hardware right here (similar to context switch).
33344368cb08f8 Andy Lutomirski 2021-06-23 269 */
33344368cb08f8 Andy Lutomirski 2021-06-23 @270 pkru_write_default();
33344368cb08f8 Andy Lutomirski 2021-06-23 271 }
33344368cb08f8 Andy Lutomirski 2021-06-23 272
:::::: The code at line 270 was first introduced by commit
:::::: 33344368cb08f8d6bf55a32aa052318d3a69ea84 x86/fpu: Clean up the fpu__clear() variants
:::::: TO: Andy Lutomirski <luto@kernel.org>
:::::: CC: Borislav Petkov <bp@suse.de>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-02-16 14:08 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=202502162255.fYDLueTx-lkp@intel.com \
--to=lkp@intel.com \
--cc=dvyukov@google.com \
--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.