The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c:1608:62: error: 'struct vfio_device' has no member named 'debug_root'
@ 2026-02-07  9:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-07  9:39 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: oe-kbuild-all, linux-kernel, Carlos Maiolino, Darrick J. Wong

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   2687c848e57820651b9f69d30c4710f4219f7dbf
commit: f5caeb3689ea2d8a8c0790d9eea68b63e8f15496 xfs: XFS_ONLINE_SCRUB_STATS should depend on DEBUG_FS
date:   4 months ago
config: arm64-randconfig-r063-20260207 (https://download.01.org/0day-ci/archive/20260207/202602071722.ONa34Ix3-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260207/202602071722.ONa34Ix3-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/202602071722.ONa34Ix3-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c: In function 'hisi_acc_vfio_debug_init':
>> drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c:1608:62: error: 'struct vfio_device' has no member named 'debug_root'
    1608 |         vfio_dev_migration = debugfs_lookup("migration", vdev->debug_root);
         |                                                              ^~


vim +1608 drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c

ee3a5b2359e0e5b Shameer Kolothum 2022-03-08  1592  
b398f91779b86e5 Longfang Liu     2024-11-12  1593  static void hisi_acc_vfio_debug_init(struct hisi_acc_vf_core_device *hisi_acc_vdev)
b398f91779b86e5 Longfang Liu     2024-11-12  1594  {
b398f91779b86e5 Longfang Liu     2024-11-12  1595  	struct vfio_device *vdev = &hisi_acc_vdev->core_device.vdev;
b398f91779b86e5 Longfang Liu     2024-11-12  1596  	struct hisi_acc_vf_migration_file *migf;
b398f91779b86e5 Longfang Liu     2024-11-12  1597  	struct dentry *vfio_dev_migration;
b398f91779b86e5 Longfang Liu     2024-11-12  1598  	struct dentry *vfio_hisi_acc;
b398f91779b86e5 Longfang Liu     2024-11-12  1599  	struct device *dev = vdev->dev;
b398f91779b86e5 Longfang Liu     2024-11-12  1600  
b398f91779b86e5 Longfang Liu     2024-11-12  1601  	if (!debugfs_initialized() ||
b398f91779b86e5 Longfang Liu     2024-11-12  1602  	    !IS_ENABLED(CONFIG_VFIO_DEBUGFS))
b398f91779b86e5 Longfang Liu     2024-11-12  1603  		return;
b398f91779b86e5 Longfang Liu     2024-11-12  1604  
b398f91779b86e5 Longfang Liu     2024-11-12  1605  	if (vdev->ops != &hisi_acc_vfio_pci_migrn_ops)
b398f91779b86e5 Longfang Liu     2024-11-12  1606  		return;
b398f91779b86e5 Longfang Liu     2024-11-12  1607  
b398f91779b86e5 Longfang Liu     2024-11-12 @1608  	vfio_dev_migration = debugfs_lookup("migration", vdev->debug_root);
b398f91779b86e5 Longfang Liu     2024-11-12  1609  	if (!vfio_dev_migration) {
b398f91779b86e5 Longfang Liu     2024-11-12  1610  		dev_err(dev, "failed to lookup migration debugfs file!\n");
b398f91779b86e5 Longfang Liu     2024-11-12  1611  		return;
b398f91779b86e5 Longfang Liu     2024-11-12  1612  	}
b398f91779b86e5 Longfang Liu     2024-11-12  1613  
b398f91779b86e5 Longfang Liu     2024-11-12  1614  	migf = kzalloc(sizeof(*migf), GFP_KERNEL);
eaba58355ecd124 Miaoqian Lin     2025-09-01  1615  	if (!migf) {
eaba58355ecd124 Miaoqian Lin     2025-09-01  1616  		dput(vfio_dev_migration);
b398f91779b86e5 Longfang Liu     2024-11-12  1617  		return;
eaba58355ecd124 Miaoqian Lin     2025-09-01  1618  	}
b398f91779b86e5 Longfang Liu     2024-11-12  1619  	hisi_acc_vdev->debug_migf = migf;
b398f91779b86e5 Longfang Liu     2024-11-12  1620  
b398f91779b86e5 Longfang Liu     2024-11-12  1621  	vfio_hisi_acc = debugfs_create_dir("hisi_acc", vfio_dev_migration);
b398f91779b86e5 Longfang Liu     2024-11-12  1622  	debugfs_create_devm_seqfile(dev, "dev_data", vfio_hisi_acc,
b398f91779b86e5 Longfang Liu     2024-11-12  1623  				    hisi_acc_vf_dev_read);
b398f91779b86e5 Longfang Liu     2024-11-12  1624  	debugfs_create_devm_seqfile(dev, "migf_data", vfio_hisi_acc,
b398f91779b86e5 Longfang Liu     2024-11-12  1625  				    hisi_acc_vf_migf_read);
b398f91779b86e5 Longfang Liu     2024-11-12  1626  	debugfs_create_devm_seqfile(dev, "cmd_state", vfio_hisi_acc,
b398f91779b86e5 Longfang Liu     2024-11-12  1627  				    hisi_acc_vf_debug_cmd);
eaba58355ecd124 Miaoqian Lin     2025-09-01  1628  
eaba58355ecd124 Miaoqian Lin     2025-09-01  1629  	dput(vfio_dev_migration);
b398f91779b86e5 Longfang Liu     2024-11-12  1630  }
b398f91779b86e5 Longfang Liu     2024-11-12  1631  

:::::: The code at line 1608 was first introduced by commit
:::::: b398f91779b86e5f285d9f0df5d2e753ddcdac3f hisi_acc_vfio_pci: register debugfs for hisilicon migration driver

:::::: TO: Longfang Liu <liulongfang@huawei.com>
:::::: CC: Alex Williamson <alex.williamson@redhat.com>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-02-07  9:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-07  9:39 drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c:1608:62: error: 'struct vfio_device' has no member named 'debug_root' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox