Skip to content

Commit a9dfd28

Browse files
Jean Delvaregregkh
authored andcommitted
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: Jean Delvare <khali@linux-fr.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent e325e1f commit a9dfd28

16 files changed

Lines changed: 28 additions & 0 deletions

File tree

‎include/asm-alpha/scatterlist.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define _ALPHA_SCATTERLIST_H
33

44
#include <asm/page.h>
5+
#include <asm/types.h>
56

67
struct scatterlist {
78
struct page *page;

‎include/asm-avr32/scatterlist.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef __ASM_AVR32_SCATTERLIST_H
22
#define __ASM_AVR32_SCATTERLIST_H
33

4+
#include <asm/types.h>
5+
46
struct scatterlist {
57
struct page *page;
68
unsigned int offset;

‎include/asm-frv/scatterlist.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef _ASM_SCATTERLIST_H
22
#define _ASM_SCATTERLIST_H
33

4+
#include <asm/types.h>
5+
46
/*
57
* Drivers must set either ->address or (preferred) ->page and ->offset
68
* to indicate where data must be transferred to/from.

‎include/asm-h8300/scatterlist.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef _H8300_SCATTERLIST_H
22
#define _H8300_SCATTERLIST_H
33

4+
#include <asm/types.h>
5+
46
struct scatterlist {
57
struct page *page;
68
unsigned int offset;

‎include/asm-i386/scatterlist.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef _I386_SCATTERLIST_H
22
#define _I386_SCATTERLIST_H
33

4+
#include <asm/types.h>
5+
46
struct scatterlist {
57
struct page *page;
68
unsigned int offset;

‎include/asm-ia64/scatterlist.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
77
*/
88

9+
#include <asm/types.h>
10+
911
struct scatterlist {
1012
struct page *page;
1113
unsigned int offset;

‎include/asm-m32r/scatterlist.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef _ASM_M32R_SCATTERLIST_H
22
#define _ASM_M32R_SCATTERLIST_H
33

4+
#include <asm/types.h>
5+
46
struct scatterlist {
57
char * address; /* Location data is to be transferred to, NULL for
68
* highmem page */

‎include/asm-m68knommu/scatterlist.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define _M68KNOMMU_SCATTERLIST_H
33

44
#include <linux/mm.h>
5+
#include <asm/types.h>
56

67
struct scatterlist {
78
struct page *page;

‎include/asm-mips/scatterlist.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef __ASM_SCATTERLIST_H
22
#define __ASM_SCATTERLIST_H
33

4+
#include <asm/types.h>
5+
46
struct scatterlist {
57
struct page * page;
68
unsigned int offset;

‎include/asm-parisc/scatterlist.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define _ASM_PARISC_SCATTERLIST_H
33

44
#include <asm/page.h>
5+
#include <asm/types.h>
56

67
struct scatterlist {
78
struct page *page;

0 commit comments

Comments
 (0)