Skip to content

Commit

Permalink
[I/OAT]: net/core/user_dma.c should #include <net/netdma.h>
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Jul 21, 2006
1 parent dc022a9 commit 64d2f08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/netdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
1 change: 1 addition & 0 deletions net/core/user_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 64d2f08

Please sign in to comment.