[PATCH] Re: 2.5.32 : net/ipv4/netfilter/ipfwadm_core.c compile error

James Morris (jmorris@intercode.com.au)
Sun, 1 Sep 2002 13:18:32 +1000 (EST)


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/