sound/soc/codecs/tas2783-sdw.c:1171:34: error: 'pci_bus_type' undeclared; did you mean 'ac97_bus_type'?
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 46fe65a2c28ecf5df1a7475aba1f08ccf4c0ac1b commit: 2bc4b4f77cb70df3ef05b80d0cb19edba17f04a6 [1612/6849] ASoc: tas2783A: fw name based on system details config: i386-buildonly-randconfig-003-20260119 (https://download.01.org/0day-ci/archive/20260119/[email protected]/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/20260119/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
sound/soc/codecs/tas2783-sdw.c: In function 'tas_get_pci_dev':
>> sound/soc/codecs/tas2783-sdw.c:1171:34: error: 'pci_bus_type' undeclared (first use in this function); did you mean 'ac97_bus_type'?
1171 | if (dev->bus == &pci_bus_type)
| ^~~~~~~~~~~~
| ac97_bus_type sound/soc/codecs/tas2783-sdw.c:1171:34: note: each undeclared identifier is reported only once for each function it appears in
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for CAN_DEV Depends on [n]: NETDEVICES [=n] && CAN [=y] Selected by [y]:
- CAN [=y] && NET [=y]
vim +1171 sound/soc/codecs/tas2783-sdw.c
1165
1166 static struct pci_dev *tas_get_pci_dev(struct sdw_slave *peripheral)
1167 {
1168 struct device *dev = &peripheral->dev;
1169
1170 for (; dev; dev = dev->parent)
> 1171 if (dev->bus == &pci_bus_type)
1172 return to_pci_dev(dev);
1173
1174 return NULL;
1175 }
1176
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki