From: Paul Fulghum <paulkf@microgate.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Subject: [PATCH] 2.6.7-bk7 ppp_generic.c get_filter made conditional
Date: 24 Jun 2004 10:42:27 -0500 [thread overview]
Message-ID: <1088091747.2017.2.camel@deimos.microgate.com> (raw)
Add #ifdef CONFIG_PPP_FILTER around get_filter implementation
which is only used when this option is enabled. This
prevents compiler warning (unused function) when
CONFIG_PPP_FILTER is not defined.
--
Paul Fulghum
paulkf@microgate.com
--- linux-2.6.7/drivers/net/ppp_generic.c 2004-06-24 09:41:43.000000000 -0500
+++ linux-2.6.7-mg1/drivers/net/ppp_generic.c 2004-06-24 10:37:22.580842447 -0500
@@ -494,6 +494,7 @@
return mask;
}
+#ifdef CONFIG_PPP_FILTER
static int get_filter(void __user *arg, struct sock_filter **p)
{
struct sock_fprog uprog;
@@ -530,6 +531,7 @@
*p = code;
return uprog.len;
}
+#endif /* CONFIG_PPP_FILTER */
static int ppp_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg)
reply other threads:[~2004-06-24 15:42 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=1088091747.2017.2.camel@deimos.microgate.com \
--to=paulkf@microgate.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.org \
/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