mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Harald Welte <laforge@gnumonks.org>
To: "Adam J. Richter" <adam@yggdrasil.com>
Cc: linux-kernel@vger.kernel.org, torvalds@transmeta.com,
	Rusty Russell <rusty@rustcorp.com.au>,
	Marcelo Tossati <marcelo@conectiva.com.br>,
	David Miller <davem@redhat.com>
Subject: Re: Patch: linux-2.5.3-pre4/net/ipv4/netfilter/ipfwadm_core.c typo fixes to make it compile
Date: Thu, 24 Jan 2002 14:24:32 +0100	[thread overview]
Message-ID: <20020124142432.J11216@sunbeam.de.gnumonks.org> (raw)
In-Reply-To: <200201241009.CAA00324@baldur.yggdrasil.com>
In-Reply-To: <200201241009.CAA00324@baldur.yggdrasil.com>; from adam@yggdrasil.com on Thu, Jan 24, 2002 at 02:09:22AM -0800

On Thu, Jan 24, 2002 at 02:09:22AM -0800, Adam J. Richter wrote:
> 	linux-2.5.3-pre4/net/ipv4/netfilter/ipfwadm_core.c incorrectly
> contained parentheses after uses of the MOD_{INC,DEC}_USE_COUNT macros.
> This causes it to fail to compile.  

*sigh*. I feel really stupid. 

This change was introduced by a patch from Rusty Russell.

> It is not clear to me who the maintainer of this file is.  So, I apologize
> for not including that person directly in this email.

The maintainer am now I, and I feel guilty for passing this on without even
trying to compile it. Sorry.

> 	Here is the patch.

Thanks. 

Linus, DaveM, Marcelo: Please apply to 2.4.x and 2.5.x ASAP. Thanks.

> 
> Adam J. Richter     __     ______________   4880 Stevens Creek Blvd, Suite 104

--- linux-2.5.3-pre4/net/ipv4/netfilter/ipfwadm_core.c	Thu Jan 24 01:38:47 2002
+++ linux/net/ipv4/netfilter/ipfwadm_core.c	Thu Jan 24 01:27:58 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);
-
-- 
Live long and prosper
- Harald Welte / laforge@gnumonks.org               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M- 
V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)

      reply	other threads:[~2002-01-24 13:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-24 10:09 Adam J. Richter
2002-01-24 13:24 ` Harald Welte [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020124142432.J11216@sunbeam.de.gnumonks.org \
    --to=laforge@gnumonks.org \
    --cc=adam@yggdrasil.com \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    --cc=rusty@rustcorp.com.au \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®