Skip to content

Commit

Permalink
clockevents: Make clockevents_subsys static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ben Dooks authored and Thomas Gleixner committed Jul 19, 2016
1 parent 1d661bf commit 775be50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/time/clockevents.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};
Expand Down

0 comments on commit 775be50

Please sign in to comment.