* [bcain:hexagon 53/82] arch/hexagon/kernel/h2info.c:281:2: warning: ignoring return value of function declared with 'warn_unused_result' attribute
@ 2026-10-24 9:23 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-24 9:23 UTC (permalink / raw)
To: Brian Cain; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/bcain/linux.git hexagon
head: 35ab1dadb94646b74469738c1741f68e8c6aac3d
commit: 049331d04179d182e9c08c3d8c23e0badbac5bad [53/82] hexagon: export what the hypervisor tells the guest, for debugging
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20261024/202610241720.OPD2Ymuj-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 6719b9e31d6a93099612c474eec76d9f41d0275a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261024/202610241720.OPD2Ymuj-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/202610241720.OPD2Ymuj-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/hexagon/kernel/h2info.c:281:2: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
281 | sysfs_create_group(kobj, &top_group);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +/warn_unused_result +281 arch/hexagon/kernel/h2info.c
267
268 static int __init h2info_init(void)
269 {
270 const char *pmu_names[ARRAY_SIZE(pmu_regs)];
271 const char *cpu_names[NR_CPUS];
272 static char cpu_name_buf[NR_CPUS][8];
273 struct kobject *kobj;
274 struct dentry *dir;
275 int i;
276
277 kobj = kobject_create_and_add("hexagon", kernel_kobj);
278 if (!kobj)
279 return -ENOMEM;
280
> 281 sysfs_create_group(kobj, &top_group);
--
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-10-24 9:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-24 9:23 [bcain:hexagon 53/82] arch/hexagon/kernel/h2info.c:281:2: warning: ignoring return value of function declared with 'warn_unused_result' attribute 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.