--- drivers/scsi/sg.c.bak	Tue Mar 14 17:55:10 2000
+++ drivers/scsi/sg.c	Tue Mar 14 19:51:19 2000
@@ -66,7 +66,9 @@
 #ifdef CONFIG_PROC_FS
 #include <linux/proc_fs.h>
 static int sg_proc_init(void);
+# ifdef MODULE
 static void sg_proc_cleanup(void);
+# endif
 #endif
 
 #ifndef LINUX_VERSION_CODE
@@ -2445,6 +2447,7 @@
     return 0;
 }
 
+#if defined(CONFIG_PROC_FS) && defined(MODULE)
 static void sg_proc_cleanup()
 {
     int k;
@@ -2456,6 +2459,7 @@
 	remove_proc_entry(sg_proc_leaf_names[k], sg_proc_sgp);
     remove_proc_entry(sg_proc_sg_dirname, proc_scsi);
 }
+#endif
 
 static int sg_proc_dressz_read(char * buffer, char ** start, off_t offset,
 			       int size, int * eof, void * data)

