]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
net: remove mm.h inclusion from netdevice.h
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 16 Jun 2011 11:01:34 +0000 (11:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jun 2011 02:17:20 +0000 (19:17 -0700)
Remove linux/mm.h inclusion from netdevice.h -- it's unused (I've checked manually).

To prevent mm.h inclusion via other channels also extract "enum dma_data_direction"
definition into separate header. This tiny piece is what gluing netdevice.h with mm.h
via "netdevice.h => dmaengine.h => dma-mapping.h => scatterlist.h => mm.h".
Removal of mm.h from scatterlist.h was tried and was found not feasible
on most archs, so the link was cutoff earlier.

Hope people are OK with tiny include file.

Note, that mm_types.h is still dragged in, but it is a separate story.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
66 files changed:
arch/arm/mach-davinci/board-mityomapl138.c
arch/arm/mach-davinci/dm646x.c
arch/arm/mach-davinci/pm.c
arch/arm/mach-imx/dma-v1.c
arch/arm/mach-imx/mach-mx31_3ds.c
arch/arm/mach-iop13xx/setup.c
arch/arm/mach-mxs/devices/platform-auart.c
arch/arm/mach-mxs/devices/platform-dma.c
arch/arm/mach-mxs/devices/platform-fec.c
arch/arm/plat-mxc/devices/platform-fec.c
arch/arm/plat-mxc/devices/platform-fsl-usb2-udc.c
arch/arm/plat-mxc/devices/platform-imx-fb.c
arch/arm/plat-mxc/devices/platform-ipu-core.c
arch/arm/plat-mxc/devices/platform-mxc-ehci.c
arch/arm/plat-mxc/devices/platform-mxc-mmc.c
arch/arm/plat-nomadik/include/plat/ste_dma40.h
arch/x86/kernel/tboot.c
crypto/async_tx/raid6test.c
drivers/dma/coh901318.c
drivers/dma/dmaengine.c
drivers/dma/dmatest.c
drivers/dma/ipu/ipu_idmac.c
drivers/dma/ste_dma40.c
drivers/media/dvb/mantis/mantis_ca.c
drivers/media/dvb/mantis/mantis_evm.c
drivers/media/dvb/mantis/mantis_hif.c
drivers/media/dvb/mantis/mantis_ioc.c
drivers/media/dvb/mantis/mantis_pcmcia.c
drivers/media/dvb/mantis/mantis_uart.c
drivers/media/dvb/mantis/mantis_vp1034.c
drivers/mmc/host/tmio_mmc_dma.c
drivers/mtd/nand/atmel_nand.c
drivers/net/arm/ks8695net.c
drivers/net/bnx2x/bnx2x.h
drivers/net/can/janz-ican3.c
drivers/net/can/softing/softing_fw.c
drivers/net/can/softing/softing_main.c
drivers/net/ethoc.c
drivers/net/fec_mpc52xx.c
drivers/net/greth.c
drivers/net/irda/pxaficp_ir.c
drivers/net/ks8851_mll.c
drivers/net/sgiseeq.c
drivers/net/stmmac/dwmac1000_core.c
drivers/net/stmmac/dwmac1000_dma.c
drivers/net/stmmac/dwmac100_core.c
drivers/net/stmmac/dwmac100_dma.c
drivers/net/stmmac/stmmac_ethtool.c
drivers/net/stmmac/stmmac_mdio.c
drivers/net/usb/cdc-phonet.c
drivers/net/vxge/vxge-config.h
drivers/net/wireless/ath/ath5k/base.c
drivers/net/wireless/ath/ath9k/beacon.c
drivers/net/wireless/ath/ath9k/init.c
drivers/net/wireless/ath/ath9k/recv.c
drivers/net/wireless/ath/ath9k/xmit.c
drivers/staging/pohmelfs/crypto.c
drivers/tty/serial/ifx6x60.c
drivers/usb/gadget/f_phonet.c
include/crypto/if_alg.h
include/linux/dma-direction.h [new file with mode: 0644]
include/linux/dma-mapping.h
include/linux/dmaengine.h
include/linux/netdevice.h
net/sched/sch_netem.c
security/apparmor/lib.c

