public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.6.7-bk7 ppp_generic.c get_filter made conditional
@ 2004-06-24 15:42 Paul Fulghum
  0 siblings, 0 replies; only message in thread
From: Paul Fulghum @ 2004-06-24 15:42 UTC (permalink / raw)
  To: linux-kernel; +Cc: Paul Mackerras

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)




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-24 15:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-24 15:42 [PATCH] 2.6.7-bk7 ppp_generic.c get_filter made conditional Paul Fulghum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox