[thomas-weissschuh:b4/hrtimer-lock 2/4] kernel/time/hrtimer.c:320:24: error: passing 'raw_spinlock_t' (aka 'struct raw_spinlock') to parameter of incompatible type 'raw_spinlock_t *' (aka 'struct raw_spinlock *'); take the address with &

kernel test robot <[email protected]> Tue, 28 Jul 2026 23:08:26 +0800
Newsgroups dev.linux.lists.llvm,dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/hrtimer-lock
head:   830403610079844461b6f172c28d34c16082bfd6
commit: c63eaa23a081dc19e1880b3b26bd521b6d083bd4 [2/4] ret
config: hexagon-randconfig-001-20260728 (https://download.01.org/0day-ci/archive/20260728/[email protected]/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 890b11e09e45e9d8b29f2f94f22052be3934e757)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260728/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> kernel/time/hrtimer.c:320:24: error: passing 'raw_spinlock_t' (aka 'struct raw_spinlock') to parameter of incompatible type 'raw_spinlock_t *' (aka 'struct raw_spinlock *'); take the address with &
     320 |         raw_spin_lock_irqsave(timer->base->cpu_base->lock, *flags);
         |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                               &
   include/linux/spinlock.h:245:34: note: expanded from macro 'raw_spin_lock_irqsave'
     245 |                 flags = _raw_spin_lock_irqsave(lock);   \
         |                                                ^~~~
   include/linux/spinlock_api_smp.h:32:65: note: passing argument to parameter 'lock' here
      32 | unsigned long __lockfunc _raw_spin_lock_irqsave(raw_spinlock_t *lock)
         |                                                                 ^
   1 error generated.


vim +320 kernel/time/hrtimer.c

   316	
   317	static inline void lock_hrtimer_base(const struct hrtimer *timer, unsigned long *flags)
   318		__acquires(&timer->base->cpu_base->lock)
   319	{
 > 320		raw_spin_lock_irqsave(timer->base->cpu_base->lock, *flags);
   321	}
   322	

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