Commit fb26b3e6 authored by Roel Kluin's avatar Roel Kluin Committed by Linus Torvalds

alpha: bad macro expansion, parameter is member

`for_each_mem_cluster(x, y, z)' will expand to
`for ((x) = (y)->x ...' but correct is `for ((x) = (y)->cluster ...'
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 44377f62
...@@ -252,9 +252,9 @@ reserve_std_resources(void) ...@@ -252,9 +252,9 @@ reserve_std_resources(void)
} }
#define PFN_MAX PFN_DOWN(0x80000000) #define PFN_MAX PFN_DOWN(0x80000000)
#define for_each_mem_cluster(memdesc, cluster, i) \ #define for_each_mem_cluster(memdesc, _cluster, i) \
for ((cluster) = (memdesc)->cluster, (i) = 0; \ for ((_cluster) = (memdesc)->cluster, (i) = 0; \
(i) < (memdesc)->numclusters; (i)++, (cluster)++) (i) < (memdesc)->numclusters; (i)++, (_cluster)++)
static unsigned long __init static unsigned long __init
get_mem_size_limit(char *s) get_mem_size_limit(char *s)
......
...@@ -28,9 +28,9 @@ EXPORT_SYMBOL(node_data); ...@@ -28,9 +28,9 @@ EXPORT_SYMBOL(node_data);
#define DBGDCONT(args...) #define DBGDCONT(args...)
#endif #endif
#define for_each_mem_cluster(memdesc, cluster, i) \ #define for_each_mem_cluster(memdesc, _cluster, i) \
for ((cluster) = (memdesc)->cluster, (i) = 0; \ for ((_cluster) = (memdesc)->cluster, (i) = 0; \
(i) < (memdesc)->numclusters; (i)++, (cluster)++) (i) < (memdesc)->numclusters; (i)++, (_cluster)++)
static void __init show_mem_layout(void) static void __init show_mem_layout(void)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment