Re: pci: fix ats compile failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 29 Nov 2011 19:20:23 +0000
James Bottomley <jbottomley@xxxxxxxxxxxxx> wrote:

> I get this compile failure on parisc:
> 
> drivers/pci/ats.c: In function 'ats_alloc_one':
> drivers/pci/ats.c:29: error: implicit declaration of function
> 'kzalloc' drivers/pci/ats.c:29: warning: assignment makes pointer
> from integer without a cast drivers/pci/ats.c: In function
> 'ats_free_one': drivers/pci/ats.c:45: error: implicit declaration of
> function 'kfree'
> 
> Because ats.c is missing linux/slab.h as an include.  This patch
> fixes it
> 
> Signed-off-by: James Bottomley <JBottomley@xxxxxxxxxxxxx>
> 
> ---
> 
> diff --git a/drivers/pci/ats.c b/drivers/pci/ats.c
> index 7ec56fb..b0dd08e 100644
> --- a/drivers/pci/ats.c
> +++ b/drivers/pci/ats.c
> @@ -13,6 +13,7 @@
>  #include <linux/export.h>
>  #include <linux/pci-ats.h>
>  #include <linux/pci.h>
> +#include <linux/slab.h>
>  
>  #include "pci.h"

Thanks James, I'll queue it up.

Jesse
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux