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: Alistair Delva <adelva@google.com> Change-Id: I932e7c2ca1a1bd6d730462249005515c71771ed8
This commit is contained in:
parent
adc90eb071
commit
fdef3b7210
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
||||||
#include <linux/linkage.h>
|
#include <linux/linkage.h>
|
||||||
#include <linux/cache.h>
|
#include <linux/cache.h>
|
||||||
|
|
||||||
extern const char linux_banner[];
|
extern const char *linux_banner;
|
||||||
extern const char linux_proc_banner[];
|
extern const char linux_proc_banner[];
|
||||||
|
|
||||||
#define PRINTK_MAX_SINGLE_HEADER_LEN 2
|
#define PRINTK_MAX_SINGLE_HEADER_LEN 2
|
||||||
|
|
|
@ -42,7 +42,7 @@ struct uts_namespace init_uts_ns = {
|
||||||
EXPORT_SYMBOL_GPL(init_uts_ns);
|
EXPORT_SYMBOL_GPL(init_uts_ns);
|
||||||
|
|
||||||
/* FIXED STRINGS! Don't touch! */
|
/* FIXED STRINGS! Don't touch! */
|
||||||
const char linux_banner[] =
|
const char *linux_banner =
|
||||||
"Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
|
"Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
|
||||||
LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
|
LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
|
||||||
EXPORT_SYMBOL_GPL(linux_banner);
|
EXPORT_SYMBOL_GPL(linux_banner);
|
||||||
|
|
Loading…
Reference in a new issue