Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Brian Cain <brian.cain@oss.qualcomm.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [bcain:hexagon 53/82] arch/hexagon/kernel/h2info.c:281:2: warning: ignoring return value of function declared with 'warn_unused_result' attribute
Date: Sat, 24 Oct 2026 17:23:49 +0800	[thread overview]
Message-ID: <202610241720.OPD2Ymuj-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-10-24  9:24 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=202610241720.OPD2Ymuj-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=brian.cain@oss.qualcomm.com \
    --cc=llvm@lists.linux.dev \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox