aboutsummaryrefslogtreecommitdiff
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorJanosch Frank <frankja@linux.ibm.com>2022-08-11 12:10:56 +0000
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-10-06 19:30:43 +0400
commit1e8113032f5b1efc5da66382470ce4809c76f8f2 (patch)
treeb6c45949167a7d624d2fb589abef0fbe0a301207 /scripts/checkpatch.pl
parentafae6056ea79e2d89fd90867de3a01732eae724f (diff)
dump: Refactor dump_iterate and introduce dump_filter_memblock_*()
The iteration over the memblocks in dump_iterate() is hard to understand so it's about time to clean it up. Instead of manually grabbing the next memblock we can use QTAILQ_FOREACH to iterate over all memblocks. Additionally we move the calculation of the offset and length out by introducing and using the dump_filter_memblock_*() functions. These functions will later be used to cleanup other parts of dump.c. Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20220811121111.9878-4-frankja@linux.ibm.com>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions