[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202511152240.uaKhTU6M-lkp@intel.com>
Date: Sat, 15 Nov 2025 22:59:18 +0800
From: kernel test robot <lkp@...el.com>
To: Tzung-Bi Shih <tzungbi@...nel.org>, Kees Cook <kees@...nel.org>
Cc: oe-kbuild-all@...ts.linux.dev, Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org, tzungbi@...nel.org
Subject: Re: [PATCH] lkdtm: Add lockdep related crash tests
Hi Tzung-Bi,
kernel test robot noticed the following build warnings:
[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on char-misc/char-misc-next char-misc/char-misc-linus kees/for-next/pstore kees/for-next/kspp soc/for-next linus/master v6.18-rc5 next-20251114]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Tzung-Bi-Shih/lkdtm-Add-lockdep-related-crash-tests/20251114-142702
base: char-misc/char-misc-testing
patch link: https://lore.kernel.org/r/20251114062535.1827309-1-tzungbi%40kernel.org
patch subject: [PATCH] lkdtm: Add lockdep related crash tests
config: parisc-defconfig (https://download.01.org/0day-ci/archive/20251115/202511152240.uaKhTU6M-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251115/202511152240.uaKhTU6M-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/202511152240.uaKhTU6M-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/misc/lkdtm/lockdep.c: In function 'lkdtm_LOCKDEP_CIRCULAR_LOCK':
>> drivers/misc/lkdtm/lockdep.c:21:48: warning: suggest braces around empty body in an 'else' statement [-Wempty-body]
21 | scoped_guard(spinlock, &lock_B);
| ^
drivers/misc/lkdtm/lockdep.c:23:48: warning: suggest braces around empty body in an 'else' statement [-Wempty-body]
23 | scoped_guard(spinlock, &lock_A);
| ^
drivers/misc/lkdtm/lockdep.c: In function 'lkdtm_LOCKDEP_INCONSISTENT_LOCK':
drivers/misc/lkdtm/lockdep.c:37:40: warning: suggest braces around empty body in an 'else' statement [-Wempty-body]
37 | scoped_guard(spinlock, &lock_A);
| ^
drivers/misc/lkdtm/lockdep.c:40:40: warning: suggest braces around empty body in an 'else' statement [-Wempty-body]
40 | scoped_guard(spinlock, &lock_A);
| ^
vim +/else +21 drivers/misc/lkdtm/lockdep.c
16
17 /* For "WARNING: possible circular locking dependency detected". */
18 static void lkdtm_LOCKDEP_CIRCULAR_LOCK(void)
19 {
20 scoped_guard(spinlock, &lock_A)
> 21 scoped_guard(spinlock, &lock_B);
22 scoped_guard(spinlock, &lock_B)
23 scoped_guard(spinlock, &lock_A);
24 }
25
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists