diff options
| author | Tarun Sahu <tarunsahu@google.com> | 2026-10-08 19:08:27 +0000 |
|---|---|---|
| committer | Mike Rapoport (Microsoft) <rppt@kernel.org> | 2026-10-13 13:03:55 +0300 |
| commit | aedb8dde08f8cd93ce1cc3a23273f2ff7238f832 (patch) | |
| tree | 3eb7af12016a2ac68398859bdbbd4cbca42c4b0c /scripts/Makefile.thinlto | |
| parent | 80b1dad1d6f535d85b5b8dcea6f3d598847a7e63 (diff) | |
| download | linux-aedb8dde08f8cd93ce1cc3a23273f2ff7238f832.tar.gz linux-aedb8dde08f8cd93ce1cc3a23273f2ff7238f832.zip | |
memblock: drop for_each_memblock_type() and open code its users
for_each_memblock_type() always starts the iteration at index 0 and its
body is a trivial 'for' loop, so it hides very little. It also gets in
the way of iterating from an arbitrary index, which the next patch
needs.
Remove the macro and open code its three users: memblock_add_range(),
memblock_isolate_range() and memblock_dump(). While at it, move the
region pointer into the loop body scope.
No functional change.
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Signed-off-by: Tarun Sahu <tarunsahu@google.com>
Link: https://patch.msgid.link/20261008190828.3221718-1-tarunsahu@google.com
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
