LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH] scatterlist.h needs types.h
Date: Thu, 1 Mar 2007 13:55:16 +0100	[thread overview]
Message-ID: <20070301135516.5e6b6b29.khali@linux-fr.org> (raw)

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>
---
 include/asm-alpha/scatterlist.h     |    1 +
 include/asm-avr32/scatterlist.h     |    2 ++
 include/asm-frv/scatterlist.h       |    2 ++
 include/asm-h8300/scatterlist.h     |    2 ++
 include/asm-i386/scatterlist.h      |    2 ++
 include/asm-ia64/scatterlist.h      |    2 ++
 include/asm-m32r/scatterlist.h      |    2 ++
 include/asm-m68knommu/scatterlist.h |    1 +
 include/asm-mips/scatterlist.h      |    2 ++
 include/asm-parisc/scatterlist.h    |    1 +
 include/asm-sh/scatterlist.h        |    2 ++
 include/asm-sh64/scatterlist.h      |    2 ++
 include/asm-sparc64/scatterlist.h   |    1 +
 include/asm-v850/scatterlist.h      |    2 ++
 include/asm-x86_64/scatterlist.h    |    2 ++
 include/asm-xtensa/scatterlist.h    |    2 ++
 16 files changed, 28 insertions(+)

--- linux-2.6.21-rc2.orig/include/asm-x86_64/scatterlist.h	2007-02-04 19:44:54.000000000 +0100
+++ linux-2.6.21-rc2/include/asm-x86_64/scatterlist.h	2007-03-01 11:34:51.000000000 +0100
@@ -1,6 +1,8 @@
 #ifndef _X8664_SCATTERLIST_H
 #define _X8664_SCATTERLIST_H
 
