[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <b12bdef9-d5c0-49cf-aea2-ff7b56220fdc@p183>
Date: Sat, 14 Oct 2023 19:14:15 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org
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@...il.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
Powered by blists - more mailing lists