* [2.6 patch] net/core/user_dma.c should #include <net/netdma.h>
@ 2006-07-15 0:36 Adrian Bunk
2006-07-18 20:30 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2006-07-15 0:36 UTC (permalink / raw)
To: Chris Leech; +Cc: linux-kernel, netdev
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>
---
include/net/netdma.h | 2 +-
net/core/user_dma.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
--- linux-2.6.18-rc1-mm2-full/include/net/netdma.h.old 2006-07-15 00:52:38.000000000 +0200
+++ linux-2.6.18-rc1-mm2-full/include/net/netdma.h 2006-07-15 00:52:43.000000000 +0200
@@ -37,7 +37,7 @@
}
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 */
--- linux-2.6.18-rc1-mm2-full/net/core/user_dma.c.old 2006-07-14 21:59:37.000000000 +0200
+++ linux-2.6.18-rc1-mm2-full/net/core/user_dma.c 2006-07-14 21:59:50.000000000 +0200
@@ -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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-07-18 20:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-15 0:36 [2.6 patch] net/core/user_dma.c should #include <net/netdma.h> Adrian Bunk
2006-07-18 20:30 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).