lkml.org 
[lkml]   [1998]   [Mar]   [18]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateWed, 18 Mar 1998 14:19:24 +0100 (CET)
FromNiels Kristian Bech Jensen <>
Subject[2.1.90][PATCH] Cleaning up linux-2.1.90.
Hi Linus,
This patch cleans up a few things in linux-2.1.90. This is what it does:

1. Adds a few '#include <linux/config.h>' statements where needed.
2. Replaces '__alpha' by '__alpha__' in a preprocessor statement.
3. Cleans up drivers/char/hfmodem/gentbl.c and
   drivers/net/hamradio/soundmodem/gentbl.c (used by 'make dep'.)

diff -urN linux-2.1.90/arch/m68k/amiga/amiga_ksyms.c linux/arch/m68k/amiga/amiga_ksyms.c
--- linux-2.1.90/arch/m68k/amiga/amiga_ksyms.c	Wed Mar 18 10:38:45 1998
+++ linux/arch/m68k/amiga/amiga_ksyms.c	Wed Mar 18 10:49:47 1998
@@ -1,3 +1,4 @@
+#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/types.h>
 #include <linux/zorro.h>
diff -urN linux-2.1.90/arch/m68k/atari/atari_ksyms.c linux/arch/m68k/atari/atari_ksyms.c
--- linux-2.1.90/arch/m68k/atari/atari_ksyms.c	Wed Mar 18 10:38:45 1998
+++ linux/arch/m68k/atari/atari_ksyms.c	Wed Mar 18 10:50:08 1998
@@ -1,3 +1,4 @@
+#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/pci.h>
 
diff -urN linux-2.1.90/arch/m68k/kernel/m68k_ksyms.c linux/arch/m68k/kernel/m68k_ksyms.c
--- linux-2.1.90/arch/m68k/kernel/m68k_ksyms.c	Wed Mar 18 10:38:45 1998
+++ linux/arch/m68k/kernel/m68k_ksyms.c	Wed Mar 18 10:50:32 1998
@@ -1,3 +1,4 @@
+#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/linkage.h>
 #include <linux/sched.h>
diff -urN linux-2.1.90/arch/m68k/mac/ksyms.c linux/arch/m68k/mac/ksyms.c
--- linux-2.1.90/arch/m68k/mac/ksyms.c	Wed Mar 18 10:38:45 1998
+++ linux/arch/m68k/mac/ksyms.c	Wed Mar 18 10:52:00 1998
@@ -1,3 +1,4 @@
+#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <asm/ptrace.h>
diff -urN linux-2.1.90/drivers/char/hfmodem/gentbl.c linux/drivers/char/hfmodem/gentbl.c
--- linux-2.1.90/drivers/char/hfmodem/gentbl.c	Thu Jan 22 00:34:19 1998
+++ linux/drivers/char/hfmodem/gentbl.c	Wed Mar 18 10:58:04 1998
@@ -62,7 +62,7 @@
 	printf("/*\n * This file is automatically generated by %s, DO NOT EDIT!\n*/\n\n",
 	       argv[0]);
 	gensintbl();
-	exit(0);
+	return(0);
 }
 
 /* --------------------------------------------------------------------- */
diff -urN linux-2.1.90/drivers/net/3c59x.c linux/drivers/net/3c59x.c
--- linux-2.1.90/drivers/net/3c59x.c	Thu Feb 26 12:44:13 1998
+++ linux/drivers/net/3c59x.c	Wed Mar 18 10:58:06 1998
@@ -83,7 +83,7 @@
 #if LINUX_VERSION_CODE < 0x10300
 #define RUN_AT(x) (x)			/* What to put in timer->expires.  */
 #define DEV_ALLOC_SKB(len) alloc_skb(len, GFP_ATOMIC)
-#if defined(__alpha)
+#if defined(__alpha__)
 #error "The Alpha architecture is only support with kernel version 2.0."
 #endif
 #define virt_to_bus(addr)  ((unsigned long)addr)
diff -urN linux-2.1.90/drivers/net/hamradio/soundmodem/gentbl.c linux/drivers/net/hamradio/soundmodem/gentbl.c
--- linux-2.1.90/drivers/net/hamradio/soundmodem/gentbl.c	Thu Feb 26 12:42:02 1998
+++ linux/drivers/net/hamradio/soundmodem/gentbl.c	Wed Mar 18 10:58:09 1998
@@ -631,7 +631,7 @@
 
 /* -------------------------------------------------------------------- */
 
-void main(int argc, char *argv[])
+int main(int argc, char *argv[])
 {
 	FILE *f;
 	
@@ -681,7 +681,7 @@
 	gentbl_costab(f, 6);
 	gentbl_afsk2400(f, 7372800);
 	fclose(f);
-	exit(0);
+	return(0);
 }
 
 
--
Med venlig hilsen / Best regards
                                                              nkbj@image.dk
Niels Kristian Bech Jensen                       http://www.image.dk/~nkbj/


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.792 / U:0.060 seconds]
©2003-2008 Jasper Spaans