patch-2.3.29 linux/drivers/char/h8.c

Next file: linux/drivers/char/ip2main.c
Previous file: linux/drivers/char/ftape/zftape/zftape-init.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.28/linux/drivers/char/h8.c linux/drivers/char/h8.c
@@ -58,9 +58,10 @@
 static void  h8_intr(int irq, void *dev_id, struct pt_regs *regs);
 
 #ifdef CONFIG_PROC_FS
-static int   h8_get_info(char *, char **, off_t, int, int);
+static int   h8_get_info(char *, char **, off_t, int);
 #else
-static int   h8_get_info(char *, char **, off_t, int, int) {}
+static int   h8_get_info(char *, char **, off_t, int) {}
+#error "Somebody needs to learn C. Badly."
 #endif
 
 /*
@@ -402,7 +403,7 @@
 }
 
 #ifdef CONFIG_PROC_FS
-int h8_get_info(char *buf, char **start, off_t fpos, int length, int dummy)
+static int h8_get_info(char *buf, char **start, off_t fpos, int length)
 {
         char *p;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)