提交 64d2f085 编写于 作者: A Adrian Bunk 提交者: David S. Miller

[I/OAT]: net/core/user_dma.c should #include <net/netdma.h>

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: NAdrian Bunk <bunk@stusta.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 dc022a98
...@@ -37,7 +37,7 @@ static inline struct dma_chan *get_softnet_dma(void) ...@@ -37,7 +37,7 @@ static inline struct dma_chan *get_softnet_dma(void)
} }
int dma_skb_copy_datagram_iovec(struct dma_chan* chan, 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); size_t len, struct dma_pinned_list *pinned_list);
#endif /* CONFIG_NET_DMA */ #endif /* CONFIG_NET_DMA */
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <linux/socket.h> #include <linux/socket.h>
#include <linux/rtnetlink.h> /* for BUG_TRAP */ #include <linux/rtnetlink.h> /* for BUG_TRAP */
#include <net/tcp.h> #include <net/tcp.h>
#include <net/netdma.h>
#define NET_DMA_DEFAULT_COPYBREAK 4096 #define NET_DMA_DEFAULT_COPYBREAK 4096
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册