index 606a6f27ed6c20e4e38034c180e592a407e68eea..5f5d78308873b08584ae9123de0bca8f730d976b 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/spi/spi.h>
 #include <linux/spi/flash.h>
 
+#include <asm/io.h>
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
 #include <mach/common.h>
index 1e0f809644bbfd1df1dcda646ea968e6f5e71a29..e00d61e2efbe8b018be697a69a719d0034e4bdba 100644 (file)
@@ -8,6 +8,7 @@
  * is licensed "as is" without any warranty of any kind, whether express
  * or implied.
  */
+#include <linux/dma-mapping.h>
 #include <linux/init.h>
 #include <linux/clk.h>
 #include <linux/serial_8250.h>
index 1bd73a04be209d8ae951b3406bbda1e1556e8d34..04c49f7543ef0df4a30a52c5c862f623222a93cd 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <asm/cacheflush.h>
 #include <asm/delay.h>
+#include <asm/io.h>
 
 #include <mach/da8xx.h>
 #include <mach/sram.h>
index 236f1495efad092039a391089b34a6100f77e5f3..f8aa5be0eb150617599884145825995cd103bc3d 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/interrupt.h>
+#include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/clk.h>
 #include <linux/scatterlist.h>
index 9b982449cb520723a0ae68491cb8db86abe90ee6..b5ecc26d08a464ad575967d43b408971f8f139a9 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 #include <linux/delay.h>
+#include <linux/dma-mapping.h>
 #include <linux/types.h>
 #include <linux/init.h>
 #include <linux/clk.h>
index 5c147fb66a013f809dbc92a4180fb2e89f6d4f22..a5b989728b9e9e45bf35980283ed8a790e4ed588 100644 (file)
@@ -17,6 +17,7 @@
  *
  */
 
+#include <linux/dma-mapping.h>
 #include <linux/serial_8250.h>
 #include <linux/io.h>
 #ifdef CONFIG_MTD_PHYSMAP
index 796606cce0ce233e973d084b53ea7674fb625f28..27608f5d2ac8e063a902247b58e8673f80e7c47e 100644 (file)
@@ -6,6 +6,7 @@
  * the terms of the GNU General Public License version 2 as published by the
  * Free Software Foundation.
  */
+#include <linux/dma-mapping.h>
 #include <asm/sizes.h>
 #include <mach/mx23.h>
 #include <mach/mx28.h>
index 295c4424d5d96a15ae25398671d972aa66c6f5f5..6a0202b1016c7b287ccc04ea1d7e9e7c90116ee9 100644 (file)
@@ -6,6 +6,7 @@
  * Free Software Foundation.
  */
 #include <linux/compiler.h>
+#include <linux/dma-mapping.h>
 #include <linux/err.h>
 #include <linux/init.h>
 
index 9859cf28333585bf5cb8ab18a48c5bac37b42c04..ae96a4fd8f14f3da31da730f1f36be3aa2af80b4 100644 (file)
@@ -6,6 +6,7 @@
  * the terms of the GNU General Public License version 2 as published by the
  * Free Software Foundation.
  */
+#include <linux/dma-mapping.h>
 #include <asm/sizes.h>
 #include <mach/mx28.h>
 #include <mach/devices-common.h>
index ccc789e21daa37d3cd9aaad812a964b6b726c095..4fc6ffc2a13e08590895ce2a3878a5c8b971a305 100644 (file)
@@ -6,6 +6,7 @@
  * the terms of the GNU General Public License version 2 as published by the
  * Free Software Foundation.
  */
+#include <linux/dma-mapping.h>
 #include <asm/sizes.h>
 #include <mach/hardware.h>
 #include <mach/devices-common.h>
index 59c33f6e401cd9f1507f6bb31fec6d975f8190af..23ce08e6ffd25d9bacb48b2698e2905c5a0350b3 100644 (file)
@@ -6,6 +6,7 @@
  * the terms of the GNU General Public License version 2 as published by the
  * Free Software Foundation.
  */
+#include <linux/dma-mapping.h>
 #include <mach/hardware.h>
 #include <mach/devices-common.h>
 
