From: Paul Fulghum 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: Andrew Morton --- 25-akpm/drivers/net/ppp_generic.c | 2 ++ 1 files changed, 2 insertions(+) diff -puN drivers/net/ppp_generic.c~267-bk7-ppp_genericc-get_filter-made-conditional drivers/net/ppp_generic.c --- 25/drivers/net/ppp_generic.c~267-bk7-ppp_genericc-get_filter-made-conditional 2004-06-24 19:03:10.054536256 -0700 +++ 25-akpm/drivers/net/ppp_generic.c 2004-06-24 19:03:10.060535344 -0700 @@ -494,6 +494,7 @@ static unsigned int ppp_poll(struct file 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 @@ static int get_filter(void __user *arg, *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) _