Re: Linux 2.4.18-pre7: compile error

From: Evgeniy Polyakov (johnpol@2ka.mipt.ru)
Date: Wed Jan 23 2002 - 19:01:06 EST


On Thu, 24 Jan 2002 00:46:45 +0100
Stephan von Krawczynski <skraw@ithnet.com> wrote:

> "I am sorry, Dave. I'm afraid I can't do that":

> ipfwadm_core.o ipfwadm_core.c
> ipfwadm_core.c: In function `free_fw_chain':
> ipfwadm_core.c:691: called object is not a function
> ipfwadm_core.c: In function `insert_in_chain':
> ipfwadm_core.c:735: called object is not a function
> ipfwadm_core.c: In function `append_to_chain':
> ipfwadm_core.c:786: called object is not a function
> ipfwadm_core.c: In function `del_from_chain':
> ipfwadm_core.c:861: called object is not a function

I hope this patch will help you:

--- ./net/ipv4/netfilter/ipfwadm_core.c Thu Jan 24 02:57:54 2002
+++ ./net/ipv4/netfilter/ipfwadm_core.c~ Thu Jan 24 02:58:01 2002
@@ -688,7 +688,7 @@
                ftmp = *chainptr;
                *chainptr = ftmp->fw_next;
                kfree(ftmp);
- MOD_DEC_USE_COUNT();
+ MOD_DEC_USE_COUNT;
        }
        restore_flags(flags);
 }
@@ -732,7 +732,7 @@
        ftmp->fw_next = *chainptr;
                *chainptr=ftmp;
        restore_flags(flags);
- MOD_INC_USE_COUNT();
+ MOD_INC_USE_COUNT;
        return(0);
 }
 
@@ -783,7 +783,7 @@
        else
                *chainptr=ftmp;
        restore_flags(flags);
- MOD_INC_USE_COUNT();
+ MOD_INC_USE_COUNT;
        return(0);
 }
 
@@ -858,7 +858,7 @@
        }
        restore_flags(flags);
        if (was_found) {
- MOD_DEC_USE_COUNT();
+ MOD_DEC_USE_COUNT;
                return 0;
        } else
                return(EINVAL);

> Regards,
> Stephan

        Evgeniy Polyakov ( s0mbre ).
-
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/



This archive was generated by hypermail 2b29 : Wed Jan 23 2002 - 21:01:09 EST