[I/OAT]: net/core/user_dma.c should #include <net/netdma.h>
authorAdrian Bunk <bunk@stusta.de>
Fri, 21 Jul 2006 21:49:49 +0000 (14:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Jul 2006 21:49:49 +0000 (14:49 -0700)
Every file should #include the headers containing the prototypes for
its global functions.

Especially in cases like this one where gcc can tell us through a
compile error that the prototype was wrong...

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netdma.h
net/core/user_dma.c

index 19760eb131aabefecc043ee5e50d224221ff504f..ceae5ee85c0490178041aa9705944094e6e188cb 100644 (file)
@@ -37,7 +37,7 @@ static inline struct dma_chan *get_softnet_dma(void)
 }
 
 int dma_skb_copy_datagram_iovec(struct dma_chan* chan,
-               const struct sk_buff *skb, int offset, struct iovec *to,
+               struct sk_buff *skb, int offset, struct iovec *to,
                size_t len, struct dma_pinned_list *pinned_list);
 
 #endif /* CONFIG_NET_DMA */
index b7c98dbcdb81102ccd50e0d3f354294eae6c6919..248a6b666aff396233020e46ea56a9d2d14d8885 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/socket.h>
 #include <linux/rtnetlink.h> /* for BUG_TRAP */
 #include <net/tcp.h>
+#include <net/netdma.h>
 
 #define NET_DMA_DEFAULT_COPYBREAK 4096
 
This page took 0.028944 seconds and 5 git commands to generate.