public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: xhci: add missing dma-mapping.h includes
@ 2013-07-26 12:34 James Hogan
  2013-07-30 20:41 ` Sarah Sharp
  0 siblings, 1 reply; 2+ messages in thread
From: James Hogan @ 2013-07-26 12:34 UTC (permalink / raw)
  To: linux-kernel; +Cc: James Hogan, Greg Kroah-Hartman, linux-usb, Sarah Sharp

A randconfig build hit the following build errors because xhci.c and
xhci-mem.c use dma mapping functions but don't include
<linux/dma-mapping.h>. Add the missing includes to fix the build errors.

drivers/usb/host/xhci.c In function 'xhci_gen_setup':
drivers/usb/host/xhci.c +4872 : error: implicit declaration of function 'dma_set_mask'
drivers/usb/host/xhci.c +4872 : error: implicit declaration of function 'DMA_BIT_MASK'

drivers/usb/host/xhci-mem.c In function 'xhci_free_stream_ctx':
drivers/usb/host/xhci-mem.c +435 : error: implicit declaration of function 'dma_free_coherent'
drivers/usb/host/xhci-mem.c In function 'xhci_alloc_stream_ctx':
drivers/usb/host/xhci-mem.c +463 : error: implicit declaration of function 'dma_alloc_coherent'

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
---
 drivers/usb/host/xhci-mem.c | 1 +
 drivers/usb/host/xhci.c     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c
index fbf75e5..3e27d92 100644
--- a/drivers/usb/host/xhci-mem.c
+++ b/drivers/usb/host/xhci-mem.c
@@ -24,6 +24,7 @@
 #include <linux/pci.h>
 #include <linux/slab.h>
 #include <linux/dmapool.h>
+#include <linux/dma-mapping.h>
 
 #include "xhci.h"
 
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index d8f640b..247020c 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -27,6 +27,7 @@
 #include <linux/moduleparam.h>
 #include <linux/slab.h>
 #include <linux/dmi.h>
+#include <linux/dma-mapping.h>
 
 #include "xhci.h"
 
-- 
1.8.1.2



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

* Re: [PATCH] usb: xhci: add missing dma-mapping.h includes
  2013-07-26 12:34 [PATCH] usb: xhci: add missing dma-mapping.h includes James Hogan
@ 2013-07-30 20:41 ` Sarah Sharp
  0 siblings, 0 replies; 2+ messages in thread
From: Sarah Sharp @ 2013-07-30 20:41 UTC (permalink / raw)
  To: James Hogan; +Cc: linux-kernel, Greg Kroah-Hartman, linux-usb

Thanks for the patch James!  I'll send it off to Greg in a couple days.

Sarah Sharp

On Fri, Jul 26, 2013 at 01:34:43PM +0100, James Hogan wrote:
> A randconfig build hit the following build errors because xhci.c and
> xhci-mem.c use dma mapping functions but don't include
> <linux/dma-mapping.h>. Add the missing includes to fix the build errors.
> 
> drivers/usb/host/xhci.c In function 'xhci_gen_setup':
> drivers/usb/host/xhci.c +4872 : error: implicit declaration of function 'dma_set_mask'
> drivers/usb/host/xhci.c +4872 : error: implicit declaration of function 'DMA_BIT_MASK'
> 
> drivers/usb/host/xhci-mem.c In function 'xhci_free_stream_ctx':
> drivers/usb/host/xhci-mem.c +435 : error: implicit declaration of function 'dma_free_coherent'
> drivers/usb/host/xhci-mem.c In function 'xhci_alloc_stream_ctx':
> drivers/usb/host/xhci-mem.c +463 : error: implicit declaration of function 'dma_alloc_coherent'
> 
> Signed-off-by: James Hogan <james.hogan@imgtec.com>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: linux-usb@vger.kernel.org
> Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
> ---
>  drivers/usb/host/xhci-mem.c | 1 +
>  drivers/usb/host/xhci.c     | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c
> index fbf75e5..3e27d92 100644
> --- a/drivers/usb/host/xhci-mem.c
> +++ b/drivers/usb/host/xhci-mem.c
> @@ -24,6 +24,7 @@
>  #include <linux/pci.h>
>  #include <linux/slab.h>
>  #include <linux/dmapool.h>
> +#include <linux/dma-mapping.h>
>  
>  #include "xhci.h"
>  
> diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
> index d8f640b..247020c 100644
> --- a/drivers/usb/host/xhci.c
> +++ b/drivers/usb/host/xhci.c
> @@ -27,6 +27,7 @@
>  #include <linux/moduleparam.h>
>  #include <linux/slab.h>
>  #include <linux/dmi.h>
> +#include <linux/dma-mapping.h>
>  
>  #include "xhci.h"
>  
> -- 
> 1.8.1.2
> 
> 

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

end of thread, other threads:[~2013-07-30 20:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-26 12:34 [PATCH] usb: xhci: add missing dma-mapping.h includes James Hogan
2013-07-30 20:41 ` Sarah Sharp

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