diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2024-02-05 12:39:30 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-02-22 15:38:55 -0800 |
commit | 022b973a3de9b45148e4ae2da1480ec9e61e74a2 (patch) | |
tree | 1f3873314887aded8e623d4fbe4280227d74138f /lib/dynamic_debug.c | |
parent | fde2497d2bc3a063d8af88b258dbadc86bd7b57c (diff) | |
download | linux-022b973a3de9b45148e4ae2da1480ec9e61e74a2.tar.gz linux-022b973a3de9b45148e4ae2da1480ec9e61e74a2.tar.bz2 linux-022b973a3de9b45148e4ae2da1480ec9e61e74a2.zip |
smp: make __smp_processor_id() 0-argument macro
smp_processor_id family of macros never accepted any arguments.
#define __smp_processor_id(x)
works by accident (see C99 6.10.3 ยง4). __smp_processor_id() gets
1 (empty) argument and passes it down to raw_smp_processor_id()
which doesn't accept arguments.
Link: https://lkml.kernel.org/r/0037d1f2-8153-4b33-b43e-f4b6ecd710ac@p183
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions