Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4caa9dda authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Russell King
Browse files

ARM: 8424/1: add const qualifier to the argument of smp_set_ops()



This function just copies '*ops' to 'smp_ops', so the given
structure '*ops' is not modified at all.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent bbeb9209
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */
+1 −1
Original line number Diff line number Diff line
@@ -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;