* avoid compiler warning when !CONFIG_SYSCTL in netfilter dccp
@ 2010-04-29 9:25 Mathieu Lacage
0 siblings, 0 replies; only message in thread
From: Mathieu Lacage @ 2010-04-29 9:25 UTC (permalink / raw)
To: netdev
[-- Attachment #1: Type: text/plain, Size: 333 bytes --]
The attached trivial patch (generated against davem/net-next-2.6 as of
this morning) avoids this compiler warning:
../src/process-manager/linux/net/netfilter/nf_conntrack_proto_dccp.c: In
function ‘dccp_net_exit’:
../src/process-manager/linux/net/netfilter/nf_conntrack_proto_dccp.c:845: error: unused variable ‘dn’
Mathieu
[-- Attachment #2: nf-dccp-sysctl.patch --]
[-- Type: text/x-patch, Size: 541 bytes --]
diff --git a/net/netfilter/nf_conntrack_proto_dccp.c b/net/netfilter/nf_conntrack_proto_dccp.c
index 5292560..cd078df 100644
--- a/net/netfilter/nf_conntrack_proto_dccp.c
+++ b/net/netfilter/nf_conntrack_proto_dccp.c
@@ -842,8 +842,8 @@ static __net_init int dccp_net_init(struct net *net)
static __net_exit void dccp_net_exit(struct net *net)
{
- struct dccp_net *dn = dccp_pernet(net);
#ifdef CONFIG_SYSCTL
+ struct dccp_net *dn = dccp_pernet(net);
unregister_net_sysctl_table(dn->sysctl_header);
kfree(dn->sysctl_table);
#endif
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-04-30 18:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-29 9:25 avoid compiler warning when !CONFIG_SYSCTL in netfilter dccp Mathieu Lacage
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).