From: kernel test robot <lkp@intel.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
devel@driverdev.osuosl.org
Subject: [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
Date: Sun, 2 Feb 2025 03:33:05 +0800 [thread overview]
Message-ID: <202502020308.ZrRc2WdO-lkp@intel.com> (raw)
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
reply other threads:[~2025-02-01 19:33 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=202502020308.ZrRc2WdO-lkp@intel.com \
--to=lkp@intel.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.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