aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>2010-11-08 11:20:49 +0900
committerJames Morris <jmorris@namei.org>2010-11-09 11:59:54 +1100
commit6070bf3596f3b5a54091a08d5b2bc90c143dc264 (patch)
tree19a8cc8c96b0387e18f4fb58dbfca40d0ea6922b
parenta7bcf21e60c73cb7f7c13fad928967d7e47c3cac (diff)
downloadkernel_samsung_crespo-6070bf3596f3b5a54091a08d5b2bc90c143dc264.zip
kernel_samsung_crespo-6070bf3596f3b5a54091a08d5b2bc90c143dc264.tar.gz
kernel_samsung_crespo-6070bf3596f3b5a54091a08d5b2bc90c143dc264.tar.bz2
kernel: Constify temporary variable in roundup()
Fix build error with GCC 3.x caused by commit b28efd54 "kernel: roundup should only reference arguments once" by constifying temporary variable used in that macro. Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Suggested-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Eric Paris <eparis@redhat.com> Signed-off-by: James Morris <jmorris@namei.org>
-rw-r--r--include/linux/kernel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 450092c..b526947 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -60,7 +60,7 @@ extern const char linux_proc_banner[];
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
#define roundup(x, y) ( \
{ \
- typeof(y) __y = y; \
+ const typeof(y) __y = y; \
(((x) + (__y - 1)) / __y) * __y; \
} \
)