]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
s390: Add get_lowcore() function
authorSven Schnelle <svens@linux.ibm.com>
Mon, 10 Jun 2024 11:45:24 +0000 (13:45 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 18 Jun 2024 15:01:32 +0000 (17:01 +0200)
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 <hca@linux.ibm.com>
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/lowcore.h

index 8c5f168575399383368b72ce5f80b768fadf9351..94f954250ae0e719c12c4f88b7dd4bc64ba13d09 100644 (file)
@@ -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)