PCI: scatterlist.h needs types.h
authorJean Delvare <khali@linux-fr.org>
Tue, 6 Mar 2007 10:45:12 +0000 (02:45 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 3 May 2007 02:02:34 +0000 (19:02 -0700)
Most architectures' scatterlist.h use the type dma_addr_t, but omit to
include <asm/types.h> which defines it.  This could lead to build failures,
so let's add the missing includes.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
16 files changed:
include/asm-alpha/scatterlist.h
include/asm-avr32/scatterlist.h
include/asm-frv/scatterlist.h
include/asm-h8300/scatterlist.h
include/asm-i386/scatterlist.h
include/asm-ia64/scatterlist.h
include/asm-m32r/scatterlist.h
include/asm-m68knommu/scatterlist.h
include/asm-mips/scatterlist.h
include/asm-parisc/scatterlist.h
include/asm-sh/scatterlist.h
include/asm-sh64/scatterlist.h
include/asm-sparc64/scatterlist.h
include/asm-v850/scatterlist.h
include/asm-x86_64/scatterlist.h
include/asm-xtensa/scatterlist.h

index 6afb8bd3aaf9674772dbfe981c05d86c4d008534..917365405e8388fbe2b10e37621bcb30c82aa8d1 100644 (file)
@@ -2,6 +2,7 @@
 #define _ALPHA_SCATTERLIST_H
 
 #include <asm/page.h>
+#include <asm/types.h>
   
 struct scatterlist {
        struct page *page;
index bfe7d753423cbed4e476010a0b3b6a72dfde36e2..c6d5ce3b3a25f558ecda0bc7a7b89661e49e10d2 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __ASM_AVR32_SCATTERLIST_H
 #define __ASM_AVR32_SCATTERLIST_H
 
+#include <asm/types.h>
+
 struct scatterlist {
     struct page                *page;
     unsigned int       offset;
index fb38fd329a5fcd5df01b416973d35cd960964fc6..8e827fa853f15b7f47742a8dd31624e02b6cfcff 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _ASM_SCATTERLIST_H
 #define _ASM_SCATTERLIST_H
 
+#include <asm/types.h>
+
 /*
  * Drivers must set either ->address or (preferred) ->page and ->offset
  * to indicate where data must be transferred to/from.
index 7627f0cd1a2f4f559514bbfe3f2dfd044b4a18f8..985fdf54eacad5c49d39f5082b9807456f18603b 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _H8300_SCATTERLIST_H
 #define _H8300_SCATTERLIST_H
 
+#include <asm/types.h>
+
 struct scatterlist {
        struct page     *page;
        unsigned int    offset;
index 55d6c953a76e2142b70e2738450b4728cdaa4343..d7e45a8f1aaeb22c629bea814c32208881916e11 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _I386_SCATTERLIST_H
 #define _I386_SCATTERLIST_H
 
+#include <asm/types.h>
+
 struct scatterlist {
     struct page                *page;
     unsigned int       offset;
index 9dbea8844d5ea11e003d81f339fda7c2f40edf9e..a452ea24205a70b1fd271d47158706f7809d6957 100644 (file)
@@ -6,6 +6,8 @@
  *     David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
  */
 
+#include <asm/types.h>
+
 struct scatterlist {
        struct page *page;
        unsigned int offset;
index c2de96cb69ed1940cf58510bfa6ec48977abbc66..352415ff5eb909837d80cd69118aa30e4f673bd6 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _ASM_M32R_SCATTERLIST_H
 #define _ASM_M32R_SCATTERLIST_H
 
+#include <asm/types.h>
+
 struct scatterlist {
     char *  address;    /* Location data is to be transferred to, NULL for
                          * highmem page */
index 2085d6ff8782f3eb31473fc8ee31c0c56b1cad2f..4da79d3d3f34d03f07c7b34529f4e30502e2e3bf 100644 (file)
@@ -2,6 +2,7 @@
 #define _M68KNOMMU_SCATTERLIST_H
 
 #include <linux/mm.h>
+#include <asm/types.h>
 
 struct scatterlist {
        struct page     *page;
index 22634706e9d571608e5a96dafac4921b68a30661..7af104c95b205ce9ef2e093ae59327c79832bbfc 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __ASM_SCATTERLIST_H
 #define __ASM_SCATTERLIST_H
 
+#include <asm/types.h>
+
 struct scatterlist {
        struct page *   page;
        unsigned int    offset;
index 236c1d0fba336a948e36f8556a2c994fcccc11a1..e7211c748446d50cf38222395861fe684630e195 100644 (file)
@@ -2,6 +2,7 @@
 #define _ASM_PARISC_SCATTERLIST_H
 
 #include <asm/page.h>
+#include <asm/types.h>
 
 struct scatterlist {
        struct page *page;
index d19e7cd3b0235759723f3236a03b80ed83a8e29b..b9ae53c38365c3ac28b3a5269d9b561cf38a998f 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __ASM_SH_SCATTERLIST_H
 #define __ASM_SH_SCATTERLIST_H
 
+#include <asm/types.h>
+
 struct scatterlist {
     struct page * page; /* Location for highmem page, if any */
     unsigned int offset;/* for highmem, page offset */
index 5d8fa32d2e9dd8b0274629f8b6cf18d1b3fc83ce..1c723f2d7a9516a2daa26fe3113d87a2eab44043 100644 (file)
@@ -11,6 +11,8 @@
 #ifndef __ASM_SH64_SCATTERLIST_H
 #define __ASM_SH64_SCATTERLIST_H
 
+#include <asm/types.h>
+
 struct scatterlist {
     struct page * page; /* Location for highmem page, if any */
     unsigned int offset;/* for highmem, page offset */
index ec4f3c63fe986af7c7cc8f162b2dfc28f2529686..048fdb40e81dc17a1d319222556344aaf5408b2c 100644 (file)
@@ -3,6 +3,7 @@
 #define _SPARC64_SCATTERLIST_H
 
 #include <asm/page.h>
+#include <asm/types.h>
 
 struct scatterlist {
        struct page     *page;
index af1cba69a526b75e2542b4c9375cc2ca0d18c1e7..56f402920db9b10c9ab4a48e728f63043a2e2eff 100644 (file)
@@ -14,6 +14,8 @@
 #ifndef __V850_SCATTERLIST_H__
 #define __V850_SCATTERLIST_H__
 
+#include <asm/types.h>
+
 struct scatterlist {
        struct page     *page;
        unsigned        offset;
index 49d89f8129cd889fb3984be972bcf269a612f45e..eaf7ada27e1485c81bc174e417141128c587e056 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _X8664_SCATTERLIST_H
 #define _X8664_SCATTERLIST_H
 
+#include <asm/types.h>
+
 struct scatterlist {
     struct page                *page;
     unsigned int       offset;
index 38a2b9acd658945a438b301016c9140c040bef8a..ca337a2942908d11e750e4c62d1651696c767cb8 100644 (file)
@@ -11,6 +11,8 @@
 #ifndef _XTENSA_SCATTERLIST_H
 #define _XTENSA_SCATTERLIST_H
 
+#include <asm/types.h>
+
 struct scatterlist {
        struct page     *page;
        unsigned int    offset;