index 79a1cb18a5b0ebb0344aa19c1f054ddc00d5dfc6..2b0b5e0aa9989639286efb65de5adb9ecbcc704c 100644 (file)
@@ -6,6 +6,7 @@
  * the terms of the GNU General Public License version 2 as published by the
  * Free Software Foundation.
  */
+#include <linux/dma-mapping.h>
 #include <mach/hardware.h>
 #include <mach/devices-common.h>
 
index edf65034aea5b4956df4cf3e36badc6b223917bd..79d340ae0af134eb00431fab41b2a3f55770355a 100644 (file)
@@ -6,6 +6,7 @@
  * the terms of the GNU General Public License version 2 as published by the
  * Free Software Foundation.
  */
+#include <linux/dma-mapping.h>
 #include <mach/hardware.h>
 #include <mach/devices-common.h>
 
index cc488f4b6204ecfb780809e6ee1f3957bb9a07e2..e1763e03e7cb0b0a880a7d7f3e69e2ba3444f14b 100644 (file)
@@ -6,6 +6,7 @@
  * the terms of the GNU General Public License version 2 as published by the
  * Free Software Foundation.
  */
+#include <linux/dma-mapping.h>
 #include <mach/hardware.h>
 #include <mach/devices-common.h>
 
index 90d762f6f93b12069caa1ad59b4e1a705ac32f21..540d3a7d92dfaacf8fd82cbd745327c7d2e094a9 100644 (file)
@@ -6,6 +6,7 @@
  * the terms of the GNU General Public License version 2 as published by the
  * Free Software Foundation.
  */
+#include <linux/dma-mapping.h>
 #include <mach/hardware.h>
 #include <mach/devices-common.h>
 
index c44886062f8ed7673884e2402422e9443c7bab99..685c78716d95234d1cb955b69d23a0bd929d107b 100644 (file)
@@ -10,6 +10,7 @@
 #define STE_DMA40_H
 
 #include <linux/dmaengine.h>
+#include <linux/scatterlist.h>
 #include <linux/workqueue.h>
 #include <linux/interrupt.h>
 
index 30ac65df7d4eeaa956777c53e2846997cdd59464..e07a2fc876b93e36a91ee551e47c4ef3568811cd 100644 (file)
@@ -36,6 +36,7 @@
 #include <asm/bootparam.h>
 #include <asm/pgtable.h>
 #include <asm/pgalloc.h>
+#include <asm/swiotlb.h>
 #include <asm/fixmap.h>
 #include <asm/proto.h>
 #include <asm/setup.h>
index c1321935ebcc587f31e991c6a0c917986164102e..c88ff9e3fd30ec0c07c00b3e59917f6b36031363 100644 (file)
@@ -21,6 +21,7 @@
  */
 #include <linux/async_tx.h>
 #include <linux/gfp.h>
+#include <linux/mm.h>
 #include <linux/random.h>
 
 #undef pr
index af8c0b5ed70f0a8257756abdca44a7d014ed3b72..a92d95eac86b204fcb62dd1dafbe8a7150957807 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/module.h>
 #include <linux/kernel.h> /* printk() */
 #include <linux/fs.h> /* everything... */
+#include <linux/scatterlist.h>
 #include <linux/slab.h> /* kmalloc() */
 #include <linux/dmaengine.h>
 #include <linux/platform_device.h>
index 8bcb15fb959d1e3de64e79a5e90300c105d62ad3..48694c34d96bd95fe90ebf5eb377877c3851817a 100644 (file)
@@ -45,6 +45,7 @@
  * See Documentation/dmaengine.txt for more details
  */
 
+#include <linux/dma-mapping.h>
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/mm.h>
index b4f5c32b6a470f1a0d12c746fdbf3a7fcc9596a7..765f5ff22304348aa629b5857a02397f93dea8ce 100644 (file)
@@ -8,6 +8,7 @@
  * published by the Free Software Foundation.
  */
 #include <linux/delay.h>
+#include <linux/dma-mapping.h>
 #include <linux/dmaengine.h>
 #include <linux/init.h>
 #include <linux/kthread.h>
