diff options
author | James Bottomley <jbottomley@parallels.com> | 2011-11-29 20:20:23 +0100 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-12-05 19:31:25 +0100 |
commit | 8c4519456713628cbb457c77bf06684aace67f69 (patch) | |
tree | 9b18579db366024a85e4a6fbeef261a0a96be547 /drivers/pci/ats.c | |
parent | PCI: defer enablement of SRIOV BARS (diff) | |
download | linux-8c4519456713628cbb457c77bf06684aace67f69.tar.xz linux-8c4519456713628cbb457c77bf06684aace67f69.zip |
PCI: fix ats compile failure
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@Parallels.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/ats.c')
-rw-r--r-- | drivers/pci/ats.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/ats.c b/drivers/pci/ats.c index 7ec56fb0bd78..b0dd08e6a9da 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" |