summaryrefslogtreecommitdiff
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-03-09 16:45:53 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-03-09 16:45:53 -0800
commite55b73a3f78c12322ca30c0617771c1267532423 (patch)
tree1b3203e009138a9b52e1ec520297195d8bca32c6 /include/linux/kernel.h
parentd4aecd1a8f2bf7bb4c5f57ff5e8f80e6654a1f14 (diff)
Remove 'const' from min/max, to avoid gcc warning about double usage.
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 0e13d9677b8f..e11e79199357 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -168,14 +168,14 @@ extern void dump_stack(void);
* "unnecessary" pointer comparison.
*/
#define min(x,y) ({ \
- const typeof(x) _x = (x); \
- const typeof(y) _y = (y); \
+ typeof(x) _x = (x); \
+ typeof(y) _y = (y); \
(void) (&_x == &_y); \
_x < _y ? _x : _y; })
#define max(x,y) ({ \
- const typeof(x) _x = (x); \
- const typeof(y) _y = (y); \
+ typeof(x) _x = (x); \
+ typeof(y) _y = (y); \
(void) (&_x == &_y); \
_x > _y ? _x : _y; })