* [PATCH]: jme: Fix warnings with CONFIG_PM disabled.
@ 2008-10-09 2:55 David Miller
2008-10-09 5:07 ` Guo-Fu Tseng
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: David Miller @ 2008-10-09 2:55 UTC (permalink / raw)
To: cooldavid; +Cc: netdev
I just added the following warning fix to net-next-2.6
jme: Fix warnings with CONFIG_PM disabled.
drivers/net/jme.c:1598: warning: ‘jme_set_100m_half’ defined but not used
drivers/net/jme.c:1618: warning: ‘jme_wait_link’ defined but not used
Signed-off-by: David S. Miller <davem@davemloft.net>
---
drivers/net/jme.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/net/jme.c b/drivers/net/jme.c
index 3ab2442..5f9a131 100644
--- a/drivers/net/jme.c
+++ b/drivers/net/jme.c
@@ -1593,6 +1593,7 @@ err_out:
return rc;
}
+#ifdef CONFIG_PM
static void
jme_set_100m_half(struct jme_adapter *jme)
{
@@ -1625,6 +1626,7 @@ jme_wait_link(struct jme_adapter *jme)
phylink = jme_linkstat_from_phy(jme);
}
}
+#endif
static inline void
jme_phy_off(struct jme_adapter *jme)
@@ -2912,6 +2914,7 @@ jme_remove_one(struct pci_dev *pdev)
}
+#ifdef CONFIG_PM
static int
jme_suspend(struct pci_dev *pdev, pm_message_t state)
{
@@ -2991,6 +2994,7 @@ jme_resume(struct pci_dev *pdev)
return 0;
}
+#endif
static struct pci_device_id jme_pci_tbl[] = {
{ PCI_VDEVICE(JMICRON, PCI_DEVICE_ID_JMICRON_JMC250) },
--
1.5.6.5
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH]: jme: Fix warnings with CONFIG_PM disabled.
2008-10-09 2:55 [PATCH]: jme: Fix warnings with CONFIG_PM disabled David Miller
@ 2008-10-09 5:07 ` Guo-Fu Tseng
2008-10-10 3:08 ` [PATCH net-next-2.6] nf_conntrack_ecache.h: Fix missing braces Guo-Fu Tseng
2008-10-10 3:21 ` [PATCH net-next-2.6]: tcpv6: fix error with CONFIG_TCP_MD5SIG disabled Guo-Fu Tseng
2 siblings, 0 replies; 8+ messages in thread
From: Guo-Fu Tseng @ 2008-10-09 5:07 UTC (permalink / raw)
To: David Miller; +Cc: netdev
Got it, sorry for mistake.
Thank you for super fast applying the patches.
--
Guo-Fu Tseng
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH net-next-2.6] nf_conntrack_ecache.h: Fix missing braces
2008-10-09 2:55 [PATCH]: jme: Fix warnings with CONFIG_PM disabled David Miller
2008-10-09 5:07 ` Guo-Fu Tseng
@ 2008-10-10 3:08 ` Guo-Fu Tseng
2008-10-10 4:10 ` David Miller
2008-10-10 3:21 ` [PATCH net-next-2.6]: tcpv6: fix error with CONFIG_TCP_MD5SIG disabled Guo-Fu Tseng
2 siblings, 1 reply; 8+ messages in thread
From: Guo-Fu Tseng @ 2008-10-10 3:08 UTC (permalink / raw)
To: David Miller; +Cc: netdev
Hi David:
This patch add missing braces of today's net-next-2.6:
include/net/netfilter/nf_conntrack_ecache.h
The patch is also available at:
http://cooldavid.org/download/nf.net-next-2.6.20081010.patch
Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org>
diff --git a/include/net/netfilter/nf_conntrack_ecache.h
b/include/net/netfilter/nf_conntrack_ecache.h
index 35f814c..11480e6 100644
--- a/include/net/netfilter/nf_conntrack_ecache.h
+++ b/include/net/netfilter/nf_conntrack_ecache.h
@@ -74,6 +74,7 @@ static inline void nf_ct_event_cache_flush(struct net *net) {}
static inline int nf_conntrack_ecache_init(struct net *net)
{
return 0;
+}
static inline void nf_conntrack_ecache_fini(struct net *net)
{
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH net-next-2.6]: tcpv6: fix error with CONFIG_TCP_MD5SIG disabled
2008-10-09 2:55 [PATCH]: jme: Fix warnings with CONFIG_PM disabled David Miller
2008-10-09 5:07 ` Guo-Fu Tseng
2008-10-10 3:08 ` [PATCH net-next-2.6] nf_conntrack_ecache.h: Fix missing braces Guo-Fu Tseng
@ 2008-10-10 3:21 ` Guo-Fu Tseng
2008-10-10 4:12 ` David Miller
2008-10-10 12:05 ` Ilpo Järvinen
2 siblings, 2 replies; 8+ messages in thread
From: Guo-Fu Tseng @ 2008-10-10 3:21 UTC (permalink / raw)
To: David Miller; +Cc: netdev
Hi David:
This patch fix error with CONFIG_TCP_MD5SIG disabled.
The patch is also available at:
http://cooldavid.org/download/tcpv6.net-next-2.6.20081010.patch
Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org>
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 13c6514..e5310c9 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1036,9 +1036,7 @@ static void tcp_v6_send_reset(struct sock *sk, struct
sk_buff *skb)
{
struct tcphdr *th = tcp_hdr(skb);
u32 seq = 0, ack_seq = 0;
-#ifdef CONFIG_TCP_MD5SIG
- struct tcp_md5sig_key *key;
-#endif
+ struct tcp_md5sig_key *key = NULL;
if (th->rst)
return;
@@ -1049,8 +1047,6 @@ static void tcp_v6_send_reset(struct sock *sk, struct
sk_buff *skb)
#ifdef CONFIG_TCP_MD5SIG
if (sk)
key = tcp_v6_md5_do_lookup(sk, &ipv6_hdr(skb)->daddr);
- else
- key = NULL;
#endif
if (th->ack)
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH net-next-2.6]: tcpv6: fix error with CONFIG_TCP_MD5SIG disabled
2008-10-10 3:21 ` [PATCH net-next-2.6]: tcpv6: fix error with CONFIG_TCP_MD5SIG disabled Guo-Fu Tseng
@ 2008-10-10 4:12 ` David Miller
2008-10-10 17:06 ` Guo-Fu Tseng
2008-10-10 12:05 ` Ilpo Järvinen
1 sibling, 1 reply; 8+ messages in thread
From: David Miller @ 2008-10-10 4:12 UTC (permalink / raw)
To: cooldavid; +Cc: netdev
From: "Guo-Fu Tseng" <cooldavid@cooldavid.org>
Date: Fri, 10 Oct 2008 11:21:15 +0800
> Hi David:
>
> This patch fix error with CONFIG_TCP_MD5SIG disabled.
>
> The patch is also available at:
> http://cooldavid.org/download/tcpv6.net-next-2.6.20081010.patch
>
> Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org>
Applied but I had to fix the corruption your email client made to
the patch.
I know you provide the patch via URL here, but that is totally
inconvenient for me and I will not go to a web site to get a
patch when it should be conveniently available directly in my
inbox.
Thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH net-next-2.6]: tcpv6: fix error with CONFIG_TCP_MD5SIG disabled
2008-10-10 4:12 ` David Miller
@ 2008-10-10 17:06 ` Guo-Fu Tseng
0 siblings, 0 replies; 8+ messages in thread
From: Guo-Fu Tseng @ 2008-10-10 17:06 UTC (permalink / raw)
To: David Miller; +Cc: netdev
On Thu, 09 Oct 2008 21:12:46 -0700 (PDT), David Miller wrote
> From: "Guo-Fu Tseng" <cooldavid@cooldavid.org>
> Date: Fri, 10 Oct 2008 11:21:15 +0800
>
>
> Applied but I had to fix the corruption your email client made to
> the patch.
>
> I know you provide the patch via URL here, but that is totally
> inconvenient for me and I will not go to a web site to get a
> patch when it should be conveniently available directly in my
> inbox.
>
I noticed that too, I'll be more careful next time.
Sorry for the inconvenience.
Guo-Fu Tseng
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH net-next-2.6]: tcpv6: fix error with CONFIG_TCP_MD5SIG disabled
2008-10-10 3:21 ` [PATCH net-next-2.6]: tcpv6: fix error with CONFIG_TCP_MD5SIG disabled Guo-Fu Tseng
2008-10-10 4:12 ` David Miller
@ 2008-10-10 12:05 ` Ilpo Järvinen
1 sibling, 0 replies; 8+ messages in thread
From: Ilpo Järvinen @ 2008-10-10 12:05 UTC (permalink / raw)
To: Guo-Fu Tseng; +Cc: David Miller, Netdev
On Fri, 10 Oct 2008, Guo-Fu Tseng wrote:
> This patch fix error with CONFIG_TCP_MD5SIG disabled.
Thanks for the fix, I realized (just before falling a sleep) that this
would happen after my changes...
--
i.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-10-10 17:06 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-09 2:55 [PATCH]: jme: Fix warnings with CONFIG_PM disabled David Miller
2008-10-09 5:07 ` Guo-Fu Tseng
2008-10-10 3:08 ` [PATCH net-next-2.6] nf_conntrack_ecache.h: Fix missing braces Guo-Fu Tseng
2008-10-10 4:10 ` David Miller
2008-10-10 3:21 ` [PATCH net-next-2.6]: tcpv6: fix error with CONFIG_TCP_MD5SIG disabled Guo-Fu Tseng
2008-10-10 4:12 ` David Miller
2008-10-10 17:06 ` Guo-Fu Tseng
2008-10-10 12:05 ` Ilpo Järvinen
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).