[PATCH v6 9/9] PCI: Add a new 'boot_display' attribute
kernel test robot
lkp at intel.com
Sat Jun 28 14:39:55 UTC 2025
Hi Mario,
kernel test robot noticed the following build warnings:
[auto build test WARNING on pci/next]
[also build test WARNING on pci/for-linus tiwai-sound/for-next tiwai-sound/for-linus tip/x86/core linus/master v6.16-rc3 next-20250627]
[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/Mario-Limonciello/PCI-Add-helper-for-checking-if-a-PCI-device-is-a-display-controller/20250627-123349
base: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next
patch link: https://lore.kernel.org/r/20250627043108.3141206-10-superm1%40kernel.org
patch subject: [PATCH v6 9/9] PCI: Add a new 'boot_display' attribute
config: powerpc-bluestone_defconfig (https://download.01.org/0day-ci/archive/20250628/202506282240.aqA0j5M3-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project e04c938cc08a90ae60440ce22d072ebc69d67ee8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250628/202506282240.aqA0j5M3-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506282240.aqA0j5M3-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/pci/pci-sysfs.c:688:8: warning: unused variable 'dev_attr_boot_display' [-Wunused-variable]
688 | static DEVICE_ATTR_RO(boot_display);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/device.h:199:26: note: expanded from macro 'DEVICE_ATTR_RO'
199 | struct device_attribute dev_attr_##_name = __ATTR_RO(_name)
| ^~~~~~~~~~~~~~~~
<scratch space>:54:1: note: expanded from here
54 | dev_attr_boot_display
| ^~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +/dev_attr_boot_display +688 drivers/pci/pci-sysfs.c
682
683 static ssize_t boot_display_show(struct device *dev, struct device_attribute *attr,
684 char *buf)
685 {
686 return sysfs_emit(buf, "1\n");
687 }
> 688 static DEVICE_ATTR_RO(boot_display);
689
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the dri-devel
mailing list