Messages in this thread Patch in this message | | | Date | Sat, 14 Oct 2023 19:14:15 +0300 | From | Alexey Dobriyan <> | Subject | [PATCH] smp: fix __smp_processor_id() backup macro |
| |
Every __smp_processor_id usage doesn't have arguments and every raw_smp_processor_id usage doesn't have arguments, therefore "#define __smp_processor_id(x)" can not possibly work.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> ---
include/linux/smp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/include/linux/smp.h +++ b/include/linux/smp.h @@ -261,7 +261,7 @@ static inline int get_boot_cpu_id(void) * regular asm read for the stable. */ #ifndef __smp_processor_id -#define __smp_processor_id(x) raw_smp_processor_id(x) +#define __smp_processor_id() raw_smp_processor_id() #endif #ifdef CONFIG_DEBUG_PREEMPT
| |