Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* drivers/resctrl/mpam_internal.h:166:7: warning: ignoring return value of function declared with 'warn_unused_result' attribute
@ 2026-10-06 12:04 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-06 12:04 UTC (permalink / raw)
  To: Andre Przywara
  Cc: llvm, oe-kbuild-all, 0day robot, Jonathan Cameron, Ben Horgan,
	Gavin Shan

tree:   https://github.com/intel-lab-lkp/linux/commits/Andre-Przywara/arm_mpam-let-low-level-MSC-accessors-return-an-error/20261001-173426
head:   17dd5fecde831cbffa974ca04c37ea7370652673
commit: a7acc3c42586b611e6886e6c157acae728ed4374 arm_mpam: propagate MSC access errors for hw_probe functions
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20261005/202610050742.agvnBvHF-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 5f609f950d2e80addf5566623013db68394334db)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261005/202610050742.agvnBvHF-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/r/202610050742.agvnBvHF-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/resctrl/mpam_devices.c:30:
>> drivers/resctrl/mpam_internal.h:166:7: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
     166 |              mpam_mon_sel_lock(_T), mpam_mon_sel_unlock(_T));
         |              ^~~~~~~~~~~~~~~~~~~~~
   include/linux/cleanup.h:401:41: note: expanded from macro 'DEFINE_GUARD'
     401 |         DEFINE_CLASS(_name, _type, _unlock, ({ _lock; _T; }), _type _T); \
         |                                                ^~~~~
   include/linux/cleanup.h:287:13: note: expanded from macro 'DEFINE_CLASS'
     287 | { _type t = _init; return t; }
         |             ^~~~~
   1 warning generated.


vim +/warn_unused_result +166 drivers/resctrl/mpam_internal.h

d02beb06ca2a62 James Morse    2025-11-19  164  
a7acc3c42586b6 Andre Przywara 2026-10-01  165  DEFINE_GUARD(mon_sel, struct mpam_msc *,
a7acc3c42586b6 Andre Przywara 2026-10-01 @166  	     mpam_mon_sel_lock(_T), mpam_mon_sel_unlock(_T));
a7acc3c42586b6 Andre Przywara 2026-10-01  167  DEFINE_GUARD_COND(mon_sel, _lock, mpam_mon_sel_lock(_T), _RET);
a7acc3c42586b6 Andre Przywara 2026-10-01  168  

--
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-06 12:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-06 12:04 drivers/resctrl/mpam_internal.h:166:7: warning: ignoring return value of function declared with 'warn_unused_result' attribute kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox