Re: [PATCH v4 4/6] platform/x86/intel/vsec: Switch exported helpers from pci_dev to device

From: Rodrigo Vivi

Date: Mon Jan 26 2026 - 13:11:57 EST


On Mon, Jan 26, 2026 at 01:35:49AM +0800, kernel test robot wrote:
> Hi David,
>
> kernel test robot noticed the following build errors:
>
> [auto build test ERROR on 0f61b1860cc3f52aef9036d7235ed1f017632193]
>
> url: https://github.com/intel-lab-lkp/linux/commits/David-E-Box/platform-x86-intel-vsec-Refactor-base_addr-handling/20260123-105437
> base: 0f61b1860cc3f52aef9036d7235ed1f017632193
> patch link: https://lore.kernel.org/r/20260123025108.3772255-5-david.e.box%40linux.intel.com
> patch subject: [PATCH v4 4/6] platform/x86/intel/vsec: Switch exported helpers from pci_dev to device
> config: x86_64-randconfig-074-20251025 (https://download.01.org/0day-ci/archive/20260126/202601260115.T3rBZhUE-lkp@xxxxxxxxx/config)
> compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260126/202601260115.T3rBZhUE-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/202601260115.T3rBZhUE-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>):
>
> In file included from <command-line>:
> >> drivers/gpu/drm/xe/xe_vsec.h:13:30: error: 'struct device' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
> 13 | int xe_pmt_telem_read(struct device *dev, u32 guid, u64 *data, loff_t user_offset, u32 count);
> | ^~~~~~
> cc1: all warnings being treated as errors
>
>
> vim +13 drivers/gpu/drm/xe/xe_vsec.h
>
> 11
> 12 void xe_vsec_init(struct xe_device *xe);
> > 13 int xe_pmt_telem_read(struct device *dev, u32 guid, u64 *data, loff_t user_offset, u32 count);
> 14

David, you probably need a
struct device; in the beginning of this header to shut off this build issue.

Thanks,
Rodrigo.

>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki