Commit f460b6ab authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Russell King

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 4caa9dda
...@@ -47,7 +47,7 @@ struct machine_desc { ...@@ -47,7 +47,7 @@ struct machine_desc {
unsigned l2c_aux_val; /* L2 cache aux value */ unsigned l2c_aux_val; /* L2 cache aux value */
unsigned l2c_aux_mask; /* L2 cache aux mask */ unsigned l2c_aux_mask; /* L2 cache aux mask */
void (*l2c_write_sec)(unsigned long, unsigned); void (*l2c_write_sec)(unsigned long, unsigned);
struct smp_operations *smp; /* SMP operations */ const struct smp_operations *smp; /* SMP operations */
bool (*smp_init)(void); bool (*smp_init)(void);
void (*fixup)(struct tag *, char **); void (*fixup)(struct tag *, char **);
void (*dt_fixup)(void); void (*dt_fixup)(void);
......
...@@ -112,7 +112,7 @@ struct smp_operations { ...@@ -112,7 +112,7 @@ struct smp_operations {
struct of_cpu_method { struct of_cpu_method {
const char *method; const char *method;
struct smp_operations *ops; const struct smp_operations *ops;
}; };
#define CPU_METHOD_OF_DECLARE(name, _method, _ops) \ #define CPU_METHOD_OF_DECLARE(name, _method, _ops) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment