public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kuebelr@email.uc.edu
To: trivial@rustcorp.com.au
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] [TRIVIAL] ip_nat_core.c - fix compiler warning
Date: Sun, 9 Jun 2002 01:36:57 -0400	[thread overview]
Message-ID: <20020609053657.GA552@cartman> (raw)

If netfilter is build w/o CONFIG_IP_NF_NAT_LOCAL, gcc will complain that
do_extra_mangle() is not used.  So only compile the function when
IP_NF_NAT_LOCAL is defined.  Patch is against 2.4.19-pre10.

Rob.

--- linux-clean/net/ipv4/netfilter/ip_nat_core.c	Fri Jun  7 23:42:15 2002
+++ linux-dirty/net/ipv4/netfilter/ip_nat_core.c	Sat Jun  8 12:12:46 2002
@@ -198,6 +198,7 @@
 		return NULL;
 }
 
+#ifdef CONFIG_IP_NF_NAT_LOCAL
 /* If it's really a local destination manip, it may need to do a
    source manip too. */
 static int
@@ -216,6 +217,7 @@
 	ip_rt_put(rt);
 	return 1;
 }
+#endif
 
 /* Simple way to iterate through all. */
 static inline int fake_cmp(const struct ip_nat_hash *i,

                 reply	other threads:[~2002-06-09  5:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20020609053657.GA552@cartman \
    --to=kuebelr@email.uc.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@rustcorp.com.au \
    /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