mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Include hrtimer.h for ANSI compliance
@ 2009-10-06 22:20 Thomas DuBuisson
  2009-10-13 23:34 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas DuBuisson @ 2009-10-06 22:20 UTC (permalink / raw)
  To: linux-kernel

Include <linux/hrtimer.h> to make pci.h ansi compliant (it references
an hrtimer enum).

Please CC on responses.

Signed-off-by: Thomas DuBuisson <Thomas.DuBuisson@gmail.com>
---
include/linux/timer.h |    1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/timer.h b/include/linux/timer.h
index a2d1eb6..ad2b3cb 100644
--- a/include/linux/timer.h
+++ b/include/linux/timer.h
@@ -6,6 +6,7 @@
#include <linux/stddef.h>
#include <linux/debugobjects.h>
#include <linux/stringify.h>
+#include <linux/hrtimer.h>

struct tvec_base;

--
1.6.2.5

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

* Re: [PATCH] Include hrtimer.h for ANSI compliance
  2009-10-06 22:20 [PATCH] Include hrtimer.h for ANSI compliance Thomas DuBuisson
@ 2009-10-13 23:34 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2009-10-13 23:34 UTC (permalink / raw)
  To: Thomas DuBuisson; +Cc: linux-kernel, Thomas Gleixner

On Tue, 6 Oct 2009 15:20:16 -0700
Thomas DuBuisson <thomas.dubuisson@gmail.com> wrote:

> Include <linux/hrtimer.h> to make pci.h ansi compliant (it references
> an hrtimer enum).

extern enum hrtimer_restart it_real_fn(struct hrtimer *);


Perhaps the declaration of it_real_fn() should be moved to hrtimer.h
instead.  Or perhaps not.


Or we could "forward declare" the enum with simply

enum hrtimer_restart;

but given that the compiler works out the storage size of the type at
compile-time, that looks risky.


Or we could not do anything.  Because increasing our inclusion
complexity for no known gain isn't a bargain.


Or is it no known gain?  What prompted you to write this patch?  Some
error message or warning from some tool?  If so, please describe it
fully.

> 
> diff --git a/include/linux/timer.h b/include/linux/timer.h
> index a2d1eb6..ad2b3cb 100644
> --- a/include/linux/timer.h
> +++ b/include/linux/timer.h
> @@ -6,6 +6,7 @@
> #include <linux/stddef.h>
> #include <linux/debugobjects.h>
> #include <linux/stringify.h>
> +#include <linux/hrtimer.h>
> 
> struct tvec_base;

Your email client mangles whitespace, thus destroying the patch.

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

end of thread, other threads:[~2009-10-13 23:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-06 22:20 [PATCH] Include hrtimer.h for ANSI compliance Thomas DuBuisson
2009-10-13 23:34 ` Andrew Morton

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