From: kernel test robot <lkp@intel.com>
To: Jack Allister <jalliste@amazon.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
David Woodhouse <dwmw@amazon.co.uk>, Paul Durrant <paul@xen.org>
Subject: [dwmw2:kvmclock5 3/33] include/uapi/linux/types.h:10:2: warning: "Attempt to use kernel headers from user space, see https://kernelnewbies.org/KernelHeaders"
Date: Sat, 06 Jun 2026 10:02:52 +0800 [thread overview]
Message-ID: <202606060902.1Qe53P3P-lkp@intel.com> (raw)
tree: git://git.infradead.org/users/dwmw2/linux kvmclock5
head: 716ce60a27514a682ba3db1e6df30ff7f28a019b
commit: e4fcb42667379f20341feafcbff11e57f46ff203 [3/33] UAPI: x86: Move pvclock-abi to UAPI for x86 platforms
config: x86_64-buildonly-randconfig-002-20260606 (https://download.01.org/0day-ci/archive/20260606/202606060902.1Qe53P3P-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260606/202606060902.1Qe53P3P-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/202606060902.1Qe53P3P-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from <built-in>:1:
In file included from include/xen/interface/xen.h:13:
In file included from arch/x86/include/asm/xen/interface.h:197:
In file included from arch/x86/include/uapi/asm/pvclock-abi.h:5:
In file included from include/linux/types.h:5:
>> include/uapi/linux/types.h:10:2: warning: "Attempt to use kernel headers from user space, see https://kernelnewbies.org/KernelHeaders" [-W#warnings]
10 | #warning "Attempt to use kernel headers from user space, see https://kernelnewbies.org/KernelHeaders"
| ^
1 warning generated.
In file included from <built-in>:1:
In file included from include/xen/interface/xenpmu.h:5:
In file included from include/xen/interface/xen.h:13:
In file included from arch/x86/include/asm/xen/interface.h:197:
In file included from arch/x86/include/uapi/asm/pvclock-abi.h:5:
In file included from include/linux/types.h:5:
>> include/uapi/linux/types.h:10:2: warning: "Attempt to use kernel headers from user space, see https://kernelnewbies.org/KernelHeaders" [-W#warnings]
10 | #warning "Attempt to use kernel headers from user space, see https://kernelnewbies.org/KernelHeaders"
| ^
1 warning generated.
vim +10 include/uapi/linux/types.h
607ca46e97a1b6 David Howells 2012-10-13 6
607ca46e97a1b6 David Howells 2012-10-13 7 #ifndef __ASSEMBLY__
607ca46e97a1b6 David Howells 2012-10-13 8 #ifndef __KERNEL__
607ca46e97a1b6 David Howells 2012-10-13 9 #ifndef __EXPORTED_HEADERS__
7f317d34906c10 Alexander A. Klimov 2020-08-11 @10 #warning "Attempt to use kernel headers from user space, see https://kernelnewbies.org/KernelHeaders"
607ca46e97a1b6 David Howells 2012-10-13 11 #endif /* __EXPORTED_HEADERS__ */
607ca46e97a1b6 David Howells 2012-10-13 12 #endif
607ca46e97a1b6 David Howells 2012-10-13 13
:::::: The code at line 10 was first introduced by commit
:::::: 7f317d34906c1033f0752fc137dda04e43979bb8 include/: replace HTTP links with HTTPS ones
:::::: TO: Alexander A. Klimov <grandmaster@al2klimov.de>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-06-06 2:03 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=202606060902.1Qe53P3P-lkp@intel.com \
--to=lkp@intel.com \
--cc=dwmw@amazon.co.uk \
--cc=jalliste@amazon.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=paul@xen.org \
/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