Commit a9dfd281 authored by Jean Delvare's avatar Jean Delvare Committed by Greg Kroah-Hartman

PCI: scatterlist.h needs types.h

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: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e325e1f0
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#define _ALPHA_SCATTERLIST_H #define _ALPHA_SCATTERLIST_H
#include <asm/page.h> #include <asm/page.h>
#include <asm/types.h>
struct scatterlist { struct scatterlist {
struct page *page; struct page *page;
......
#ifndef __ASM_AVR32_SCATTERLIST_H #ifndef __ASM_AVR32_SCATTERLIST_H
#define __ASM_AVR32_SCATTERLIST_H #define __ASM_AVR32_SCATTERLIST_H
#include <asm/types.h>
struct scatterlist { struct scatterlist {
struct page *page; struct page *page;
unsigned int offset; unsigned int offset;
......
#ifndef _ASM_SCATTERLIST_H #ifndef _ASM_SCATTERLIST_H
#define _ASM_SCATTERLIST_H #define _ASM_SCATTERLIST_H
#include <asm/types.h>
/* /*
* Drivers must set either ->address or (preferred) ->page and ->offset * Drivers must set either ->address or (preferred) ->page and ->offset
* to indicate where data must be transferred to/from. * to indicate where data must be transferred to/from.
......
#ifndef _H8300_SCATTERLIST_H #ifndef _H8300_SCATTERLIST_H
#define _H8300_SCATTERLIST_H #define _H8300_SCATTERLIST_H
#include <asm/types.h>
struct scatterlist { struct scatterlist {
struct page *page; struct page *page;
unsigned int offset; unsigned int offset;
......
#ifndef _I386_SCATTERLIST_H #ifndef _I386_SCATTERLIST_H
#define _I386_SCATTERLIST_H #define _I386_SCATTERLIST_H
#include <asm/types.h>
struct scatterlist { struct scatterlist {
struct page *page; struct page *page;
unsigned int offset; unsigned int offset;
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
* David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
*/ */
#include <asm/types.h>
struct scatterlist { struct scatterlist {
struct page *page; struct page *page;
unsigned int offset; unsigned int offset;
......
#ifndef _ASM_M32R_SCATTERLIST_H #ifndef _ASM_M32R_SCATTERLIST_H
#define _ASM_M32R_SCATTERLIST_H #define _ASM_M32R_SCATTERLIST_H
#include <asm/types.h>
struct scatterlist { struct scatterlist {
char * address; /* Location data is to be transferred to, NULL for char * address; /* Location data is to be transferred to, NULL for
* highmem page */ * highmem page */
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#define _M68KNOMMU_SCATTERLIST_H #define _M68KNOMMU_SCATTERLIST_H
#include <linux/mm.h> #include <linux/mm.h>
#include <asm/types.h>
struct scatterlist { struct scatterlist {
struct page *page; struct page *page;
......
#ifndef __ASM_SCATTERLIST_H #ifndef __ASM_SCATTERLIST_H
#define __ASM_SCATTERLIST_H #define __ASM_SCATTERLIST_H
#include <asm/types.h>
struct scatterlist { struct scatterlist {
struct page * page; struct page * page;
unsigned int offset; unsigned int offset;
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#define _ASM_PARISC_SCATTERLIST_H #define _ASM_PARISC_SCATTERLIST_H
#include <asm/page.h> #include <asm/page.h>
#include <asm/types.h>
struct scatterlist { struct scatterlist {
struct page *page; struct page *page;
......
#ifndef __ASM_SH_SCATTERLIST_H #ifndef __ASM_SH_SCATTERLIST_H
#define __ASM_SH_SCATTERLIST_H #define __ASM_SH_SCATTERLIST_H
#include <asm/types.h>
struct scatterlist { struct scatterlist {
struct page * page; /* Location for highmem page, if any */ struct page * page; /* Location for highmem page, if any */
unsigned int offset;/* for highmem, page offset */ unsigned int offset;/* for highmem, page offset */
......
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
#ifndef __ASM_SH64_SCATTERLIST_H #ifndef __ASM_SH64_SCATTERLIST_H
#define __ASM_SH64_SCATTERLIST_H #define __ASM_SH64_SCATTERLIST_H
#include <asm/types.h>
struct scatterlist { struct scatterlist {
struct page * page; /* Location for highmem page, if any */ struct page * page; /* Location for highmem page, if any */
unsigned int offset;/* for highmem, page offset */ unsigned int offset;/* for highmem, page offset */
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#define _SPARC64_SCATTERLIST_H #define _SPARC64_SCATTERLIST_H
#include <asm/page.h> #include <asm/page.h>
#include <asm/types.h>
struct scatterlist { struct scatterlist {
struct page *page; struct page *page;
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#ifndef __V850_SCATTERLIST_H__ #ifndef __V850_SCATTERLIST_H__
#define __V850_SCATTERLIST_H__ #define __V850_SCATTERLIST_H__
#include <asm/types.h>
struct scatterlist { struct scatterlist {
struct page *page; struct page *page;
unsigned offset; unsigned offset;
......
#ifndef _X8664_SCATTERLIST_H #ifndef _X8664_SCATTERLIST_H
#define _X8664_SCATTERLIST_H #define _X8664_SCATTERLIST_H
#include <asm/types.h>
struct scatterlist { struct scatterlist {
struct page *page; struct page *page;
unsigned int offset; unsigned int offset;
......
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
#ifndef _XTENSA_SCATTERLIST_H #ifndef _XTENSA_SCATTERLIST_H
#define _XTENSA_SCATTERLIST_H #define _XTENSA_SCATTERLIST_H
#include <asm/types.h>
struct scatterlist { struct scatterlist {
struct page *page; struct page *page;
unsigned int offset; unsigned int offset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment