Commit 9f763dbd authored by Paul Fulghum's avatar Paul Fulghum Committed by Linus Torvalds

[PATCH] ppp_generic.c get_filter made conditional

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.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent dc2b051f
...@@ -494,6 +494,7 @@ static unsigned int ppp_poll(struct file *file, poll_table *wait) ...@@ -494,6 +494,7 @@ static unsigned int ppp_poll(struct file *file, poll_table *wait)
return mask; return mask;
} }
#ifdef CONFIG_PPP_FILTER
static int get_filter(void __user *arg, struct sock_filter **p) static int get_filter(void __user *arg, struct sock_filter **p)
{ {
struct sock_fprog uprog; struct sock_fprog uprog;
...@@ -530,6 +531,7 @@ static int get_filter(void __user *arg, struct sock_filter **p) ...@@ -530,6 +531,7 @@ static int get_filter(void __user *arg, struct sock_filter **p)
*p = code; *p = code;
return uprog.len; return uprog.len;
} }
#endif /* CONFIG_PPP_FILTER */
static int ppp_ioctl(struct inode *inode, struct file *file, static int ppp_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg) unsigned int cmd, unsigned long arg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment