[PATCH] Fix breakage after SG cleanups
authorRalf Baechle <ralf@linux-mips.org>
Tue, 23 Oct 2007 18:42:11 +0000 (20:42 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 23 Oct 2007 19:02:39 +0000 (12:02 -0700)
Commits

  58b053e4ce9d2fc3023645c1b96e537c72aa8d9a ("Update arch/ to use sg helpers")
  45711f1af6eff1a6d010703b4862e0d2b9afd056 ("[SG] Update drivers to use sg helpers")
  fa05f1286be25a8ce915c5dd492aea61126b3f33 ("Update net/ to use sg helpers")

converted many files to use the scatter gather helpers without ensuring
that the necessary headerfile <linux/scatterlist> is included.  This
happened to work for ia64, powerpc, sparc64 and x86 because they
happened to drag in that file via their <asm/dma-mapping.h>.

On most of the others this probably broke.

Instead of increasing the header file spider web I choose to include
<linux/scatterlist.h> directly into the affectes files.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
12 files changed:
drivers/block/DAC960.c
drivers/block/cpqarray.c
drivers/block/sx8.c
drivers/ieee1394/dma.c
drivers/media/video/ivtv/ivtv-driver.h
drivers/media/video/videobuf-dma-sg.c
drivers/mmc/host/sdhci.c
drivers/usb/core/message.c
include/media/saa7146.h
net/ieee80211/ieee80211_crypt_tkip.c
net/ieee80211/ieee80211_crypt_wep.c
net/mac80211/wep.c

index 53505422867c55d5908c42abce1f2f2beb5e9970..9030c373ce675db9e671d49551f4b6d913a902e6 100644 (file)
@@ -44,6 +44,7 @@
 #include <linux/init.h>
 #include <linux/jiffies.h>
 #include <linux/random.h>
+#include <linux/scatterlist.h>
 #include <asm/io.h>
 #include <asm/uaccess.h>
 #include "DAC960.h"
index efab27fa108320a891a4f49220e9d1bcd514bd94..c8132d9587953dfcc851f7d6295a00d7f35cf5f1 100644 (file)
@@ -37,6 +37,7 @@
 #include <linux/spinlock.h>
 #include <linux/blkdev.h>
 #include <linux/genhd.h>
+#include <linux/scatterlist.h>
 #include <asm/uaccess.h>
 #include <asm/io.h>
 
index 282a69558e8aa6bf8355a3fc8a24f5ae32f66c28..52dc5e1317184ada37a8af3bc3a41e5a967626ab 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/hdreg.h>
 #include <linux/dma-mapping.h>
 #include <linux/completion.h>
+#include <linux/scatterlist.h>
 #include <asm/io.h>
 #include <asm/uaccess.h>
 
index 25e113b50d8672b0310036138125840365b12e97..3051e312fdc824733d837529461b13b27cbf587f 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/pci.h>
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
-#include <asm/scatterlist.h>
+#include <linux/scatterlist.h>
 
 #include "dma.h"
 
index 3bda1df63cb62d8c8567bb5690999b60b7f8bfd4..49ce14d14a54b69eeaa5f04ca200840030d1dad2 100644 (file)
@@ -51,6 +51,7 @@
 #include <linux/unistd.h>
 #include <linux/byteorder/swab.h>
 #include <linux/pagemap.h>
+#include <linux/scatterlist.h>
 #include <linux/workqueue.h>
 #include <linux/mutex.h>
 #include <asm/uaccess.h>
index 0a18286279d36ca24bc7b96d8d030ab7e1185574..9ab94a749d81ec813036e7bef8dc6d0ad35519d2 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/pci.h>
 #include <linux/vmalloc.h>
 #include <linux/pagemap.h>
+#include <linux/scatterlist.h>
 #include <asm/page.h>
 #include <asm/pgtable.h>
 
index 0db837e44b775a6068edccea3372eae845e80ab7..d7c5b94d8c583de00136f8c8f2e435347375b497 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/highmem.h>
 #include <linux/pci.h>
 #include <linux/dma-mapping.h>
+#include <linux/scatterlist.h>
 
 #include <linux/mmc/host.h>
 
index 90d64a808464d829c6c0771614c8c1d9f72d070c..8bdaa157ffe7dd7a6fe1276ef2a26544742e7197 100644 (file)
@@ -11,9 +11,9 @@
 #include <linux/timer.h>
 #include <linux/ctype.h>
 #include <linux/device.h>
+#include <linux/scatterlist.h>
 #include <linux/usb/quirks.h>
 #include <asm/byteorder.h>
-#include <asm/scatterlist.h>
 
 #include "hcd.h"       /* for usbcore internals */
 #include "usb.h"
index cd3ff2c29d5e04828dc6a7d5ddb1da5f7f83fe4c..88b2b5a619aaf21ebf98811d02df6c50ef7b8e50 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/io.h>            /* for accessing devices */
 #include <linux/stringify.h>
 #include <linux/mutex.h>
+#include <linux/scatterlist.h>
 
 #include <linux/vmalloc.h>     /* for vmalloc() */
 #include <linux/mm.h>          /* for vmalloc_to_page() */
index c796661a021bb2b617f2808d948a7a727b265a55..811777682e2b94ea876edab53ac5005d0ee63969 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/random.h>
+#include <linux/scatterlist.h>
 #include <linux/skbuff.h>
 #include <linux/netdevice.h>
 #include <linux/mm.h>
index 0af6103d715c4e0ebb8cb08463bed075a1ad1732..9693429489ed700f83d2cdc2fcae1ea043658f47 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/random.h>
+#include <linux/scatterlist.h>
 #include <linux/skbuff.h>
 #include <linux/mm.h>
 #include <asm/string.h>
index cc806d640f7af1f61462438ca50267df2c448e67..a84a23310ff4576116cab6dcb625f6e27bcb6ae4 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/crypto.h>
 #include <linux/err.h>
 #include <linux/mm.h>
-#include <asm/scatterlist.h>
+#include <linux/scatterlist.h>
 
 #include <net/mac80211.h>
 #include "ieee80211_i.h"