ARM: constify machine_desc structure uses
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 26 Jul 2013 13:55:59 +0000 (14:55 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 26 Jul 2013 13:55:59 +0000 (14:55 +0100)
commitff69a4c855066592f9e293cff8f54813614dd544
treec1fcee172f8bfb62c7c6b970b0c9f57ae35f9df4
parent3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b
ARM: constify machine_desc structure uses

struct machine_desc records are defined everywhere as a 'const'
structure, but unfortuantely it loses its const-ness through the use of
linker magic - the symbols which surround the section are not declared
const so it becomes possible not to use 'const' for pointers to these
const structures.

Let's fix this oversight - all pointers to these structures should be
marked const too.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/mach/arch.h
arch/arm/include/asm/memblock.h
arch/arm/include/asm/prom.h
arch/arm/kernel/atags.h
arch/arm/kernel/atags_parse.c
arch/arm/kernel/devtree.c
arch/arm/kernel/setup.c
arch/arm/mm/init.c
arch/arm/mm/mmu.c
arch/arm/mm/nommu.c