Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932477AbbHXEh7 (ORCPT ); Mon, 24 Aug 2015 00:37:59 -0400 Received: from conuserg009.nifty.com ([202.248.44.35]:27384 "EHLO conuserg009-v.nifty.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932406AbbHXEht (ORCPT ); Mon, 24 Aug 2015 00:37:49 -0400 X-Nifty-SrcIP: [119.104.37.118] From: Masahiro Yamada To: arm@kernel.org Cc: Masahiro Yamada , Arnd Bergmann , Stephen Boyd , linux-kernel@vger.kernel.org, Russell King , Geert Uytterhoeven , Frederic Weisbecker , Yingjoe Chen , Pavel Machek , "Peter Zijlstra (Intel)" , linux-arm-kernel@lists.infradead.org, Stephen Warren Subject: [PATCH 01/18] ARM: add const qualifier to the argument of smp_set_ops() Date: Mon, 24 Aug 2015 13:36:01 +0900 Message-Id: <1440390978-22796-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1440390978-22796-1-git-send-email-yamada.masahiro@socionext.com> References: <1440390978-22796-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1343 Lines: 43 This function just copies '*ops' to 'smp_ops', so the given structure '*ops' is not modified at all. Signed-off-by: Masahiro Yamada --- arch/arm/include/asm/smp.h | 2 +- arch/arm/kernel/smp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/smp.h b/arch/arm/include/asm/smp.h index 2f3ac1b..cd81540 100644 --- a/arch/arm/include/asm/smp.h +++ b/arch/arm/include/asm/smp.h @@ -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 */ diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 3d6b782..bb63a4e 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c @@ -78,7 +78,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; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/