+#include <asm/types.h>
+
 struct scatterlist {
     struct page		*page;
     unsigned int	offset;
--- linux-2.6.21-rc2.orig/include/asm-alpha/scatterlist.h	2007-02-04 19:44:54.000000000 +0100
+++ linux-2.6.21-rc2/include/asm-alpha/scatterlist.h	2007-03-01 11:31:49.000000000 +0100
@@ -2,6 +2,7 @@
 #define _ALPHA_SCATTERLIST_H
 
 #include <asm/page.h>
+#include <asm/types.h>
   
 struct scatterlist {
 	struct page *page;
--- linux-2.6.21-rc2.orig/include/asm-avr32/scatterlist.h	2007-02-04 19:44:54.000000000 +0100
+++ linux-2.6.21-rc2/include/asm-avr32/scatterlist.h	2007-03-01 11:31:59.000000000 +0100
@@ -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;
--- linux-2.6.21-rc2.orig/include/asm-frv/scatterlist.h	2007-02-04 19:44:54.000000000 +0100
+++ linux-2.6.21-rc2/include/asm-frv/scatterlist.h	2007-03-01 11:32:29.000000000 +0100
@@ -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.
--- linux-2.6.21-rc2.orig/include/asm-h8300/scatterlist.h	2007-02-04 19:44:54.000000000 +0100
+++ linux-2.6.21-rc2/include/asm-h8300/scatterlist.h	2007-03-01 11:32:34.000000000 +0100
@@ -1,6 +1,8 @@
 #ifndef _H8300_SCATTERLIST_H
 #define _H8300_SCATTERLIST_H
 
+#include <asm/types.h>
+
 struct scatterlist {
 	struct page	*page;
 	unsigned int	offset;
--- linux-2.6.21-rc2.orig/include/asm-i386/scatterlist.h	2007-03-01 11:27:39.000000000 +0100
+++ linux-2.6.21-rc2/include/asm-i386/scatterlist.h	2007-03-01 11:32:38.000000000 +0100
@@ -1,6 +1,8 @@
 #ifndef _I386_SCATTERLIST_H
 #define _I386_SCATTERLIST_H
 
+#include <asm/types.h>
+
 struct scatterlist {
     struct page		*page;
     unsigned int	offset;
--- linux-2.6.21-rc2.orig/include/asm-ia64/scatterlist.h	2007-02-04 19:44:54.000000000 +0100
+++ linux-2.6.21-rc2/include/asm-ia64/scatterlist.h	2007-03-01 11:33:08.000000000 +0100
@@ -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;
--- linux-2.6.21-rc2.orig/include/asm-m32r/scatterlist.h	2007-02-21 08:36:27.000000000 +0100
+++ linux-2.6.21-rc2/include/asm-m32r/scatterlist.h	2007-03-01 11:33:15.000000000 +0100
@@ -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 */
--- linux-2.6.21-rc2.orig/include/asm-m68knommu/scatterlist.h	2007-02-04 19:44:54.000000000 +0100
+++ linux-2.6.21-rc2/include/asm-m68knommu/scatterlist.h	2007-03-01 11:33:31.000000000 +0100
@@ -2,6 +2,7 @@
 #define _M68KNOMMU_SCATTERLIST_H
 
 #include <linux/mm.h>
+#include <asm/types.h>
 
 struct scatterlist {
 	struct page	*page;
--- linux-2.6.21-rc2.orig/include/asm-mips/scatterlist.h	2007-02-04 19:44:54.000000000 +0100
+++ linux-2.6.21-rc2/include/asm-mips/scatterlist.h	2007-03-01 11:33:39.000000000 +0100
@@ -1,6 +1,8 @@
 #ifndef __ASM_SCATTERLIST_H
 #define __ASM_SCATTERLIST_H
 
+#include <asm/types.h>
+
 struct scatterlist {
 	struct page *	page;
 	unsigned int	offset;
--- linux-2.6.21-rc2.orig/include/asm-parisc/scatterlist.h	2007-02-04 19:44:54.000000000 +0100
+++ linux-2.6.21-rc2/include/asm-parisc/scatterlist.h	2007-03-01 11:33:47.000000000 +0100
@@ -2,6 +2,7 @@
 #define _ASM_PARISC_SCATTERLIST_H
 
 #include <asm/page.h>
+#include <asm/types.h>
 
 struct scatterlist {
 	struct page *page;
--- linux-2.6.21-rc2.orig/include/asm-sh/scatterlist.h	2007-02-04 19:44:54.000000000 +0100
+++ linux-2.6.21-rc2/include/asm-sh/scatterlist.h	2007-03-01 11:34:09.000000000 +0100
@@ -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 */
--- linux-2.6.21-rc2.orig/include/asm-sh64/scatterlist.h	2007-02-04 19:44:54.000000000 +0100
+++ linux-2.6.21-rc2/include/asm-sh64/scatterlist.h	2007-03-01 11:34:15.000000000 +0100
@@ -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 */
--- linux-2.6.21-rc2.orig/include/asm-sparc64/scatterlist.h	2007-02-04 19:44:54.000000000 +0100
+++ linux-2.6.21-rc2/include/asm-sparc64/scatterlist.h	2007-03-01 11:34:35.000000000 +0100
@@ -3,6 +3,7 @@
 #define _SPARC64_SCATTERLIST_H
 
 #include <asm/page.h>
+#include <asm/types.h>
 
 struct scatterlist {
 	struct page	*page;
--- linux-2.6.21-rc2.orig/include/asm-v850/scatterlist.h	2007-02-04 19:44:54.000000000 +0100
+++ linux-2.6.21-rc2/include/asm-v850/scatterlist.h	2007-03-01 11:34:44.000000000 +0100
@@ -14,6 +14,8 @@
 #ifndef __V850_SCATTERLIST_H__
 #define __V850_SCATTERLIST_H__
 
+#include <asm/types.h>
+
 struct scatterlist {
 	struct page	*page;
 	unsigned	offset;
--- linux-2.6.21-rc2.orig/include/asm-xtensa/scatterlist.h	2007-02-04 19:44:54.000000000 +0100
+++ linux-2.6.21-rc2/include/asm-xtensa/scatterlist.h	2007-03-01 11:34:56.000000000 +0100
@@ -11,6 +11,8 @@
 #ifndef _XTENSA_SCATTERLIST_H
 #define _XTENSA_SCATTERLIST_H
 
+#include <asm/types.h>
+
 struct scatterlist {
 	struct page 	*page;
 	unsigned int	offset;


-- 
Jean Delvare

             reply	other threads:[~2007-03-01 12:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-01 12:55 Jean Delvare [this message]
2007-03-02  0:11 ` Andrew Morton
2007-03-02  6:54   ` Jean Delvare

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070301135516.5e6b6b29.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: [PATCH] scatterlist.h needs types.h' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).