mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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: Roel Kluin <[email protected]> Cc: Richard Henderson <[email protected]> Cc: Ivan Kokshaysky <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
44377f622e
commit
fb26b3e63e
2 changed files with 6 additions and 6 deletions
|
|
@ -252,9 +252,9 @@ reserve_std_resources(void)
|
|||
}
|
||||
|
||||
#define PFN_MAX PFN_DOWN(0x80000000)
|
||||
#define for_each_mem_cluster(memdesc, cluster, i) \
|
||||
for ((cluster) = (memdesc)->cluster, (i) = 0; \
|
||||
(i) < (memdesc)->numclusters; (i)++, (cluster)++)
|
||||
#define for_each_mem_cluster(memdesc, _cluster, i) \
|
||||
for ((_cluster) = (memdesc)->cluster, (i) = 0; \
|
||||
(i) < (memdesc)->numclusters; (i)++, (_cluster)++)
|
||||
|
||||
static unsigned long __init
|
||||
get_mem_size_limit(char *s)
|
||||
|
|
|
|||
|
|
@ -28,9 +28,9 @@ EXPORT_SYMBOL(node_data);
|
|||
#define DBGDCONT(args...)
|
||||
#endif
|
||||
|
||||
#define for_each_mem_cluster(memdesc, cluster, i) \
|
||||
for ((cluster) = (memdesc)->cluster, (i) = 0; \
|
||||
(i) < (memdesc)->numclusters; (i)++, (cluster)++)
|
||||
#define for_each_mem_cluster(memdesc, _cluster, i) \
|
||||
for ((_cluster) = (memdesc)->cluster, (i) = 0; \
|
||||
(i) < (memdesc)->numclusters; (i)++, (_cluster)++)
|
||||
|
||||
static void __init show_mem_layout(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue