Re: [PATCH] smp: fix __smp_processor_id() backup macro

From: Andrew Morton
Date: Sat Oct 14 2023 - 18:12:41 EST


On Sat, 14 Oct 2023 19:14:15 +0300 Alexey Dobriyan <adobriyan@xxxxxxxxx> wrote:

> 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.
>
> ...
>
> --- 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
>

It's been that way for at least 4 years. Presumably this is never used
and should be removed?