diff options
| author | Leonardo Bras <[email protected]> | 2024-01-09 03:46:50 +0000 |
|---|---|---|
| committer | Catalin Marinas <[email protected]> | 2024-02-28 18:01:23 +0000 |
| commit | 1984c805461f7fc4e96855eb4d94043ffb8f873d (patch) | |
| tree | cbd52aea4eaec2ad15000872c88a6f054944ad1d /scripts/generate_rust_target.rs | |
| parent | arm64: ftrace: Don't forbid CALL_OPS+CC_OPTIMIZE_FOR_SIZE with Clang (diff) | |
| download | kernel-1984c805461f7fc4e96855eb4d94043ffb8f873d.tar.gz kernel-1984c805461f7fc4e96855eb4d94043ffb8f873d.zip | |
arm64: remove unnecessary ifdefs around is_compat_task()
Currently some parts of the codebase will test for CONFIG_COMPAT before
testing is_compat_task().
is_compat_task() is a inlined function only present on CONFIG_COMPAT.
On the other hand, for !CONFIG_COMPAT, we have in linux/compat.h:
#define is_compat_task() (0)
Since we have this define available in every usage of is_compat_task() for
!CONFIG_COMPAT, it's unnecessary to keep the ifdefs, since the compiler is
smart enough to optimize-out those snippets on CONFIG_COMPAT=n
This requires some regset code as well as a few other defines to be made
available on !CONFIG_COMPAT, so some symbols can get resolved before
getting optimized-out.
Signed-off-by: Leonardo Bras <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
