[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 00/13] make range overlap check more readable
From: |
Yao Xingtao |
Subject: |
[PATCH 00/13] make range overlap check more readable |
Date: |
Mon, 22 Jul 2024 00:07:29 -0400 |
Currently, some components still open-coding the range overlap check.
Sometimes this check may be fail because some patterns are missed.
To avoid the above problems and improve the readability of the code,
it is better to use the ranges_overlap() to do this check.
Yao Xingtao (13):
range: Make ranges_overlap() return bool
arm/boot: make range overlap check more readable
core/loader: make range overlap check more readable
cxl/mailbox: make range overlap check more readable
display/sm501: make range overlap check more readable
aspeed_smc: make range overlap check more readable
qtest/fuzz: make range overlap check more readable
sparc/ldst_helper: make range overlap check more readable
system/memory_mapping: make range overlap check more readable
block/vhdx: make range overlap check more readable
crypto/block-luks: make range overlap check more readable
dump: make range overlap check more readable
block/qcow2-cluster: make range overlap check more readable
block/qcow2-cluster.c | 23 +++++++++++++----------
block/vhdx.c | 12 +++++++-----
crypto/block-luks.c | 3 ++-
dump/dump.c | 12 ++++++++----
hw/arm/boot.c | 5 +++--
hw/core/loader.c | 4 +++-
hw/cxl/cxl-mailbox-utils.c | 8 ++++----
hw/display/sm501.c | 12 ++++++------
hw/ssi/aspeed_smc.c | 4 ++--
include/qemu/range.h | 4 ++--
system/memory_mapping.c | 4 ++--
target/sparc/ldst_helper.c | 5 ++---
tests/qtest/fuzz/generic_fuzz.c | 3 ++-
13 files changed, 56 insertions(+), 43 deletions(-)
--
2.41.0
- [PATCH 00/13] make range overlap check more readable,
Yao Xingtao <=
- [PATCH 01/13] range: Make ranges_overlap() return bool, Yao Xingtao, 2024/07/22
- [PATCH 02/13] arm/boot: make range overlap check more readable, Yao Xingtao, 2024/07/22
- [PATCH 04/13] cxl/mailbox: make range overlap check more readable, Yao Xingtao, 2024/07/22
- [PATCH 13/13] block/qcow2-cluster: make range overlap check more readable, Yao Xingtao, 2024/07/22
- [PATCH 05/13] display/sm501: make range overlap check more readable, Yao Xingtao, 2024/07/22
- [PATCH 10/13] block/vhdx: make range overlap check more readable, Yao Xingtao, 2024/07/22
- [PATCH 06/13] aspeed_smc: make range overlap check more readable, Yao Xingtao, 2024/07/22