ARM: 8424/1: add const qualifier to the argument of smp_set_ops()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 26 Aug 2015 06:49:11 +0000 (07:49 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 22 Sep 2015 07:13:57 +0000 (08:13 +0100)
This function just copies '*ops' to 'smp_ops', so the given
structure '*ops' is not modified at all.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/smp.h
arch/arm/kernel/smp.c

index ef356659b4f43e6125443e7edd67aa1706bc8d2e..2f8bd44e65c415f9953c904c68763ebfc2c6d55e 100644 (file)
@@ -122,6 +122,6 @@ struct of_cpu_method {
 /*
  * set platform specific SMP operations
  */
-extern void smp_set_ops(struct smp_operations *);
+extern void smp_set_ops(const struct smp_operations *);
 
 #endif /* ifndef __ASM_ARM_SMP_H */
index 36045e8ced01a829069f642f4078337d4da21781..7c467c5b048e9fc431bbb0c1c29af07fb81d0f9b 100644 (file)
@@ -80,7 +80,7 @@ static DECLARE_COMPLETION(cpu_running);
 
 static struct smp_operations smp_ops;
 
-void __init smp_set_ops(struct smp_operations *ops)
+void __init smp_set_ops(const struct smp_operations *ops)
 {
        if (ops)
                smp_ops = *ops;