Trivial patch to remove some of the largest zero static initializers in
my compile.
Index: 0-test9-pre8.1/net/ipv6/protocol.c
--- 0-test9-pre8.1/net/ipv6/protocol.c Fri, 26 May 2000 13:10:01 +1000 kaos (linux-2.4/e/36_protocol.c 1.1 644)
+++ 0-test9-pre8.1(w)/net/ipv6/protocol.c Mon, 02 Oct 2000 21:40:30 +1100 kaos (linux-2.4/e/36_protocol.c 1.1 644)
@@ -32,11 +32,8 @@
#include <net/ipv6.h>
#include <net/protocol.h>
-struct inet6_protocol *inet6_protocol_base = NULL;
-struct inet6_protocol *inet6_protos[MAX_INET_PROTOS] =
-{
- NULL
-};
+struct inet6_protocol *inet6_protocol_base;
+struct inet6_protocol *inet6_protos[MAX_INET_PROTOS];
void inet6_add_protocol(struct inet6_protocol *prot)
{
Index: 0-test9-pre8.1/init/version.c
--- 0-test9-pre8.1/init/version.c Fri, 26 May 2000 13:10:01 +1000 kaos (linux-2.4/j/45_version.c 1.1 644)
+++ 0-test9-pre8.1(w)/init/version.c Mon, 02 Oct 2000 21:40:30 +1100 kaos (linux-2.4/j/45_version.c 1.1 644)
@@ -14,7 +14,7 @@
#define version(a) Version_ ## a
#define version_string(a) version(a)
-int version_string(LINUX_VERSION_CODE) = 0;
+int version_string(LINUX_VERSION_CODE);
struct new_utsname system_utsname = {
UTS_SYSNAME, UTS_NODENAME, UTS_RELEASE, UTS_VERSION,
Index: 0-test9-pre8.1/arch/i386/kernel/traps.c
--- 0-test9-pre8.1/arch/i386/kernel/traps.c Tue, 26 Sep 2000 12:13:33 +1100 kaos (linux-2.4/A/c/1_traps.c 1.1.2.2.1.1.2.1.2.3.1.2 644)
+++ 0-test9-pre8.1(w)/arch/i386/kernel/traps.c Mon, 02 Oct 2000 21:40:30 +1100 kaos (linux-2.4/A/c/1_traps.c 1.1.2.2.1.1.2.1.2.3.1.2 644)
@@ -416,8 +416,8 @@ inline void nmi_watchdog_tick(struct pt_
* here too!]
*/
- static unsigned int last_irq_sums [NR_CPUS] = { 0, },
- alert_counter [NR_CPUS] = { 0, };
+ static unsigned int last_irq_sums [NR_CPUS],
+ alert_counter [NR_CPUS];
/*
* Since current-> is always on the stack, and we always switch
-
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 : Sat Oct 07 2000 - 21:00:09 EST