Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1425271 > unrolled thread

[PATCH] clockevents: make clockevents_subsys static

Started byBen Dooks <ben.dooks@codethink.co.uk>
First post2016-06-17 18:00 +0200
Last post2016-06-17 18:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] clockevents: make clockevents_subsys static Ben Dooks <ben.dooks@codethink.co.uk> - 2016-06-17 18:00 +0200

#1425271 — [PATCH] clockevents: make clockevents_subsys static

FromBen Dooks <ben.dooks@codethink.co.uk>
Date2016-06-17 18:00 +0200
Subject[PATCH] clockevents: make clockevents_subsys static
Message-ID<rL4lA-8sx-29@gated-at.bofh.it>
The clockevents_subsys struct is used for sysfs support and
is not declared or used outside the file it is defined in.
Fix the following warning by making it static:

kernel/time/clockevents.c:648:17: warning: symbol 'clockevents_subsys' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
---
 kernel/time/clockevents.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/time/clockevents.c b/kernel/time/clockevents.c
index a9b76a4..2c5bc77 100644
--- a/kernel/time/clockevents.c
+++ b/kernel/time/clockevents.c
@@ -645,7 +645,7 @@ void tick_cleanup_dead_cpu(int cpu)
 #endif
 
 #ifdef CONFIG_SYSFS
-struct bus_type clockevents_subsys = {
+static struct bus_type clockevents_subsys = {
 	.name		= "clockevents",
 	.dev_name       = "clockevent",
 };
-- 
2.8.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web