index c1a125e7d1dfde410f66c2ddf507839f2bc8c04e..fd7d2b308cf2119f53c83107f45d5283e0620322 100644 (file)
@@ -9,6 +9,7 @@
  * published by the Free Software Foundation.
  */
 
+#include <linux/dma-mapping.h>
 #include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/err.h>
index 8f222d4db7def301de14cf662988163d8a2b5bd0..29d1addbe0cf039ce9beb0bf7660022cbbda1e4e 100644 (file)
@@ -6,6 +6,7 @@
  * License terms: GNU General Public License (GPL) version 2
  */
 
+#include <linux/dma-mapping.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/dmaengine.h>
index 330216febd780652ae393d88b31fd9d1e05ebe27..3d70469090092af7a3d8f6145b8a753a0dfacf47 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/slab.h>
 #include <linux/sched.h>
 #include <linux/interrupt.h>
+#include <asm/io.h>
 
 #include "dmxdev.h"
 #include "dvbdev.h"
index 9f73c2cfc9eae18af23eeafdeb08b97c66409571..36f2256ebb0edac2505f534330882f499438a114 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/signal.h>
 #include <linux/sched.h>
 #include <linux/interrupt.h>
+#include <asm/io.h>
 
 #include "dmxdev.h"
 #include "dvbdev.h"
index 5772ebb3a69ed9ba494a0a043ca1f7582ac65902..672cf4d2462d68001a537e92f5a6646c141e7272 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/sched.h>
 
 #include <linux/interrupt.h>
+#include <asm/io.h>
 
 #include "dmxdev.h"
 #include "dvbdev.h"
index 479086dbb9a83a1891b282d4ba93adc5ff17b7c1..24fcdc63d6d55ae8cd853f886ee96247ebe08746 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/signal.h>
 #include <linux/sched.h>
 #include <linux/interrupt.h>
+#include <asm/io.h>
 
 #include "dmxdev.h"
 #include "dvbdev.h"
index 5cb545b913f6f7e6b85a46e1b5e457a17b83f6c0..2f188c089666c1988817b7ef35065a1d210cba90 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/signal.h>
 #include <linux/sched.h>
 #include <linux/interrupt.h>
+#include <asm/io.h>
 
 #include "dmxdev.h"
 #include "dvbdev.h"
index f807c8ba26e4828298ec53d50a9a38dbac198b2c..18340dafa426f3264c78688a0b3979f2972f1cf4 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <linux/kernel.h>
 #include <linux/spinlock.h>
+#include <asm/io.h>
 
 #include <linux/signal.h>
 #include <linux/sched.h>
index 26bc0cbe84d45596b5ffacface72e0669367b98d..430ae84ce528dd99545b061929928233950dc845 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/signal.h>
 #include <linux/sched.h>
 #include <linux/interrupt.h>
+#include <asm/io.h>
 
 #include "dmxdev.h"
 #include "dvbdev.h"
index 25f1ad6cbe098a9d4cd2b270423eade6d6cb4326..bf12513d62979024045b7f50996140b43f3010d4 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <linux/device.h>
+#include <linux/dma-mapping.h>
 #include <linux/dmaengine.h>
 #include <linux/mfd/tmio.h>
 #include <linux/mmc/host.h>
index b300705d41cb67ce432023f003b2ee63904d59ab..1b90fd56bef113625f729013c5d81ff0d28b0660 100644 (file)
@@ -22,6 +22,7 @@
  *
  */
 
+#include <linux/dma-mapping.h>
 #include <linux/slab.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
index bb62b3f51837c5307faacbaf3665e64457215f70..c827a6097d024fda867cfff7365ea4da2ff31bc2 100644 (file)
@@ -16,6 +16,7 @@
  *               Vincent Sanders <vince@simtec.co.uk>
  */
 
+#include <linux/dma-mapping.h>
 #include <linux/module.h>
 #include <linux/ioport.h>
 #include <linux/netdevice.h>
index 69fc7280be303ecbb6d03dc837495beb5e4f6118..eff78a439eeb519873e144130abfd25b1dc39c64 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef BNX2X_H
 #define BNX2X_H
 #include <linux/netdevice.h>
