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: Will McVicker <willmcvicker@google.com> Bug: 154586724 Bug: 154345163 Test: compile Change-Id: I65678e02467b8754824a7527270a725741394fe3
This commit is contained in:
parent
48fb994c74
commit
929c31bb5a
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue