diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2008-02-06 01:37:02 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-06 10:41:04 -0800 |
commit | eed4a2aba7ff6d8c40d3d55b81f80352765ffcee (patch) | |
tree | 8cfeca1d26aa56ca83210cf3628399333e98c90e /drivers/char/tpm | |
parent | b3242151906372f30f57feaa43b4cac96a23edb1 (diff) | |
download | kernel_samsung_smdk4412-eed4a2aba7ff6d8c40d3d55b81f80352765ffcee.zip kernel_samsung_smdk4412-eed4a2aba7ff6d8c40d3d55b81f80352765ffcee.tar.gz kernel_samsung_smdk4412-eed4a2aba7ff6d8c40d3d55b81f80352765ffcee.tar.bz2 |
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 <vda.linux@googlemail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/tpm')
0 files changed, 0 insertions, 0 deletions