* [dtor-input:next 32/43] drivers/input/touchscreen/mxs-lradc-ts.c:508:45: error: too many arguments provided to function-like macro invocation
@ 2026-03-25 12:30 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-25 12:30 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: llvm, oe-kbuild-all, linux-input
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
head: 303cdff39cdb1895a6d2b08e8946cc89feaf405c
commit: a995f3ca3bd51c348bd4c8d1833d318bef1a5001 [32/43] Input: mxs-lradc-ts - use guard notation when acquiring spinlock
config: riscv-randconfig-001-20260325 (https://download.01.org/0day-ci/archive/20260325/202603252030.fwSlmiBx-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260325/202603252030.fwSlmiBx-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/202603252030.fwSlmiBx-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/input/touchscreen/mxs-lradc-ts.c:508:45: error: too many arguments provided to function-like macro invocation
508 | scoped_guard(spinlock_irqsave, &ts->lock, flags) {
| ^
include/linux/spinlock.h:623:9: note: macro 'class_spinlock_irqsave_constructor' defined here
623 | #define class_spinlock_irqsave_constructor(_T) WITH_LOCK_GUARD_1_ATTRS(spinlock_irqsave, _T)
| ^
>> drivers/input/touchscreen/mxs-lradc-ts.c:508:3: error: initializing 'class_spinlock_irqsave_t' with an expression of incompatible type 'class_spinlock_irqsave_t (spinlock_t *)' (aka 'class_spinlock_irqsave_t (struct spinlock *)')
508 | scoped_guard(spinlock_irqsave, &ts->lock, flags) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/cleanup.h:447:2: note: expanded from macro 'scoped_guard'
447 | __scoped_guard(_name, __UNIQUE_ID(label), args)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/cleanup.h:438:20: note: expanded from macro '__scoped_guard'
438 | for (CLASS(_name, scope)(args); \
| ~~~~~~~~~~~~~^~~~~~
include/linux/cleanup.h:299:20: note: expanded from macro 'CLASS'
299 | class_##_name##_t var __cleanup(class_##_name##_destructor) = \
| ^
300 | class_##_name##_constructor
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
vim +508 drivers/input/touchscreen/mxs-lradc-ts.c
491
492 /* IRQ Handling */
493 static irqreturn_t mxs_lradc_ts_handle_irq(int irq, void *data)
494 {
495 struct mxs_lradc_ts *ts = data;
496 struct mxs_lradc *lradc = ts->lradc;
497 unsigned long reg = readl(ts->base + LRADC_CTRL1);
498 u32 clr_irq = mxs_lradc_irq_mask(lradc);
499 const u32 ts_irq_mask =
500 LRADC_CTRL1_TOUCH_DETECT_IRQ |
501 LRADC_CTRL1_LRADC_IRQ(TOUCHSCREEN_VCHANNEL1) |
502 LRADC_CTRL1_LRADC_IRQ(TOUCHSCREEN_VCHANNEL2);
503
504 if (!(reg & mxs_lradc_irq_mask(lradc)))
505 return IRQ_NONE;
506
507 if (reg & ts_irq_mask) {
> 508 scoped_guard(spinlock_irqsave, &ts->lock, flags) {
509 mxs_lradc_handle_touch(ts);
510 }
511 /* Make sure we don't clear the next conversion's interrupt. */
512 clr_irq &= ~(LRADC_CTRL1_LRADC_IRQ(TOUCHSCREEN_VCHANNEL1) |
513 LRADC_CTRL1_LRADC_IRQ(TOUCHSCREEN_VCHANNEL2));
514 writel(reg & clr_irq,
515 ts->base + LRADC_CTRL1 + STMP_OFFSET_REG_CLR);
516 }
517
518 return IRQ_HANDLED;
519 }
520
--
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:[~2026-03-25 12:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-25 12:30 [dtor-input:next 32/43] drivers/input/touchscreen/mxs-lradc-ts.c:508:45: error: too many arguments provided to function-like macro invocation kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.