Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 929c31bb authored by Will McVicker's avatar Will McVicker
Browse files

ANDROID: GKI: Add special linux_banner_ptr for modules



We can't modify the original linux_banner symbol due to ramdump parsing
dependencies. So add an additional symbol pointer that just points at
it. This way ABI monitoring won't care about the value and
modules can still access the banner value.

Signed-off-by: default avatarWill McVicker <willmcvicker@google.com>
Bug: 154586724
Bug: 154345163
Test: compile
Change-Id: I65678e02467b8754824a7527270a725741394fe3
parent 48fb994c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
#include <linux/cache.h>

extern const char linux_banner[];
extern const char *linux_banner_ptr;
extern const char linux_proc_banner[];

#define PRINTK_MAX_SINGLE_HEADER_LEN 2
+3 −1
Original line number Diff line number Diff line
@@ -45,7 +45,9 @@ EXPORT_SYMBOL_GPL(init_uts_ns);
const char linux_banner[] =
	"Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
	LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
EXPORT_SYMBOL_GPL(linux_banner);

const char *linux_banner_ptr = linux_banner;
EXPORT_SYMBOL_GPL(linux_banner_ptr);

const char linux_proc_banner[] =
	"%s version %s"