]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/vdso: Remove #ifdeffery around page setup variants
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Tue, 10 Sep 2024 10:11:35 +0000 (12:11 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 22 Apr 2025 12:24:07 +0000 (14:24 +0200)
commit2ce8043b1d34756509430675696aafcd6db601c7
tree1a5ed9b54c202d6bede6d3f28c2f0836f36dfccf
parenta33b5a08cbbdd7aadff95f40cbb45ab86841679e
x86/vdso: Remove #ifdeffery around page setup variants

Replace the open-coded ifdefs in C sources files with IS_ENABLED().
This makes the code easier to read and enables the compiler to typecheck
also the disabled parts, before optimizing them away.
To make this work, also remove the ifdefs from declarations of used
variables.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Kees Cook <kees@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@surriel.com>
Link: https://lore.kernel.org/r/20240910-x86-vdso-ifdef-v1-1-877c9df9b081@linutronix.de
arch/x86/entry/vdso/vma.c
arch/x86/include/asm/elf.h
arch/x86/include/asm/vdso.h