]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf/arm-cmn: Improve build-time assertion
authorRobin Murphy <robin.murphy@arm.com>
Mon, 2 Sep 2024 17:52:00 +0000 (18:52 +0100)
committerWill Deacon <will@kernel.org>
Wed, 4 Sep 2024 15:04:08 +0000 (16:04 +0100)
commitff436cee694ee8bc4173f2d42622ee7c17a085d3
treedf0b3889161790fe5817be56cabae35a67ac9dc7
parent359414b33e00bae91e4eabf3e4ef8e76024c7673
perf/arm-cmn: Improve build-time assertion

These days we can use static_assert() in the logical place rather than
jamming a BUILD_BUG_ON() into the nearest function scope.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/224ee8286f299100f1c768edb254edc898539f50.1725296395.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm-cmn.c