lkml.org 
[lkml]   [2002]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Re: 2.5.32 : net/ipv4/netfilter/ipfwadm_core.c compile error
On Fri, 30 Aug 2002, Frank Davis wrote:

> Hello all,
> While 'make modules', I received the following error.
>
> Regards,
> Frank
>
> ipfwadm_core.c: In function `ip_fw_chk':
> ipfwadm_core.c:450: structure has no member named `read_locked_map'
> ipfwadm_core.c:450: structure has no member named `write_locked_map'

Please see the fix below. (The problem only shows up when netfilter
debugging is enabled).


- James
--
James Morris
<jmorris@intercode.com.au>

diff -urN -X dontdiff linux-2.5.33.w1/net/ipv4/netfilter/ipfwadm_core.c linux-2.5.33.w1-ipfwadm/net/ipv4/netfilter/ipfwadm_core.c
--- linux-2.5.33.w1/net/ipv4/netfilter/ipfwadm_core.c Wed Aug 28 13:24:30 2002
+++ linux-2.5.33.w1-ipfwadm/net/ipv4/netfilter/ipfwadm_core.c Sun Sep 1 12:16:16 2002
@@ -156,7 +156,7 @@
#define dprint_ip(a)
#endif

-static rwlock_t ip_fw_lock = RW_LOCK_UNLOCKED;
+static DECLARE_RWLOCK(ip_fw_lock);

#if defined(CONFIG_IP_ACCT) || defined(CONFIG_IP_FIREWALL)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.042 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site