Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 8423/1: add const qualifier to smp_operations member in structures

The core framework does not modify smp_operations structures.
To clarify it, this commit adds 'const' qualifier to the 'ops'
member of struct of_cpu_method and the 'smp' member of struct
machine_desc.

This change allows each SoC code to add 'const' qualifier to its
smp_operation structure.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Masahiro Yamada and committed by
Russell King
f460b6ab 4caa9dda

+2 -2
+1 -1
arch/arm/include/asm/mach/arch.h
··· 47 47 unsigned l2c_aux_val; /* L2 cache aux value */ 48 48 unsigned l2c_aux_mask; /* L2 cache aux mask */ 49 49 void (*l2c_write_sec)(unsigned long, unsigned); 50 - struct smp_operations *smp; /* SMP operations */ 50 + const struct smp_operations *smp; /* SMP operations */ 51 51 bool (*smp_init)(void); 52 52 void (*fixup)(struct tag *, char **); 53 53 void (*dt_fixup)(void);
+1 -1
arch/arm/include/asm/smp.h
··· 112 112 113 113 struct of_cpu_method { 114 114 const char *method; 115 - struct smp_operations *ops; 115 + const struct smp_operations *ops; 116 116 }; 117 117 118 118 #define CPU_METHOD_OF_DECLARE(name, _method, _ops) \