+#include <linux/dma-mapping.h>
 #include <linux/types.h>
 
 /* compilation time flags */
index f1942cab35f65cbc237cffe9c797690d7ad5b6ac..32778d56d3306e57d08d735925305e262bd074da 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/can/error.h>
 
 #include <linux/mfd/janz.h>
+#include <asm/io.h>
 
 /* the DPM has 64k of memory, organized into 256x 256 byte pages */
 #define DPM_NUM_PAGES          256
index b520784fb19716d1e48ba684d3fbc60a1fbd29d6..3105961756767cb3b52bc18bce8a248e7ef110b7 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/firmware.h>
 #include <linux/sched.h>
 #include <asm/div64.h>
+#include <asm/io.h>
 
 #include "softing.h"
 
index 60a49e5a2a53227338f9d94a27524c571a355d28..954b2959b6b23d594bb2ef72b2796cf701374d9a 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/interrupt.h>
+#include <asm/io.h>
 
 #include "softing.h"
 
index 0e8cc75bb5f41899d5736317225b83f61e16bd52..0da6295d9da67c2150bba47f4721abaf33422376 100644 (file)
@@ -11,6 +11,7 @@
  * Written by Thierry Reding <thierry.reding@avionic-design.de>
  */
 
+#include <linux/dma-mapping.h>
 #include <linux/etherdevice.h>
 #include <linux/crc32.h>
 #include <linux/interrupt.h>
index cecc3b1eb48688b6de2c997b143e7a269639fdd9..381bdea97d5f3dd78c7a88b0d0d80b4e60890777 100644 (file)
@@ -14,6 +14,7 @@
  *
  */
 
+#include <linux/dma-mapping.h>
 #include <linux/module.h>
 
 #include <linux/kernel.h>
index 69b86d7fac857ed14d4c82b630597ffb64280d20..82c3767ec5f8b5e937ca7cd13687fd1178220195 100644 (file)
@@ -22,6 +22,7 @@
  *               Marko Isomaki
  */
 
+#include <linux/dma-mapping.h>
 #include <linux/module.h>
 #include <linux/uaccess.h>
 #include <linux/init.h>
index b1d1ce3dd8b5728169d4344a8fc6513925fe986b..d0851dfa03780cd71a97633a5770ec2241baeb59 100644 (file)
@@ -12,6 +12,7 @@
  * Infra-red driver (SIR/FIR) for the PXA2xx embedded microprocessor
  *
  */
+#include <linux/dma-mapping.h>
 #include <linux/interrupt.h>
 #include <linux/module.h>
 #include <linux/netdevice.h>
index aefbdd896d6a813cd8fe4d3d0ba2e99d54f8f750..a82378231fc550cb9d6b3ab3c08486bd5c4f2b92 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/platform_device.h>
 #include <linux/delay.h>
 #include <linux/slab.h>
+#include <asm/io.h>
 
 #define        DRV_NAME        "ks8851_mll"
 
index 54415c7b84a234a8f2c55313dbd300d9e4dbd425..52fb7ed9f3654bc272dbf6a824e26d3f860841ff 100644 (file)
@@ -6,6 +6,7 @@
 
 #undef DEBUG
 
+#include <linux/dma-mapping.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
index f20455cbfbbcfb64daa8d021952fe27adbbcbad7..0f63b3c83c196c9cafefd7c0f8a386d5d044c759 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <linux/crc32.h>
 #include <linux/slab.h>
+#include <asm/io.h>
 #include "dwmac1000.h"
 
 static void dwmac1000_core_init(void __iomem *ioaddr)
index 2c47712d45d05cbe7ffddc792f62cf362e6c310c..3dbeea61908563e7261b455a6e333f6003cdfe3b 100644 (file)
@@ -26,6 +26,7 @@
   Author: Giuseppe Cavallaro <peppe.cavallaro@st.com>
 *******************************************************************************/
 
+#include <asm/io.h>
 #include "dwmac1000.h"
 #include "dwmac_dma.h"
 
index c724fc36a24fd696557c32afc87f0cdc6835ba0c..743a58017637b2cf6eaf05328cd6d8857b724a80 100644 (file)
@@ -29,6 +29,7 @@
 *******************************************************************************/
 
 #include <linux/crc32.h>
