* [PATCH] 2.6.27-git2 - fix build error at csum_ipv6_magic()
@ 2008-10-13 12:14 Kamalesh Babulal
2008-10-13 19:28 ` Guo-Fu Tseng
2008-10-13 23:09 ` Ron Mercer
0 siblings, 2 replies; 5+ messages in thread
From: Kamalesh Babulal @ 2008-10-13 12:14 UTC (permalink / raw)
To: linux-kernel; +Cc: jgarzik, apw, scofeldm, ron.mercer, cooldavid
Hi,
2.6.27-git2 kernel build fails with allyesconfig on powerpc with
build error
<introduced by commit 01f2e4ead2c51226ed1283ef6a8388ca6f4cff8f>
CC drivers/net/enic/enic_main.o
drivers/net/enic/enic_main.c: In function âenic_queue_wq_skb_tsoâ:
drivers/net/enic/enic_main.c:576: error: implicit declaration of function âcsum_ipv6_magicâ
make[3]: *** [drivers/net/enic/enic_main.o] Error 1
<introduced by commit c4e84bde1d595d857d3c74b49b9c45cc770df792>
drivers/net/qlge/qlge_main.c: In function âql_tsoâ:
drivers/net/qlge/qlge_main.c:1862: error: implicit declaration of function âcsum_ipv6_magicâ
make[3]: *** [drivers/net/qlge/qlge_main.o] Error 1
<introduced by commit 95252236e73e789dd186ce796a2abc60b3a61ebe>
drivers/net/jme.c: In function âjme_tx_tsoâ:
drivers/net/jme.c:1784: error: implicit declaration of function âcsum_ipv6_magicâ
make[2]: *** [drivers/net/jme.o] Error 1
The patch is build tested only.
Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
---
drivers/net/enic/enic_main.c | 1 +
drivers/net/jme.c | 1 +
drivers/net/qlge/qlge_main.c | 1 +
3 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
index f3a47a8..180e968 100644
--- a/drivers/net/enic/enic_main.c
+++ b/drivers/net/enic/enic_main.c
@@ -34,6 +34,7 @@
#include <linux/ip.h>
#include <linux/ipv6.h>
#include <linux/tcp.h>
+#include <net/ip6_checksum.h>
#include "cq_enet_desc.h"
#include "vnic_dev.h"
diff --git a/drivers/net/jme.c b/drivers/net/jme.c
index 5f9a131..d86e809 100644
--- a/drivers/net/jme.c
+++ b/drivers/net/jme.c
@@ -38,6 +38,7 @@
#include <linux/tcp.h>
#include <linux/udp.h>
#include <linux/if_vlan.h>
+#include <net/ip6_checksum.h>
#include "jme.h"
static int force_pseudohp = -1;
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
index 3af822b..6675723 100644
--- a/drivers/net/qlge/qlge_main.c
+++ b/drivers/net/qlge/qlge_main.c
@@ -40,6 +40,7 @@
#include <linux/delay.h>
#include <linux/mm.h>
#include <linux/vmalloc.h>
+#include <net/ip6_checksum.h>
#include "qlge.h"
--
Thanks & Regards,
Kamalesh Babulal,
Linux Technology Center,
IBM, ISTL.
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] 2.6.27-git2 - fix build error at csum_ipv6_magic()
2008-10-13 12:14 [PATCH] 2.6.27-git2 - fix build error at csum_ipv6_magic() Kamalesh Babulal
@ 2008-10-13 19:28 ` Guo-Fu Tseng
2008-10-14 1:40 ` David Miller
2008-10-13 23:09 ` Ron Mercer
1 sibling, 1 reply; 5+ messages in thread
From: Guo-Fu Tseng @ 2008-10-13 19:28 UTC (permalink / raw)
To: Kamalesh Babulal, linux-kernel; +Cc: apw, jgarzik, ron.mercer, scofeldm
On Mon, 13 Oct 2008 17:44:41 +0530, Kamalesh Babulal wrote
> Hi,
> 2.6.27-git2 kernel build fails with allyesconfig on powerpc with
> build error
>
> <introduced by commit 01f2e4ead2c51226ed1283ef6a8388ca6f4cff8f>
>
> CC drivers/net/enic/enic_main.o
> drivers/net/enic/enic_main.c: In function `nic_queue_wq_skb_tso`:
> drivers/net/enic/enic_main.c:576: error: implicit declaration of function `sum_ipv6_magic`
> make[3]: *** [drivers/net/enic/enic_main.o] Error 1
>
> <introduced by commit c4e84bde1d595d857d3c74b49b9c45cc770df792>
>
> drivers/net/qlge/qlge_main.c: In function `l_tso`:
> drivers/net/qlge/qlge_main.c:1862: error: implicit declaration of function `sum_ipv6_magic`
> make[3]: *** [drivers/net/qlge/qlge_main.o] Error 1
>
> <introduced by commit 95252236e73e789dd186ce796a2abc60b3a61ebe>
>
> drivers/net/jme.c: In function `me_tx_tso`:
> drivers/net/jme.c:1784: error: implicit declaration of function `sum_ipv6_magic`
> make[2]: *** [drivers/net/jme.o] Error 1
>
> The patch is build tested only.
>
> Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
> ---
Thank you Kamalesh.
But since <net/ip6_checksum.h> compensate the lack of
`csum_ipv6_magic` function defined in <asm/checksum.h>
of some architecture, should <net/ip6_checksum.h> be
included in <net/checksum.h> as well?
BTW, if there is a patch against jme driver which I maintain,
and I just simply agree with it, should I silently noticed that
and let someone like Jeff or David to review/apply it,
or should I reply an ack of it?
Guo-Fu Tseng
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] 2.6.27-git2 - fix build error at csum_ipv6_magic()
2008-10-13 12:14 [PATCH] 2.6.27-git2 - fix build error at csum_ipv6_magic() Kamalesh Babulal
2008-10-13 19:28 ` Guo-Fu Tseng
@ 2008-10-13 23:09 ` Ron Mercer
2008-10-14 1:41 ` David Miller
1 sibling, 1 reply; 5+ messages in thread
From: Ron Mercer @ 2008-10-13 23:09 UTC (permalink / raw)
To: Kamalesh Babulal; +Cc: linux-kernel, jgarzik, apw, scofeldm, cooldavid
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
for qlge:
Thanks Kamalesh
On Mon, Oct 13, 2008 at 05:44:41PM +0530, Kamalesh Babulal wrote:
> Hi,
> 2.6.27-git2 kernel build fails with allyesconfig on powerpc with
> build error
>
> <introduced by commit 01f2e4ead2c51226ed1283ef6a8388ca6f4cff8f>
>
> CC drivers/net/enic/enic_main.o
> drivers/net/enic/enic_main.c: In function âenic_queue_wq_skb_tsoâ:
> drivers/net/enic/enic_main.c:576: error: implicit declaration of function âcsum_ipv6_magicâ
> make[3]: *** [drivers/net/enic/enic_main.o] Error 1
>
> <introduced by commit c4e84bde1d595d857d3c74b49b9c45cc770df792>
>
> drivers/net/qlge/qlge_main.c: In function âql_tsoâ:
> drivers/net/qlge/qlge_main.c:1862: error: implicit declaration of function âcsum_ipv6_magicâ
> make[3]: *** [drivers/net/qlge/qlge_main.o] Error 1
>
> <introduced by commit 95252236e73e789dd186ce796a2abc60b3a61ebe>
>
> drivers/net/jme.c: In function âjme_tx_tsoâ:
> drivers/net/jme.c:1784: error: implicit declaration of function âcsum_ipv6_magicâ
> make[2]: *** [drivers/net/jme.o] Error 1
>
> The patch is build tested only.
>
> Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
> ---
> drivers/net/enic/enic_main.c | 1 +
> drivers/net/jme.c | 1 +
> drivers/net/qlge/qlge_main.c | 1 +
> 3 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
> index f3a47a8..180e968 100644
> --- a/drivers/net/enic/enic_main.c
> +++ b/drivers/net/enic/enic_main.c
> @@ -34,6 +34,7 @@
> #include <linux/ip.h>
> #include <linux/ipv6.h>
> #include <linux/tcp.h>
> +#include <net/ip6_checksum.h>
>
> #include "cq_enet_desc.h"
> #include "vnic_dev.h"
> diff --git a/drivers/net/jme.c b/drivers/net/jme.c
> index 5f9a131..d86e809 100644
> --- a/drivers/net/jme.c
> +++ b/drivers/net/jme.c
> @@ -38,6 +38,7 @@
> #include <linux/tcp.h>
> #include <linux/udp.h>
> #include <linux/if_vlan.h>
> +#include <net/ip6_checksum.h>
> #include "jme.h"
>
> static int force_pseudohp = -1;
> diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
> index 3af822b..6675723 100644
> --- a/drivers/net/qlge/qlge_main.c
> +++ b/drivers/net/qlge/qlge_main.c
> @@ -40,6 +40,7 @@
> #include <linux/delay.h>
> #include <linux/mm.h>
> #include <linux/vmalloc.h>
> +#include <net/ip6_checksum.h>
>
> #include "qlge.h"
>
> --
> Thanks & Regards,
> Kamalesh Babulal,
> Linux Technology Center,
> IBM, ISTL.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] 2.6.27-git2 - fix build error at csum_ipv6_magic()
2008-10-13 19:28 ` Guo-Fu Tseng
@ 2008-10-14 1:40 ` David Miller
0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2008-10-14 1:40 UTC (permalink / raw)
To: cooldavid; +Cc: kamalesh, linux-kernel, apw, jgarzik, ron.mercer, scofeldm
From: "Guo-Fu Tseng" <cooldavid@cooldavid.org>
Date: Tue, 14 Oct 2008 03:28:14 +0800
> But since <net/ip6_checksum.h> compensate the lack of
> `csum_ipv6_magic` function defined in <asm/checksum.h>
> of some architecture, should <net/ip6_checksum.h> be
> included in <net/checksum.h> as well?
No, the standard convention is that if you need to call this
ipv6 checksumming routine you include net/ip6_checksum.h
From: "Guo-Fu Tseng" <cooldavid@cooldavid.org>
Date: Tue, 14 Oct 2008 03:28:14 +0800
> BTW, if there is a patch against jme driver which I maintain,
> and I just simply agree with it, should I silently noticed that
> and let someone like Jeff or David to review/apply it,
> or should I reply an ack of it?
You can ACK it and I usually apply patches like this directly.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] 2.6.27-git2 - fix build error at csum_ipv6_magic()
2008-10-13 23:09 ` Ron Mercer
@ 2008-10-14 1:41 ` David Miller
0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2008-10-14 1:41 UTC (permalink / raw)
To: ron.mercer; +Cc: kamalesh, linux-kernel, jgarzik, apw, scofeldm, cooldavid
From: Ron Mercer <ron.mercer@qlogic.com>
Date: Mon, 13 Oct 2008 16:09:57 -0700
> Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
I've applied Kamalesh's patch, thanks everyone.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-10-14 1:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-13 12:14 [PATCH] 2.6.27-git2 - fix build error at csum_ipv6_magic() Kamalesh Babulal
2008-10-13 19:28 ` Guo-Fu Tseng
2008-10-14 1:40 ` David Miller
2008-10-13 23:09 ` Ron Mercer
2008-10-14 1:41 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox