summaryrefslogtreecommitdiffstats
path: root/pci-fix-ats-compile.patch
diff options
context:
space:
mode:
authorDennis Gilmore <dennis@ausil.us>2011-12-09 13:29:38 -0600
committerDennis Gilmore <dennis@ausil.us>2011-12-23 10:28:47 -0600
commit534352f358b444bf67c24181516d90d4ca59ed46 (patch)
tree8a0ea260280d9173edbe6cc04de1c609b541489e /pci-fix-ats-compile.patch
parent2569ae132a91594cc77ebbcc47805b289e340249 (diff)
downloadkernel-534352f358b444bf67c24181516d90d4ca59ed46.tar.gz
kernel-534352f358b444bf67c24181516d90d4ca59ed46.tar.xz
kernel-534352f358b444bf67c24181516d90d4ca59ed46.zip
iadd support for building highbank, imx and kirkwood kernel images on arm
Diffstat (limited to 'pci-fix-ats-compile.patch')
-rw-r--r--pci-fix-ats-compile.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/pci-fix-ats-compile.patch b/pci-fix-ats-compile.patch
new file mode 100644
index 000000000..1dcb7e967
--- /dev/null
+++ b/pci-fix-ats-compile.patch
@@ -0,0 +1,26 @@
+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"
+