From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934531AbdIYKJ3 (ORCPT ); Mon, 25 Sep 2017 06:09:29 -0400 Received: from terminus.zytor.com ([65.50.211.136]:44239 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934433AbdIYKJ1 (ORCPT ); Mon, 25 Sep 2017 06:09:27 -0400 Date: Mon, 25 Sep 2017 03:07:20 -0700 From: tip-bot for Bhumika Goyal Message-ID: Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, bhumirks@gmail.com Reply-To: tglx@linutronix.de, linux-kernel@vger.kernel.org, hpa@zytor.com, bhumirks@gmail.com, mingo@kernel.org In-Reply-To: <1504030631-10812-1-git-send-email-bhumirks@gmail.com> References: <1504030631-10812-1-git-send-email-bhumirks@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/numachip: Add const and __initconst to numachip2_clockevent Git-Commit-ID: 10430364ebb562311ba6a6efa74e0c2298007912 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 10430364ebb562311ba6a6efa74e0c2298007912 Gitweb: http://git.kernel.org/tip/10430364ebb562311ba6a6efa74e0c2298007912 Author: Bhumika Goyal AuthorDate: Tue, 29 Aug 2017 23:47:11 +0530 Committer: Thomas Gleixner CommitDate: Mon, 25 Sep 2017 09:36:15 +0200 x86/numachip: Add const and __initconst to numachip2_clockevent Make this const as it is only used during a copy operation and add __initconst as this usage is during the initialization phase. Signed-off-by: Bhumika Goyal Signed-off-by: Thomas Gleixner Cc: julia.lawall@lip6.fr Cc: daniel.lezcano@linaro.org Link: http://lkml.kernel.org/r/1504030631-10812-1-git-send-email-bhumirks@gmail.com --- drivers/clocksource/numachip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/numachip.c b/drivers/clocksource/numachip.c index 6a20dc8..9a7d7f0 100644 --- a/drivers/clocksource/numachip.c +++ b/drivers/clocksource/numachip.c @@ -43,7 +43,7 @@ static int numachip2_set_next_event(unsigned long delta, struct clock_event_devi return 0; } -static struct clock_event_device numachip2_clockevent = { +static const struct clock_event_device numachip2_clockevent __initconst = { .name = "numachip2", .rating = 400, .set_next_event = numachip2_set_next_event,