mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] clockevents.c: fix symbol was not declared noise
@ 2009-10-16 22:19 H Hartley Sweeten
  2009-10-18  6:25 ` Yong Zhang
  2009-11-18 11:36 ` [tip:timers/core] clockevents: Add missing include to pacify sparse tip-bot for H Hartley Sweeten
  0 siblings, 2 replies; 3+ messages in thread
From: H Hartley Sweeten @ 2009-10-16 22:19 UTC (permalink / raw)
  To: linux-kernel

Include "tick-internal.h" in order to pick up the extern function
prototype for clockevents_shutdown().  This quiets the following
spares build noise:

  warning: symbol 'clockevents_shutdown' was not declared. Should it be static?

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>

---

diff --git a/kernel/time/clockevents.c b/kernel/time/clockevents.c
index 620b58a..c30ba1f 100644
--- a/kernel/time/clockevents.c
+++ b/kernel/time/clockevents.c
@@ -20,6 +20,8 @@
 #include <linux/sysdev.h>
 #include <linux/tick.h>
 
+#include "tick-internal.h"
+
 /* The registered clock event devices */
 static LIST_HEAD(clockevent_devices);
 static LIST_HEAD(clockevents_released); 

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

* Re: [PATCH] clockevents.c: fix symbol was not declared noise
  2009-10-16 22:19 [PATCH] clockevents.c: fix symbol was not declared noise H Hartley Sweeten
@ 2009-10-18  6:25 ` Yong Zhang
  2009-11-18 11:36 ` [tip:timers/core] clockevents: Add missing include to pacify sparse tip-bot for H Hartley Sweeten
  1 sibling, 0 replies; 3+ messages in thread
From: Yong Zhang @ 2009-10-18  6:25 UTC (permalink / raw)
  To: H Hartley Sweeten
  Cc: linux-kernel, Thomas Gleixner, Martin Schwidefsky, john stultz

On Sat, Oct 17, 2009 at 6:19 AM, H Hartley Sweeten
<hartleys@visionengravers.com> wrote:
> Include "tick-internal.h" in order to pick up the extern function
> prototype for clockevents_shutdown().  This quiets the following
> spares build noise:
>
>  warning: symbol 'clockevents_shutdown' was not declared. Should it be static?
>
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
>

Looks good.
Reviewed-by: Yong Zhang <yong.zhang0@gmail.com>

Cc'ed some experts.

> ---
>
> diff --git a/kernel/time/clockevents.c b/kernel/time/clockevents.c
> index 620b58a..c30ba1f 100644
> --- a/kernel/time/clockevents.c
> +++ b/kernel/time/clockevents.c
> @@ -20,6 +20,8 @@
>  #include <linux/sysdev.h>
>  #include <linux/tick.h>
>
> +#include "tick-internal.h"
> +
>  /* The registered clock event devices */
>  static LIST_HEAD(clockevent_devices);
>  static LIST_HEAD(clockevents_released);
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

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

* [tip:timers/core] clockevents: Add missing include to pacify sparse
  2009-10-16 22:19 [PATCH] clockevents.c: fix symbol was not declared noise H Hartley Sweeten
  2009-10-18  6:25 ` Yong Zhang
@ 2009-11-18 11:36 ` tip-bot for H Hartley Sweeten
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for H Hartley Sweeten @ 2009-11-18 11:36 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, akpm, yong.zhang0, hartleys, tglx, hsweeten

Commit-ID:  8e1a928a2ed7e8d5cad97c8e985294b4caedd168
Gitweb:     http://git.kernel.org/tip/8e1a928a2ed7e8d5cad97c8e985294b4caedd168
Author:     H Hartley Sweeten <hartleys@visionengravers.com>
AuthorDate: Fri, 16 Oct 2009 18:19:01 -0400
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Wed, 18 Nov 2009 12:31:48 +0100

clockevents: Add missing include to pacify sparse

Include "tick-internal.h" in order to pick up the extern function
prototype for clockevents_shutdown(). This quiets the following sparse
build noise:

  warning: symbol 'clockevents_shutdown' was not declared. Should it be static?

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
LKML-Reference: <BD79186B4FD85F4B8E60E381CAEE190901E24550@mi8nycmail19.Mi8.com>
Reviewed-by: Yong Zhang <yong.zhang0@gmail.com>
Cc: johnstul@us.ibm.com
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 kernel/time/clockevents.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/time/clockevents.c b/kernel/time/clockevents.c
index 05e8aee..20a8920 100644
--- a/kernel/time/clockevents.c
+++ b/kernel/time/clockevents.c
@@ -20,6 +20,8 @@
 #include <linux/sysdev.h>
 #include <linux/tick.h>
 
+#include "tick-internal.h"
+
 /* The registered clock event devices */
 static LIST_HEAD(clockevent_devices);
 static LIST_HEAD(clockevents_released);

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

end of thread, other threads:[~2009-11-18 11:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-16 22:19 [PATCH] clockevents.c: fix symbol was not declared noise H Hartley Sweeten
2009-10-18  6:25 ` Yong Zhang
2009-11-18 11:36 ` [tip:timers/core] clockevents: Add missing include to pacify sparse tip-bot for H Hartley Sweeten

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome