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

Commit 9299b247 authored by Dave Martin's avatar Dave Martin Committed by Catalin Marinas
Browse files

arm64: Constify hwcap name string arrays



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: default avatarDave Martin <Dave.Martin@arm.com>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 4db8e5ea
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ static char *icache_policy_str[] = {

unsigned long __icache_flags;

static const char *hwcap_str[] = {
static const char *const hwcap_str[] = {
	"fp",
	"asimd",
	"evtstrm",
@@ -62,7 +62,7 @@ static const char *hwcap_str[] = {
};

#ifdef CONFIG_COMPAT
static const char *compat_hwcap_str[] = {
static const char *const compat_hwcap_str[] = {
	"swp",
	"half",
	"thumb",
@@ -87,7 +87,7 @@ static const char *compat_hwcap_str[] = {
	"evtstrm"
};

static const char *compat_hwcap2_str[] = {
static const char *const compat_hwcap2_str[] = {
	"aes",
	"pmull",
	"sha1",