diff options
author | 2007-05-17 23:56:56 +0200 | |
---|---|---|
committer | 2007-05-18 20:46:30 -0700 | |
commit | 1a06a52ee1b0cdb65222474ba6186f3991df68b0 (patch) | |
tree | 91ce623fbfdd72e32fa0001d7ba611bb6c7de50f /mm/sparse.c | |
parent | timerfd use waitqueue lock ... (diff) | |
download | linux-rng-1a06a52ee1b0cdb65222474ba6186f3991df68b0.tar.xz linux-rng-1a06a52ee1b0cdb65222474ba6186f3991df68b0.zip |
Fix roundup_pow_of_two(1)
1 is a power of two, therefore roundup_pow_of_two(1) should return 1. It does
in case the argument is a variable but in case it's a constant it behaves
wrong and returns 0. Probably nobody ever did it so this was never noticed.
Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/sparse.c')
0 files changed, 0 insertions, 0 deletions