Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [driver-core:virtual_bus_1 1/1] include/linux/device/virtual.h:6:9: warning: '_VIRTUAL_DEVICE_H' is used as a header guard here, followed by #define of a different macro
@ 2025-02-01 19:33 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-01 19:33 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: llvm, oe-kbuild-all, devel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git virtual_bus_1
head:   ca49dd1ebb4a2a65abbc7d9f250edf9af4b87e11
commit: ca49dd1ebb4a2a65abbc7d9f250edf9af4b87e11 [1/1] driver core: Create a virtural bus for anyone to use
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20250202/202502020308.ZrRc2WdO-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/20250202/202502020308.ZrRc2WdO-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/202502020308.ZrRc2WdO-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/base/virtual.c:6:
>> include/linux/device/virtual.h:6:9: warning: '_VIRTUAL_DEVICE_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
       6 | #ifndef _VIRTUAL_DEVICE_H
         |         ^~~~~~~~~~~~~~~~~
   include/linux/device/virtual.h:7:9: note: '_VIRTUAL_DEVICE_H_' is defined here; did you mean '_VIRTUAL_DEVICE_H'?
       7 | #define _VIRTUAL_DEVICE_H_
         |         ^~~~~~~~~~~~~~~~~~
         |         _VIRTUAL_DEVICE_H
   1 warning generated.
--
>> drivers/base/virtual.c:133: warning: Function parameter or struct member 'virt_dev' not described in 'virtual_device_put'
>> drivers/base/virtual.c:133: warning: Excess function parameter 'virtual' description in 'virtual_device_put'
>> drivers/base/virtual.c:171: warning: Function parameter or struct member 'virt_drv' not described in 'virtual_driver_unregister'
>> drivers/base/virtual.c:171: warning: Excess function parameter 'drv' description in 'virtual_driver_unregister'


vim +/_VIRTUAL_DEVICE_H +6 include/linux/device/virtual.h

   > 6	#ifndef _VIRTUAL_DEVICE_H
     7	#define _VIRTUAL_DEVICE_H_
     8	

-- 
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:[~2025-02-01 19:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-01 19:33 [driver-core:virtual_bus_1 1/1] include/linux/device/virtual.h:6:9: warning: '_VIRTUAL_DEVICE_H' is used as a header guard here, followed by #define of a different macro 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