+#include <asm/io.h>
 #include "dwmac100.h"
 
 static void dwmac100_core_init(void __iomem *ioaddr)
index e3e224b7d9e23c6903a0f970ae4c7cd0c8491192..627f656b0f3c581bbb20a45084b7c1fd87a22194 100644 (file)
@@ -28,6 +28,7 @@
   Author: Giuseppe Cavallaro <peppe.cavallaro@st.com>
 *******************************************************************************/
 
+#include <asm/io.h>
 #include "dwmac100.h"
 #include "dwmac_dma.h"
 
index 720c5a1531bc2901716f5977b9aa502862f3bbb2..7ed8fb6c2117250e7c55ceb6eef9a009e3223dae 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/interrupt.h>
 #include <linux/mii.h>
 #include <linux/phy.h>
+#include <asm/io.h>
 
 #include "stmmac.h"
 #include "dwmac_dma.h"
index 234b4068a1fc79c3c44d29f9f753bdfe56e1ce81..29a6bb6b80589d8c6d1aea04d6f51174f6b15c2c 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/mii.h>
 #include <linux/phy.h>
 #include <linux/slab.h>
+#include <asm/io.h>
 
 #include "stmmac.h"
 
index f967913e11bc2b7becdcf6936f180d06f7dab6e1..a60d0069cc458c0f48e006ec7648e8a2daa24d2f 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #include <linux/kernel.h>
+#include <linux/mm.h>
 #include <linux/module.h>
 #include <linux/gfp.h>
 #include <linux/usb.h>
index 6219006d9d2ef9814bf8443baee736b9b5cb1452..dd362584f5ca8b725feb0ff1745bccc5403ea2f5 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/hardirq.h>
 #include <linux/list.h>
 #include <linux/slab.h>
+#include <asm/io.h>
 
 #ifndef VXGE_CACHE_LINE_SIZE
 #define VXGE_CACHE_LINE_SIZE 128
index b6c5d3715b963e73f6b962070f6e78256449d107..779a1d270243d54c2fd53e3aab2b322c1ba472b4 100644 (file)
@@ -42,6 +42,7 @@
 
 #include <linux/module.h>
 #include <linux/delay.h>
+#include <linux/dma-mapping.h>
 #include <linux/hardirq.h>
 #include <linux/if.h>
 #include <linux/io.h>
index 0174cdb65a838e9334848f999b721539a2d352f0..4c790b5f79374add8d8fd9ddcb5e595440567cd2 100644 (file)
@@ -14,6 +14,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <linux/dma-mapping.h>
 #include "ath9k.h"
 
 #define FUDGE 2
index d4b166cfdf6047935b6faad502ef59fae2f1d64a..1202bb0a55349fc7e64b97becf2be871941ab8dd 100644 (file)
@@ -14,6 +14,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <linux/dma-mapping.h>
 #include <linux/slab.h>
 #include <linux/ath9k_platform.h>
 
index 07e35e59c9e31fa8d9dbb1c6b086c4027e13e2c6..c4c5d9f455bbca23a0213b6c2795855e13444ef5 100644 (file)
@@ -14,6 +14,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <linux/dma-mapping.h>
 #include "ath9k.h"
 #include "ar9003_mac.h"
 
index ec012b4317afb1ccdf5ea4b7014ac7448094f38d..7e79bbaf2ba76bc2bc39548c1d61e2d95b3fd63b 100644 (file)
@@ -14,6 +14,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <linux/dma-mapping.h>
 #include "ath9k.h"
 #include "ar9003_mac.h"
 
index 5cca24fcf6caee8396f63e190c6f242252cb29cf..ad92771dce5713ee6958876bd460ce554e689c95 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/highmem.h>
 #include <linux/kthread.h>
 #include <linux/pagemap.h>
+#include <linux/scatterlist.h>
 #include <linux/slab.h>
 
 #include "netfs.h"
index 5315525220fb24370399e785bf73ad1bf3f150bb..426434e5eb7c0d9ef57b8a6f3aeb047ad5f94f1d 100644 (file)
@@ -36,6 +36,7 @@
  *     you need to use this driver for another platform.
  *
  *****************************************************************************/
