The hwcap string arrays used for generating the contents of
/proc/cpuinfo are currently arrays of non-const pointers.
There's no need for these pointers to be mutable, so this patch makes
them const so that they can be moved to .rodata.
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
unsigned long __icache_flags;
-static const char *hwcap_str[] = {
+static const char *const hwcap_str[] = {
"fp",
"asimd",
"evtstrm",
};
#ifdef CONFIG_COMPAT
-static const char *compat_hwcap_str[] = {
+static const char *const compat_hwcap_str[] = {
"swp",
"half",
"thumb",
"evtstrm"
};
-static const char *compat_hwcap2_str[] = {
+static const char *const compat_hwcap2_str[] = {
"aes",
"pmull",
"sha1",