From: Torsten Duwe <duwe@suse.de>
Subject: Be prepared to enable ARM64 live patching during SLE15 lifetime
Patch-mainline: Never, kabi
References: bsc#1194892

SLE15 might ship without live patching on ARM64;
however, it will eventually be enabled during its lifetime.

Given the experience with ppc64le, the biggest kABI breakage
results from a changing struct module, so include the 2 booleans
right from the start.

Signed-off-by: Torsten Duwe <duwe@suse.de>
[ mb:
  refresh on top of 6.4
  also klp_modinfo struct included now
]
Signed-off-by: Miroslav Benes <mbenes@suse.cz>
---
 include/linux/module.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -382,7 +382,7 @@ struct mod_kallsyms {
 	char *typetab;
 };
 
-#ifdef CONFIG_LIVEPATCH
+#if defined(CONFIG_LIVEPATCH) || defined(__aarch64__)
 /**
  * struct klp_modinfo - ELF information preserved from the livepatch module
  *
@@ -545,7 +545,7 @@ struct module {
 #endif
 
 
-#ifdef CONFIG_LIVEPATCH
+#if defined(CONFIG_LIVEPATCH) || defined(__aarch64__)
 	bool klp; /* Is this a livepatch module? */
 	bool klp_alive;
 
