From 3ee4d3f07657adc97c8ad94a3557b5cc869354c0 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Thu, 17 May 2007 23:56:56 +0200 Subject: [PATCH] --- yaml --- r: 56623 b: refs/heads/master c: 1a06a52ee1b0cdb65222474ba6186f3991df68b0 h: refs/heads/master i: 56621: 457f5aa9446feddfac5ebaa2270524cd3217623e 56619: ed16d39ffd3dcaef6a3ebb180735d4d48b8b665b 56615: 28a0c954e506b1b1d36fd4d10dd92cc8cd88768d 56607: 33405a78038edb654f052cc68cce92f364f38c5c v: v3 --- [refs] | 2 +- trunk/include/linux/log2.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index d898977bd259..189d646f29b8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 18963c01b8abf381f102752ce024c3582a716125 +refs/heads/master: 1a06a52ee1b0cdb65222474ba6186f3991df68b0 diff --git a/trunk/include/linux/log2.h b/trunk/include/linux/log2.h index 57e641e19a81..1b8a2c1cb0e3 100644 --- a/trunk/include/linux/log2.h +++ b/trunk/include/linux/log2.h @@ -159,7 +159,7 @@ unsigned long __roundup_pow_of_two(unsigned long n) #define roundup_pow_of_two(n) \ ( \ __builtin_constant_p(n) ? ( \ - (n == 1) ? 0 : \ + (n == 1) ? 1 : \ (1UL << (ilog2((n) - 1) + 1)) \ ) : \ __roundup_pow_of_two(n) \