[driver-core:debugfs_cleanup 6/7] drivers/platform/x86/amd/hsmp.c:696:36: error: no member named 'dev' in 'struct hsmp_plat_device'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup
head:   766db77dfd694e14cfdc4728e9c2f6d747dfdf84
commit: 3baa931df8381661c94796a782d473e44391c0dc [6/7] platform/x86/amd/hsmp: switch to use device_add_groups()
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240326/202403262003.n5XJu6mg-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240326/202403262003.n5XJu6mg-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/202403262003.n5XJu6mg-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/platform/x86/amd/hsmp.c:696:36: error: no member named 'dev' in 'struct hsmp_plat_device'
     696 |         return device_add_groups(plat_dev.dev, hsmp_attr_grps);
         |                                  ~~~~~~~~ ^
   1 error generated.


vim +696 drivers/platform/x86/amd/hsmp.c

   668	
   669	static int hsmp_create_non_acpi_sysfs_if(struct device *dev)
   670	{
   671		const struct attribute_group **hsmp_attr_grps;
   672		struct attribute_group *attr_grp;
   673		u16 i;
   674	
   675		hsmp_attr_grps = devm_kcalloc(dev, plat_dev.num_sockets + 1,
   676					      sizeof(*hsmp_attr_grps),
   677					      GFP_KERNEL);
   678		if (!hsmp_attr_grps)
   679			return -ENOMEM;
   680	
   681		/* Create a sysfs directory for each socket */
   682		for (i = 0; i < plat_dev.num_sockets; i++) {
   683			attr_grp = devm_kzalloc(dev, sizeof(struct attribute_group),
   684						GFP_KERNEL);
   685			if (!attr_grp)
   686				return -ENOMEM;
   687	
   688			snprintf(plat_dev.sock[i].name, HSMP_ATTR_GRP_NAME_SIZE, "socket%u", (u8)i);
   689			attr_grp->name			= plat_dev.sock[i].name;
   690			attr_grp->is_bin_visible	= hsmp_is_sock_attr_visible;
   691			hsmp_attr_grps[i]		= attr_grp;
   692	
   693			hsmp_create_attr_list(attr_grp, dev, i);
   694		}
   695	
 > 696		return device_add_groups(plat_dev.dev, hsmp_attr_grps);
   697	}
   698	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux