summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Bottomley <jbottomley@parallels.com>2011-11-29 19:20:23 +0000
committerJesse Barnes <jbarnes@virtuousgeek.org>2011-12-05 10:31:25 -0800
commit8c4519456713628cbb457c77bf06684aace67f69 (patch)
tree9b18579db366024a85e4a6fbeef261a0a96be547
parentbbef98ab0f019f1b0c25c1acdf1683c68933d41b (diff)
downloadop-kernel-dev-8c4519456713628cbb457c77bf06684aace67f69.zip
op-kernel-dev-8c4519456713628cbb457c77bf06684aace67f69.tar.gz
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>
-rw-r--r--drivers/pci/ats.c1
1 files changed, 1 insertions, 0 deletions
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"
OpenPOWER on IntegriCloud