]> git.ipfire.org Git - thirdparty/linux.git/commit
compiler.h: simplify data_race() macro
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 24 Jun 2024 15:39:49 +0000 (18:39 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 29 Jun 2024 02:36:30 +0000 (19:36 -0700)
commit7c812814e8c34a41bff6fe49987760ffaf8702af
tree1c881eec056c5724a3443b8dae655011397d9d1c
parent961a2851324561caed579764ffbee3db82b32829
compiler.h: simplify data_race() macro

-Wdeclaration-after-statement used since forever required statement
expressions to inject __kcsan_disable_current(), __kcsan_enable_current()
to mark data race. Now that it is gone, make macro expansion simpler.

__unqual_scalar_typeof() is wordy macro by itself.
"expr" is expanded twice.

Link: https://lkml.kernel.org/r/fb62163f-ba21-4661-be5b-bb5124abc87d@p183
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: Marco Elver <elver@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/compiler.h