kernel/time/hrtimer.c:369:18: sparse: sparse: dereference of noderef expression

From: kernel test robot
Date: Mon Apr 07 2025 - 08:04:48 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0af2f6be1b4281385b618cb86ad946eded089ac8
commit: 04257da0c99c9d4ff7c5bb93046482e1f7d34938 hrtimers: Make callback function pointer private
date: 2 days ago
config: i386-randconfig-r123-20250407 (https://download.01.org/0day-ci/archive/20250407/202504071931.vOVl13tt-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250407/202504071931.vOVl13tt-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504071931.vOVl13tt-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> kernel/time/hrtimer.c:369:18: sparse: sparse: dereference of noderef expression

vim +369 kernel/time/hrtimer.c

237fc6e7a35076f kernel/hrtimer.c Thomas Gleixner 2008-04-30 366
997772884036e6e kernel/hrtimer.c Stanislaw Gruszka 2011-03-07 367 static void *hrtimer_debug_hint(void *addr)
997772884036e6e kernel/hrtimer.c Stanislaw Gruszka 2011-03-07 368 {
997772884036e6e kernel/hrtimer.c Stanislaw Gruszka 2011-03-07 @369 return ((struct hrtimer *) addr)->function;
997772884036e6e kernel/hrtimer.c Stanislaw Gruszka 2011-03-07 370 }
997772884036e6e kernel/hrtimer.c Stanislaw Gruszka 2011-03-07 371

:::::: The code at line 369 was first introduced by commit
:::::: 997772884036e6e121de39322179989154437d9f debugobjects: Add hint for better object identification

:::::: TO: Stanislaw Gruszka <sgruszka@xxxxxxxxxx>
:::::: CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki