Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [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"
@ 2026-06-06  2:02 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-06  2:02 UTC (permalink / raw)
  To: Jack Allister; +Cc: llvm, oe-kbuild-all, David Woodhouse, Paul Durrant

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-06  2:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-06  2:02 [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" kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox