From: Denys Vlasenko Date: Wed, 6 Feb 2008 09:37:02 +0000 (-0800) Subject: printk.c: use unsigned ints instead of longs for logbuf index X-Git-Tag: v2.6.25-rc1~728 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eed4a2aba7ff6d8c40d3d55b81f80352765ffcee;p=pandora-kernel.git printk.c: use unsigned ints instead of longs for logbuf index Stop 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 Signed-off-by: Denys Vlasenko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed