https://github.com/torvalds/linux
Revision 1a06a52ee1b0cdb65222474ba6186f3991df68b0 authored by Rolf Eike Beer on 17 May 2007, 21:56:56 UTC, committed by Linus Torvalds on 19 May 2007, 03:46:30 UTC
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>
1 parent 18963c0
History
Tip revision: 1a06a52ee1b0cdb65222474ba6186f3991df68b0 authored by Rolf Eike Beer on 17 May 2007, 21:56:56 UTC
Fix roundup_pow_of_two(1)
Tip revision: 1a06a52
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 572 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 89.3 KB
Kbuild -rw-r--r-- 1.5 KB
MAINTAINERS -rw-r--r-- 86.6 KB
Makefile -rw-r--r-- 49.2 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top