From: kernel test robot <lkp@intel.com>
To: Bart Van Assche <bvanassche@acm.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [bvanassche:struct-device 20/20] drivers/base/arch_topology.c:214:72: error: 'struct device' has no member named 'id'
Date: Wed, 29 May 2024 12:38:54 +0800 [thread overview]
Message-ID: <202405291237.7x6ILymf-lkp@intel.com> (raw)
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
reply other threads:[~2024-05-29 4:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202405291237.7x6ILymf-lkp@intel.com \
--to=lkp@intel.com \
--cc=bvanassche@acm.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.