clockevents: Make clockevents_subsys static
authorBen Dooks <ben.dooks@codethink.co.uk>
Fri, 17 Jun 2016 15:56:14 +0000 (16:56 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 19 Jul 2016 08:48:06 +0000 (10:48 +0200)
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: linux-kernel@lists.codethink.co.uk
Link: http://lkml.kernel.org/r/1466178974-7105-1-git-send-email-ben.dooks@codethink.co.uk
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/clockevents.c

index a9b76a40319e86b5d545621d274c262bc69c7c70..2c5bc77c0bb004fa5b9bd5e9ca60f60b40ba1b4f 100644 (file)
@@ -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",
 };