From: Sven Schnelle Date: Mon, 10 Jun 2024 11:45:24 +0000 (+0200) Subject: s390: Add get_lowcore() function X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7e8f89e5e05983089be1d431f1c82e5abc37574a;p=linux.git s390: Add get_lowcore() function Add a get_lowcore() function which returns the address of lowcore (currently always NULL). This function will be used as a replacement of the S390_lowcore macro. Acked-by: Heiko Carstens Signed-off-by: Sven Schnelle Signed-off-by: Vasily Gorbik --- diff --git a/arch/s390/include/asm/lowcore.h b/arch/s390/include/asm/lowcore.h index 8c5f16857539..94f954250ae0 100644 --- a/arch/s390/include/asm/lowcore.h +++ b/arch/s390/include/asm/lowcore.h @@ -215,6 +215,11 @@ struct lowcore { #define S390_lowcore (*((struct lowcore *) 0)) +static __always_inline struct lowcore *get_lowcore(void) +{ + return NULL; +} + extern struct lowcore *lowcore_ptr[]; static inline void set_prefix(__u32 address)