Re: [PATCH v6 1/3] PCI/DOE: Expose the DOE features via sysfs
From: kernel test robot
Date: Mon Aug 21 2023 - 17:07:45 EST
Hi Alistair,
kernel test robot noticed the following build warnings:
[auto build test WARNING on pci/next]
[also build test WARNING on pci/for-linus driver-core/driver-core-testing driver-core/driver-core-next driver-core/driver-core-linus linus/master v6.5-rc7 next-20230821]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Alistair-Francis/sysfs-Add-a-attr_is_visible-function-to-attribute_group/20230818-080110
base: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next
patch link: https://lore.kernel.org/r/20230817235810.596458-1-alistair.francis%40wdc.com
patch subject: [PATCH v6 1/3] PCI/DOE: Expose the DOE features via sysfs
config: i386-randconfig-006-20230821 (https://download.01.org/0day-ci/archive/20230822/202308220442.udC7U63t-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce: (https://download.01.org/0day-ci/archive/20230822/202308220442.udC7U63t-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308220442.udC7U63t-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
>> drivers/pci/doe.c:61: warning: Function parameter or member 'sysfs_attrs' not described in 'pci_doe_mb'
vim +61 drivers/pci/doe.c
a4ff8e7a716013 Li Ming 2022-11-16 36
9d24322e887b6a Jonathan Cameron 2022-07-19 37 /**
9d24322e887b6a Jonathan Cameron 2022-07-19 38 * struct pci_doe_mb - State for a single DOE mailbox
9d24322e887b6a Jonathan Cameron 2022-07-19 39 *
9d24322e887b6a Jonathan Cameron 2022-07-19 40 * This state is used to manage a single DOE mailbox capability. All fields
9d24322e887b6a Jonathan Cameron 2022-07-19 41 * should be considered opaque to the consumers and the structure passed into
022b66f38195f6 Lukas Wunner 2023-03-11 42 * the helpers below after being created by pci_doe_create_mb().
9d24322e887b6a Jonathan Cameron 2022-07-19 43 *
9d24322e887b6a Jonathan Cameron 2022-07-19 44 * @pdev: PCI device this mailbox belongs to
9d24322e887b6a Jonathan Cameron 2022-07-19 45 * @cap_offset: Capability offset
9d24322e887b6a Jonathan Cameron 2022-07-19 46 * @prots: Array of protocols supported (encoded as long values)
9d24322e887b6a Jonathan Cameron 2022-07-19 47 * @wq: Wait queue for work item
9d24322e887b6a Jonathan Cameron 2022-07-19 48 * @work_queue: Queue of pci_doe_work items
9d24322e887b6a Jonathan Cameron 2022-07-19 49 * @flags: Bit array of PCI_DOE_FLAG_* flags
9d24322e887b6a Jonathan Cameron 2022-07-19 50 */
9d24322e887b6a Jonathan Cameron 2022-07-19 51 struct pci_doe_mb {
9d24322e887b6a Jonathan Cameron 2022-07-19 52 struct pci_dev *pdev;
9d24322e887b6a Jonathan Cameron 2022-07-19 53 u16 cap_offset;
9d24322e887b6a Jonathan Cameron 2022-07-19 54 struct xarray prots;
9d24322e887b6a Jonathan Cameron 2022-07-19 55
9d24322e887b6a Jonathan Cameron 2022-07-19 56 wait_queue_head_t wq;
9d24322e887b6a Jonathan Cameron 2022-07-19 57 struct workqueue_struct *work_queue;
9d24322e887b6a Jonathan Cameron 2022-07-19 58 unsigned long flags;
2a8556606e90c6 Alistair Francis 2023-08-17 59
2a8556606e90c6 Alistair Francis 2023-08-17 60 struct device_attribute *sysfs_attrs;
9d24322e887b6a Jonathan Cameron 2022-07-19 @61 };
9d24322e887b6a Jonathan Cameron 2022-07-19 62
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki