[patchlet] Compile warnings in net/ipx/af_ipx.c (2.4.0-t8p1)

From: Rasmus Andersen (rasmus@jaquet.dk)
Date: Thu Aug 31 2000 - 14:57:17 EST


Hi.

When I compile net/ipx/af_ipx.c without procfs support I get the
following warnings:

net/ipx/af_ipx.c:1508: warning: `ipx_interface_get_info' defined but not used
net/ipx/af_ipx.c:1551: warning: `ipx_get_info' defined but not used
net/ipx/af_ipx.c:1632: warning: `ipx_rt_get_info' defined but not used

The following patch fixes this:

--- linux/net/ipx/af_ipx.c.org Sat Jul 29 23:59:27 2000
+++ linux/net/ipx/af_ipx.c Sun Jul 30 00:00:36 2000
@@ -1503,6 +1503,7 @@
 }
 
 /* Called from proc fs */
+#ifdef CONFIG_PROC_FS
 static int ipx_interface_get_info(char *buffer, char **start, off_t offset,
                                   int length)
 {
@@ -1671,7 +1672,7 @@
 
         return (len);
 }
-
+#endif /*CONFIG_PROC_FS*/
 /**************************************************************************\
 * *
 * Handling for system calls applied via the various interfaces to an *

-- 
Regards,
        Rasmus(rasmus@jaquet.dk)

People are more violently opposed to fur than leather because it's safer to pick on rich women than biker gangs. -- Anonymous - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:28 EST