All of lore.kernel.org
 help / color / mirror / Atom feed
* [bvanassche:struct-device 20/20] drivers/base/arch_topology.c:214:72: error: 'struct device' has no member named 'id'
@ 2024-05-29  4:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-29  4:38 UTC (permalink / raw)
  To: Bart Van Assche; +Cc: oe-kbuild-all

tree:   https://github.com/bvanassche/linux struct-device
head:   f37061809bb98e131179785e0d1ff3fe5bfbd819
commit: f37061809bb98e131179785e0d1ff3fe5bfbd819 [20/20] driver core: Remove struct device::id
config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20240529/202405291237.7x6ILymf-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240529/202405291237.7x6ILymf-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/202405291237.7x6ILymf-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   drivers/base/arch_topology.c: In function 'cpu_capacity_show':
>> drivers/base/arch_topology.c:214:72: error: 'struct device' has no member named 'id'
     214 |         return sysfs_emit(buf, "%lu\n", topology_get_cpu_scale(cpu->dev.id));
         |                                                                        ^
>> drivers/base/arch_topology.c:215:1: warning: control reaches end of non-void function [-Wreturn-type]
     215 | }
         | ^


vim +214 drivers/base/arch_topology.c

c214f124161d44 Lukasz Luba     2021-11-09  207  
2ef7a2953c81ee Juri Lelli      2017-05-31  208  static ssize_t cpu_capacity_show(struct device *dev,
2ef7a2953c81ee Juri Lelli      2017-05-31  209  				 struct device_attribute *attr,
2ef7a2953c81ee Juri Lelli      2017-05-31  210  				 char *buf)
2ef7a2953c81ee Juri Lelli      2017-05-31  211  {
6f79f7fa3f4de7 Bart Van Assche 2024-05-28  212  	struct cpu *cpu = to_cpu(dev);
2ef7a2953c81ee Juri Lelli      2017-05-31  213  
aa838896d87af5 Joe Perches     2020-09-16 @214  	return sysfs_emit(buf, "%lu\n", topology_get_cpu_scale(cpu->dev.id));
2ef7a2953c81ee Juri Lelli      2017-05-31 @215  }
2ef7a2953c81ee Juri Lelli      2017-05-31  216  

:::::: The code at line 214 was first introduced by commit
:::::: aa838896d87af561a33ecefea1caa4c15a68bc47 drivers core: Use sysfs_emit and sysfs_emit_at for show(device *...) functions

:::::: TO: Joe Perches <joe@perches.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

-- 
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:[~2024-05-29  4:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-29  4:38 [bvanassche:struct-device 20/20] drivers/base/arch_topology.c:214:72: error: 'struct device' has no member named 'id' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.