[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202512041141.cPM7Ow4I-lkp@intel.com>
Date: Thu, 4 Dec 2025 11:47:11 +0100
From: kernel test robot <lkp@...el.com>
To: André Almeida <andrealmeid@...lia.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
x86@...nel.org, Thomas Gleixner <tglx@...utronix.de>
Subject: [tip:locking/futex 4/5] robust_list.c:522:24: warning: storing the
address of local variable 'a' in 'head.list.next'
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@...el.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
Powered by blists - more mailing lists