next: arm: kernel/watchdog.c:521:36: error: too many arguments to function call, expected 0, have 1

From: Naresh Kamboju
Date: Mon Aug 07 2023 - 04:42:28 EST


[ resending in plain text mode. sorry ]

While building arm mxs_defconfig with gcc-12 and clang-16 on
Linux next-20230807 tag the following build regression was found.

Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>

Build log:
--------
kernel/watchdog.c:521:36: error: too many arguments to function call,
expected 0, have 1
trigger_allbutcpu_cpu_backtrace(smp_processor_id());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~
include/linux/smp.h:271:29: note: expanded from macro 'smp_processor_id'
# define smp_processor_id() __smp_processor_id()
^~~~~~~~~~~~~~~~~~~~
include/linux/smp.h:264:31: note: expanded from macro '__smp_processor_id'
#define __smp_processor_id(x) raw_smp_processor_id(x)
^~~~~~~~~~~~~~~~~~~~~~~
include/linux/smp.h:198:34: note: expanded from macro 'raw_smp_processor_id'
#define raw_smp_processor_id() 0
^
include/linux/nmi.h:193:20: note: 'trigger_allbutcpu_cpu_backtrace'
declared here
static inline bool trigger_allbutcpu_cpu_backtrace(void)
^
1 error generated.
make[4]: *** [scripts/Makefile.build:243: kernel/watchdog.o] Error 1



Links:
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230807/testrun/18858575/suite/build/test/clang-16-mxs_defconfig/log
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230807/testrun/18858575/suite/build/test/clang-16-mxs_defconfig/history/

--
Linaro LKFT
https://lkft.linaro.org