Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=731a0609df9cef35ae861d31004f50a02ebde6c2
Commit:     731a0609df9cef35ae861d31004f50a02ebde6c2
Parent:     9ec138101f8a79007bc571174976a7814ed616f8
Author:     Rami Rosen <[EMAIL PROTECTED]>
AuthorDate: Tue Feb 5 16:30:50 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Feb 5 16:30:50 2008 -0800

    [PPPOL2TP]: Label unused warning when CONFIG_PROC_FS is not set.
    
    When CONFIG_PROC_FS is not set and CONFIG_PPPOL2TP is set,
    we have the following warning in build:
      drivers/net/pppol2tp.c: In function 'pppol2tp_init':
      drivers/net/pppol2tp.c:2472: warning: label
    'out_unregister_pppox_proto' defined but not used
    
    This patches fixes this warning by adding appropriate #ifdef.
    
    Signed-off-by: Rami Rosen <[EMAIL PROTECTED]>
    Acked-by: James Chapman <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 drivers/net/pppol2tp.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/net/pppol2tp.c b/drivers/net/pppol2tp.c
index 1b51bb6..5aa0a80 100644
--- a/drivers/net/pppol2tp.c
+++ b/drivers/net/pppol2tp.c
@@ -2468,9 +2468,10 @@ static int __init pppol2tp_init(void)
 
 out:
        return err;
-
+#ifdef CONFIG_PROC_FS
 out_unregister_pppox_proto:
        unregister_pppox_proto(PX_PROTO_OL2TP);
+#endif
 out_unregister_pppol2tp_proto:
        proto_unregister(&pppol2tp_sk_proto);
        goto out;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to