From: Jes Sorensen <jes@trained-monkey.org>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [patch] 2.6.1-mm3 remove null-ilizers
Date: Wed, 14 Jan 2004 07:53:58 -0500 [thread overview]
Message-ID: <16389.15334.488239.326067@gargle.gargle.HOWL> (raw)
Hi,
The following patch removes a couple of null-ilizers of global
variables. Not a big deal, but every byte helps in the .data segment ;-)
Cheers,
Jes
diff -urN -X /usr/people/jes/exclude-linux orig/linux-2.6.1-mm3-boot/fs/bio.c linux-2.6.1-mm3/fs/bio.c
--- orig/linux-2.6.1-mm3-boot/fs/bio.c Wed Jan 14 02:59:50 2004
+++ linux-2.6.1-mm3/fs/bio.c Wed Jan 14 04:46:23 2004
@@ -594,7 +594,7 @@
static DECLARE_WORK(bio_dirty_work, bio_dirty_fn, NULL);
static spinlock_t bio_dirty_lock = SPIN_LOCK_UNLOCKED;
-static struct bio *bio_dirty_list = NULL;
+static struct bio *bio_dirty_list;
/*
* This runs in process context
diff -urN -X /usr/people/jes/exclude-linux orig/linux-2.6.1-mm3-boot/init/main.c linux-2.6.1-mm3/init/main.c
--- orig/linux-2.6.1-mm3-boot/init/main.c Wed Jan 14 02:59:53 2004
+++ linux-2.6.1-mm3/init/main.c Wed Jan 14 04:43:10 2004
@@ -105,7 +105,7 @@
extern void time_init(void);
/* Default late time init is NULL. archs can override this later. */
-void (*late_time_init)(void) = NULL;
+void (*late_time_init)(void);
extern void softirq_init(void);
static char *execute_command;
diff -urN -X /usr/people/jes/exclude-linux orig/linux-2.6.1-mm3-boot/kernel/cpu.c linux-2.6.1-mm3/kernel/cpu.c
--- orig/linux-2.6.1-mm3-boot/kernel/cpu.c Wed Dec 17 18:59:35 2003
+++ linux-2.6.1-mm3/kernel/cpu.c Wed Jan 14 04:43:29 2004
@@ -14,7 +14,7 @@
/* This protects CPUs going up and down... */
DECLARE_MUTEX(cpucontrol);
-static struct notifier_block *cpu_chain = NULL;
+static struct notifier_block *cpu_chain;
/* Need to know about CPUs going up/down? */
int register_cpu_notifier(struct notifier_block *nb)
diff -urN -X /usr/people/jes/exclude-linux orig/linux-2.6.1-mm3-boot/mm/nommu.c linux-2.6.1-mm3/mm/nommu.c
--- orig/linux-2.6.1-mm3-boot/mm/nommu.c Wed Jan 14 02:59:53 2004
+++ linux-2.6.1-mm3/mm/nommu.c Wed Jan 14 04:47:22 2004
@@ -25,12 +25,12 @@
#include <asm/tlbflush.h>
void *high_memory;
-struct page *mem_map = NULL;
+struct page *mem_map;
unsigned long max_mapnr;
unsigned long num_physpages;
unsigned long askedalloc, realalloc;
atomic_t vm_committed_space = ATOMIC_INIT(0);
-int sysctl_overcommit_memory = 0; /* default is heuristic overcommit */
+int sysctl_overcommit_memory; /* default is heuristic overcommit */
int sysctl_overcommit_ratio = 50; /* default is 50% */
/*
reply other threads:[~2004-01-14 12:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16389.15334.488239.326067@gargle.gargle.HOWL \
--to=jes@trained-monkey.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®