projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7bcf21
)
kernel: Constify temporary variable in roundup()
author
Tetsuo Handa
<
[email protected]
>
Mon, 8 Nov 2010 02:20:49 +0000
(11:20 +0900)
committer
James Morris
<
[email protected]
>
Tue, 9 Nov 2010 00:59:54 +0000
(11:59 +1100)
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 <
[email protected]
>
Suggested-by: Andrew Morton <
[email protected]
>
Acked-by: Eric Paris <
[email protected]
>
Signed-off-by: James Morris <
[email protected]
>
include/linux/kernel.h
patch
|
blob
|
history
diff --git
a/include/linux/kernel.h
b/include/linux/kernel.h
index 450092c1e35f459f6db7dba29dbb94ec1a2c683c..b526947bdf489f508c6905b2009005b2220a8643 100644
(file)
--- 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; \
} \
)