diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-08-26 09:49:12 +0300 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-09-22 10:13:57 +0300 |
commit | f460b6abdeeafd30c3ee737c843be17b1ceb38e5 (patch) | |
tree | 76e1d39f3d23be43258002b05ef667e0c4aeeb78 /arch/arm/include/asm/smp.h | |
parent | 4caa9dda388f34f957a9eb52b9f5ef1a8c975c7b (diff) | |
download | linux-f460b6abdeeafd30c3ee737c843be17b1ceb38e5.tar.xz |
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>
Diffstat (limited to 'arch/arm/include/asm/smp.h')
-rw-r--r-- | arch/arm/include/asm/smp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/smp.h b/arch/arm/include/asm/smp.h index 2f8bd44e65c4..3d6dc8b460e4 100644 --- a/arch/arm/include/asm/smp.h +++ b/arch/arm/include/asm/smp.h @@ -112,7 +112,7 @@ struct smp_operations { struct of_cpu_method { const char *method; - struct smp_operations *ops; + const struct smp_operations *ops; }; #define CPU_METHOD_OF_DECLARE(name, _method, _ops) \ |