From: Ian Abbott Date: Fri, 22 May 2015 17:45:25 +0000 (+0100) Subject: staging: comedi: comedi_isadma.h: make self-reliant X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=3a62cdb7f64f80579ce18178ecc145f01c1ad746;p=deliverable%2Flinux.git staging: comedi: comedi_isadma.h: make self-reliant The Comedi "comedi_isadma.h" header is included by the source for the "comedi_isadma" helper module and other modules that use it. It does not compile cleanly when it is the first header file included. It uses the `dma_addr_t` type, so include to declare it. (Also, that indirectly takes care of the use of `NULL`.) It uses `struct comedi_device *` in various function prototypes, so add an incomplete declaration of `struct comedi_device`. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/comedi_isadma.h b/drivers/staging/comedi/drivers/comedi_isadma.h index c7c524faf595..2fb6573ba9e4 100644 --- a/drivers/staging/comedi/drivers/comedi_isadma.h +++ b/drivers/staging/comedi/drivers/comedi_isadma.h @@ -16,6 +16,10 @@ #ifndef _COMEDI_ISADMA_H #define _COMEDI_ISADMA_H +#include + +struct comedi_device; + /* * These are used to avoid issues when and the DMA_MODE_ * defines are not available.