diff options
author | Gioh Kim <[email protected]> | 2017-11-15 17:33:42 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2017-11-15 18:21:02 -0800 |
commit | 66e8b438bd5c75498cfe915c4219049eaebcb869 (patch) | |
tree | b02701c72a671e8f4487c28534695be1530a0284 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | ecde0f3e7f9edf8629f56b2354385dc8d0a6a24d (diff) |
mm/memblock.c: make the index explicit argument of for_each_memblock_type
for_each_memblock_type macro function relies on idx variable defined in
the caller context. Silent macro arguments are almost always wrong
thing to do. They make code harder to read and easier to get wrong.
Let's use an explicit iterator parameter for for_each_memblock_type and
make the code more obious. This patch is a mere cleanup and it
shouldn't introduce any functional change.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Gioh Kim <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions