PATCH 2.3.23.5: small buffer.c cleanup

Jeff Garzik (jgarzik@mandrakesoft.com)
Thu, 21 Oct 1999 06:35:42 -0400


This is a multi-part message in MIME format.
--------------EE4F3E96AC51C66C66700EC8
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Linus,

In show_buffers(), variables are only needed on SMP. This patch makes
surrounds variable declarations with ifdef, and shuts up a ton of
compiler warnings in the process.

Jeff
--------------EE4F3E96AC51C66C66700EC8
Content-Type: text/plain; charset=us-ascii;
name="2.3.23.pre5-buffer-cleanup.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="2.3.23.pre5-buffer-cleanup.patch"

Index: fs/buffer.c
===================================================================
RCS file: /g/cvslan/linux_2_3/fs/buffer.c,v
retrieving revision 1.1.1.8
diff -u -r1.1.1.8 buffer.c
--- fs/buffer.c 1999/10/20 10:26:15 1.1.1.8
+++ fs/buffer.c 1999/10/21 10:33:11
@@ -2201,11 +2201,13 @@

void show_buffers(void)
{
+#ifdef __SMP__
struct buffer_head * bh;
int found = 0, locked = 0, dirty = 0, used = 0, lastused = 0;
int protected = 0;
int nlist;
static char *buf_types[NR_LIST] = { "CLEAN", "LOCKED", "DIRTY" };
+#endif

printk("Buffer memory: %6dkB\n",
atomic_read(&buffermem_pages) << (PAGE_SHIFT-10));

--------------EE4F3E96AC51C66C66700EC8--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/