All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/numachip: add const and __initconst to numachip2_clockevent
@ 2017-08-29 18:17 Bhumika Goyal
  2017-09-25 10:07 ` [tip:x86/urgent] x86/numachip: Add " tip-bot for Bhumika Goyal
  0 siblings, 1 reply; 2+ messages in thread
From: Bhumika Goyal @ 2017-08-29 18:17 UTC (permalink / raw)
  To: julia.lawall, daniel.lezcano, tglx, linux-kernel; +Cc: Bhumika Goyal

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 <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,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tip:x86/urgent] x86/numachip: Add const and __initconst to numachip2_clockevent
  2017-08-29 18:17 [PATCH] x86/numachip: add const and __initconst to numachip2_clockevent Bhumika Goyal
@ 2017-09-25 10:07 ` tip-bot for Bhumika Goyal
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Bhumika Goyal @ 2017-09-25 10:07 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, tglx, mingo, hpa, bhumirks

Commit-ID:  10430364ebb562311ba6a6efa74e0c2298007912
Gitweb:     http://git.kernel.org/tip/10430364ebb562311ba6a6efa74e0c2298007912
Author:     Bhumika Goyal <bhumirks@gmail.com>
AuthorDate: Tue, 29 Aug 2017 23:47:11 +0530
Committer:  Thomas Gleixner <tglx@linutronix.de>
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 <bhumirks@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
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,

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-25 10:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-29 18:17 [PATCH] x86/numachip: add const and __initconst to numachip2_clockevent Bhumika Goyal
2017-09-25 10:07 ` [tip:x86/urgent] x86/numachip: Add " tip-bot for Bhumika Goyal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.