[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    [patchlet] Compile warnings in net/ipx/af_ipx.c (2.4.0-t8p1)
From:       Rasmus Andersen <rasmus () jaquet ! dk>
Date:       2000-08-31 19:57:17
[Download RAW message or body]

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/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic