mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [tip:locking/futex 4/5] robust_list.c:522:24: warning: storing the address of local variable 'a' in 'head.list.next'
@ 2025-12-04 10:47 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-04 10:47 UTC (permalink / raw)
  To: André Almeida; +Cc: oe-kbuild-all, linux-kernel, x86, Thomas Gleixner

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/futex
head:   c42ba5a87bdccbca11403b7ca8bad1a57b833732
commit: cd91b502f1b4bb81e82fbae38678c698ee5ac026 [4/5] selftests/futex: Create test for robust list
config: x86_64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20251204/202512041141.cPM7Ow4I-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251204/202512041141.cPM7Ow4I-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/202512041141.cPM7Ow4I-lkp@intel.com/

All warnings (new ones prefixed by >>):

   robust_list.c: In function 'child_circular_list':
>> robust_list.c:522:24: warning: storing the address of local variable 'a' in 'head.list.next' [-Wdangling-pointer=]
     522 |         head.list.next = &a.list;
         |         ~~~~~~~~~~~~~~~^~~~~~~~~
   robust_list.c:513:28: note: 'a' declared here
     513 |         struct lock_struct a, b, c;
         |                            ^
   robust_list.c:512:40: note: 'head' declared here
     512 |         static struct robust_list_head head;
         |                                        ^~~~

-- 
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:[~2025-12-04 10:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-04 10:47 [tip:locking/futex 4/5] robust_list.c:522:24: warning: storing the address of local variable 'a' in 'head.list.next' 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

all inboxes | Powered by JetHome®