]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Constify hwcap name string arrays
authorDave Martin <Dave.Martin@arm.com>
Thu, 30 Jul 2015 15:36:25 +0000 (16:36 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 21 Oct 2015 14:36:00 +0000 (15:36 +0100)
commit85baadc11436cba4ecf0f6fb6fe2e0ebf5977e40
tree69b39496eba8399dcc57440fba7e51a0bf3fa761
parentbfe22d3cd6f2379e98ed6ee8ef1cfd9269e70b93
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: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/cpuinfo.c