Include hrtimer.h for ANSI compliance
PATCH 1/1 Include hrtimer.h for ANSI compliance
Include <linux/hrtimer.h> to make pci.h ansi compliant (it references an hrtimer enum).
Please CC on responses.
---include/linux/timer.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/timer.h +0 -0
@@ -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
Quoted 2 lines · On Tue, 6 Oct 2009 15:20:16 -0700 Thomas DuBuisson…
Include <
linux/hrtimer.h> to makepci.hansi 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.
include/linux/timer.h line 11
Quoted 12 lines
include/linux/timer.h +1
-0@@ -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.