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

Commit fdef3b72 authored by Alistair Delva's avatar Alistair Delva
Browse files

ANDROID: GKI: Make linux_banner a C pointer



This variable can have its ABI intentionally changed by anybody building
on a different hostname etc. so it does not make sense to monitor it as
a C string. Make linux_banner a C pointer so it is checked for presence
but not for length.

Bug: 154345163
Signed-off-by: default avatarAlistair Delva <adelva@google.com>
Change-Id: I932e7c2ca1a1bd6d730462249005515c71771ed8
parent adc90eb0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
#include <linux/linkage.h>
#include <linux/cache.h>

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

#define PRINTK_MAX_SINGLE_HEADER_LEN 2
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ struct uts_namespace init_uts_ns = {
EXPORT_SYMBOL_GPL(init_uts_ns);

/* FIXED STRINGS! Don't touch! */
const char linux_banner[] =
const char *linux_banner =
	"Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
	LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
EXPORT_SYMBOL_GPL(linux_banner);