+#include <linux/dma-mapping.h>
 #include <linux/module.h>
 #include <linux/termios.h>
 #include <linux/tty.h>
index 5e1495097ec3bf8ad892c0b653e869c2faed5ab9..f22fc685ddfd06464689b05b6be200e87358e0c9 100644 (file)
@@ -20,6 +20,7 @@
  * 02110-1301 USA
  */
 
+#include <linux/mm.h>
 #include <linux/slab.h>
 #include <linux/kernel.h>
 #include <linux/device.h>
index c5813c87de061e262c86d7123ccab0ea11fd5e93..d61c11170213f22dd95467959aed5596b1edc5a5 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/compiler.h>
 #include <linux/completion.h>
 #include <linux/if_alg.h>
+#include <linux/scatterlist.h>
 #include <linux/types.h>
 #include <net/sock.h>
 
diff --git a/include/linux/dma-direction.h b/include/linux/dma-direction.h
new file mode 100644 (file)
index 0000000..95b6a82
--- /dev/null
@@ -0,0 +1,13 @@
+#ifndef _LINUX_DMA_DIRECTION_H
+#define _LINUX_DMA_DIRECTION_H
+/*
+ * These definitions mirror those in pci.h, so they can be used
+ * interchangeably with their PCI_ counterparts.
+ */
+enum dma_data_direction {
+       DMA_BIDIRECTIONAL = 0,
+       DMA_TO_DEVICE = 1,
+       DMA_FROM_DEVICE = 2,
+       DMA_NONE = 3,
+};
+#endif
index ba8319ae5fcc3e75edc0d52240da0b16e18da68d..1a167c48d84d499fd827675eb7819dd173f94fc8 100644 (file)
@@ -4,17 +4,9 @@
 #include <linux/device.h>
 #include <linux/err.h>
 #include <linux/dma-attrs.h>
+#include <linux/dma-direction.h>
 #include <linux/scatterlist.h>
 
-/* These definitions mirror those in pci.h, so they can be used
- * interchangeably with their PCI_ counterparts */
-enum dma_data_direction {
-       DMA_BIDIRECTIONAL = 0,
-       DMA_TO_DEVICE = 1,
-       DMA_FROM_DEVICE = 2,
-       DMA_NONE = 3,
-};
-
 struct dma_map_ops {
        void* (*alloc_coherent)(struct device *dev, size_t size,
                                dma_addr_t *dma_handle, gfp_t gfp);
index eee7addec28269c2dabd3d6901941bcc7eeeecc4..8fbf40e0713cfc9a4dd7ec64bc66010a42afc644 100644 (file)
@@ -23,7 +23,9 @@
 
 #include <linux/device.h>
 #include <linux/uio.h>
-#include <linux/dma-mapping.h>
+#include <linux/dma-direction.h>
+
+struct scatterlist;
 
 /**
  * typedef dma_cookie_t - an opaque DMA cookie
index 22a8ceca0ed08b15bfbaad98924c46e8af06f0a7..011eb89e9582f29070a06e05a6bf64aeecf75c62 100644 (file)
@@ -34,7 +34,6 @@
 #include <linux/pm_qos_params.h>
 #include <linux/timer.h>
 #include <linux/delay.h>
-#include <linux/mm.h>
 #include <asm/atomic.h>
 #include <asm/cache.h>
 #include <asm/byteorder.h>
index 69c35f6cd13f329cab2d7442c626a31919fc122e..eb3b9a86c6ed93d502a4629f241a0d2496b01385 100644 (file)
@@ -13,6 +13,7 @@
  *             Catalin(ux aka Dino) BOIE <catab at umbrella dot ro>
  */
 
+#include <linux/mm.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/types.h>
index 506d2baf614797624fc4b9450c0d12c9f56e8ae4..b82e383beb77937b8b001bc5da67876cde0c4aba 100644 (file)
@@ -12,6 +12,7 @@
  * License.
  */
 
+#include <linux/mm.h>
 #include <linux/slab.h>
 #include <linux/string.h>
 #include <linux/vmalloc.h>