All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Andre Przywara <andre.przywara@arm.com>
Cc: <llvm@lists.linux.dev>, <oe-kbuild-all@lists.linux.dev>,
	0day robot <lkp@intel.com>,
	Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>,
	"Ben Horgan" <ben.horgan@arm.com>, Gavin Shan <gshan@redhat.com>
Subject: drivers/resctrl/mpam_internal.h:166:7: warning: ignoring return value of function declared with 'warn_unused_result' attribute
Date: Tue, 6 Oct 2026 20:04:25 +0800	[thread overview]
Message-ID: <asTjyaQL1T8ffomz@rli9-mobl> (raw)

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


             reply	other threads:[~2026-10-06 12:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-06 12:04 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-10-04 23:16 drivers/resctrl/mpam_internal.h:166:7: warning: ignoring return value of function declared with 'warn_unused_result' attribute kernel test robot

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=asTjyaQL1T8ffomz@rli9-mobl \
    --to=lkp@intel.com \
    --cc=andre.przywara@arm.com \
    --cc=ben.horgan@arm.com \
    --cc=gshan@redhat.com \
    --cc=jonathan.cameron@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 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.