* [PATCH] clockevents: make clockevents_subsys static
@ 2016-06-17 15:56 Ben Dooks
2016-07-19 8:51 ` [tip:timers/core] clockevents: Make " tip-bot for Ben Dooks
0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks @ 2016-06-17 15:56 UTC (permalink / raw)
To: linux-kernel; +Cc: Ben Dooks, Thomas Gleixner, linux-kernel
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tip:timers/core] clockevents: Make clockevents_subsys static
2016-06-17 15:56 [PATCH] clockevents: make clockevents_subsys static Ben Dooks
@ 2016-07-19 8:51 ` tip-bot for Ben Dooks
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Ben Dooks @ 2016-07-19 8:51 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, tglx, ben.dooks
Commit-ID: 775be506266a860f141f6b848c92c316c602a94f
Gitweb: http://git.kernel.org/tip/775be506266a860f141f6b848c92c316c602a94f
Author: Ben Dooks <ben.dooks@codethink.co.uk>
AuthorDate: Fri, 17 Jun 2016 16:56:14 +0100
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Tue, 19 Jul 2016 10:48:06 +0200
clockevents: Make clockevents_subsys static
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 | 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",
};
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-19 8:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-17 15:56 [PATCH] clockevents: make clockevents_subsys static Ben Dooks
2016-07-19 8:51 ` [tip:timers/core] clockevents: Make " tip-bot for Ben Dooks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).