All of lore.kernel.org
 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-04 23:16 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-10-04 23:16 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "bisect to a FBC not belonging to original linux-review patches: branch: linux-review/Andre-Przywara/arm_mpam-let-low-level-MSC-accessors-return-an-error/20261001-173426, commit: a7acc3c42586b611e6886e6c157acae728ed4374"
:::::: 

BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
TO: Andre Przywara <andre.przywara@arm.com>
CC: 0day robot <lkp@intel.com>
CC: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
CC: Ben Horgan <ben.horgan@arm.com>
CC: Gavin Shan <gshan@redhat.com>

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
date:   3 days ago
:::::: branch date: 3 days ago
:::::: commit date: 3 days ago
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] 2+ messages in thread

* 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; 2+ messages 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] 2+ messages in thread

end of thread, other threads:[~2026-10-06 12:04 UTC | newest]

Thread overview: 2+ messages (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
  -- strict thread matches above, loose matches on Subject: below --
2026-10-04 23:16 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.