diff options
author | Heiko Carstens <[email protected]> | 2023-03-09 20:12:28 +0100 |
---|---|---|
committer | Vasily Gorbik <[email protected]> | 2023-03-13 09:16:43 +0100 |
commit | 029a4f4b9555ddb47f38f9589fd6d43277efb9c6 (patch) | |
tree | 06c16b27d190c4a87ca5147bdd679b6b1a69d1ff | |
parent | fb77914a692d550a5bb0c7f71eac40e6da9c0e6d (diff) |
s390/setup: always inline gen_lpswe()
gen_lpswe() contains a BUILD_BUG_ON() statement which depends on a function
parameter. If the compiler decides to generate a not inlined function this
will lead to a build error, even if all call sites pass a valid parameter.
To avoid this always inline gen_lpswe().
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
-rw-r--r-- | arch/s390/include/asm/setup.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/include/asm/setup.h b/arch/s390/include/asm/setup.h index 3a1f8825bc7d..5271bb278cfa 100644 --- a/arch/s390/include/asm/setup.h +++ b/arch/s390/include/asm/setup.h @@ -164,7 +164,7 @@ struct oldmem_data { }; extern struct oldmem_data oldmem_data; -static inline u32 gen_lpswe(unsigned long addr) +static __always_inline u32 gen_lpswe(unsigned long addr) { BUILD_BUG_ON(addr > 0xfff); return 0xb2b20000 | addr; |