]> www.infradead.org Git - users/jedix/linux-maple.git/commit
of: address: Add kunit test for __of_address_resource_bounds()
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Wed, 29 Jan 2025 13:35:27 +0000 (14:35 +0100)
committerRob Herring (Arm) <robh@kernel.org>
Mon, 3 Feb 2025 02:59:04 +0000 (20:59 -0600)
commite6649328dc07bff6227367eda6f1b2263d6c10f0
tree705df178b909697d77d618a81cd654541048c27e
parent3e86e57356f0e2284454d82c7200807c6fa9e65b
of: address: Add kunit test for __of_address_resource_bounds()

The overflow checking has to deal with different datatypes and
edgecases. Add a new kunit testcase to make sure it works correctly.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://lore.kernel.org/r/20250129-of-address-overflow-v3-1-95d1760ed791@linutronix.de
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/address.c
drivers/of/of_private.h
drivers/of/of_test.c