* [PATCH] staging: comedi: comedi_8254.h: make self-reliant
@ 2015-05-22 17:32 Ian Abbott
2015-05-26 18:32 ` Hartley Sweeten
0 siblings, 1 reply; 2+ messages in thread
From: Ian Abbott @ 2015-05-22 17:32 UTC (permalink / raw)
To: driverdev-devel
Cc: Greg Kroah-Hartman, Ian Abbott, H Hartley Sweeten, linux-kernel
The Comedi "comedi_8254.h" header file is included by various Comedi
drivers with timer/counters based on the 8254 chip. The drivers do not
compile cleanly if this header file is included first. It uses pointers
to the `struct comedi_device`, `struct comedi_subdevice`, and `struct
comedi_insn` structures in various function prototypes, so declare those
as incomplete types. It use the `bool` type, so include
<linux/types.h>. It also uses the `__iomem` tag, but that seems to be
taken care of indirectly by including <linux/types.h>.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
---
drivers/staging/comedi/drivers/comedi_8254.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/staging/comedi/drivers/comedi_8254.h b/drivers/staging/comedi/drivers/comedi_8254.h
index d89f6d9..f4610ea 100644
--- a/drivers/staging/comedi/drivers/comedi_8254.h
+++ b/drivers/staging/comedi/drivers/comedi_8254.h
@@ -20,6 +20,12 @@
#ifndef _COMEDI_8254_H
#define _COMEDI_8254_H
+#include <linux/types.h>
+
+struct comedi_device;
+struct comedi_insn;
+struct comedi_subdevice;
+
/*
* Common oscillator base values in nanoseconds
*/
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH] staging: comedi: comedi_8254.h: make self-reliant
2015-05-22 17:32 [PATCH] staging: comedi: comedi_8254.h: make self-reliant Ian Abbott
@ 2015-05-26 18:32 ` Hartley Sweeten
0 siblings, 0 replies; 2+ messages in thread
From: Hartley Sweeten @ 2015-05-26 18:32 UTC (permalink / raw)
To: Ian Abbott, driverdev-devel; +Cc: Greg Kroah-Hartman, linux-kernel
On Friday, May 22, 2015 10:33 AM, Ian Abbott wrote:
> The Comedi "comedi_8254.h" header file is included by various Comedi
> drivers with timer/counters based on the 8254 chip. The drivers do not
> compile cleanly if this header file is included first. It uses pointers
> to the `struct comedi_device`, `struct comedi_subdevice`, and `struct
> comedi_insn` structures in various function prototypes, so declare those
> as incomplete types. It use the `bool` type, so include
> <linux/types.h>. It also uses the `__iomem` tag, but that seems to be
> taken care of indirectly by including <linux/types.h>.
>
> Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-26 18:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-22 17:32 [PATCH] staging: comedi: comedi_8254.h: make self-reliant Ian Abbott
2015-05-26 18:32 ` Hartley Sweeten
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).