[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200711181932.12588.vda.linux@googlemail.com>
Date: Sun, 18 Nov 2007 19:32:12 -0800
From: Denys Vlasenko <vda.linux@...glemail.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] printk.c: use ints instead of longs for logbuf index
Hi Andrew,
This patch stops using unsigned _longs_ for printk
buffer indexes. Log buffer is way smaller than 2 gigabytes
and unsigned ints will work too . Indeed, they do work nicely
on all 32-bit platforms where longs and ints are the same.
With this patch, we have following size savings on amd64:
text data bss dec hex filename
5997 313 17736 24046 5dee 2.6.23.1.t64/kernel/printk.o
5858 313 17700 23871 5d3f 2.6.23.1.printk.t64/kernel/printk.o
Please take this patch into -mm.
Signed-off-by: Denys Vlasenko <vda.linux@...glemail.com>
--
vda
View attachment "linux-2.6.23.1.printk.diff" of type "text/x-diff" (4234 bytes)
Powered by blists - more mailing lists