From: Tetsuo Handa Date: Mon, 8 Nov 2010 02:20:49 +0000 (+0900) Subject: kernel: Constify temporary variable in roundup() X-Git-Tag: v2.6.37-rc2~73^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6070bf3596f3b5a54091a08d5b2bc90c143dc264;p=profile%2Fcommon%2Fkernel-common.git 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 Suggested-by: Andrew Morton Acked-by: Eric Paris Signed-off-by: James Morris --- 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; \ } \ )