Skip to content

Commit 64d2f08

Browse files
AdrianBunkdavem330
authored andcommitted
[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: Adrian Bunk <bunk@stusta.de> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent dc022a9 commit 64d2f08

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎include/net/netdma.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static inline struct dma_chan *get_softnet_dma(void)
3737
}
3838

3939
int dma_skb_copy_datagram_iovec(struct dma_chan* chan,
40-
const struct sk_buff *skb, int offset, struct iovec *to,
40+
struct sk_buff *skb, int offset, struct iovec *to,
4141
size_t len, struct dma_pinned_list *pinned_list);
4242

4343
#endif /* CONFIG_NET_DMA */

‎net/core/user_dma.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <linux/socket.h>
3030
#include <linux/rtnetlink.h> /* for BUG_TRAP */
3131
#include <net/tcp.h>
32+
#include <net/netdma.h>
3233

3334
#define NET_DMA_DEFAULT_COPYBREAK 4096
3435

0 commit comments

Comments
 (0)