summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5ae1f02)
raw | patch | inline | side by side (parent: 5ae1f02)
author | Heiko Stuebner <heiko.stuebner@theobroma-systems.com> | |
Mon, 14 Dec 2020 15:41:27 +0000 (16:41 +0100) | ||
committer | Jérôme Forissier <jerome@forissier.org> | |
Tue, 15 Dec 2020 08:24:44 +0000 (09:24 +0100) |
The weak variant of platform_secure_ddr_region() only emits a message
that the target region won't get protected due to missing platform-code.
Depending on the log-level this can result in the function parameters not
getting used at all, so mark them as __maybe_unused.
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Reviewed-by: Jerome Forissier <jerome@forissier.org>
that the target region won't get protected due to missing platform-code.
Depending on the log-level this can result in the function parameters not
getting used at all, so mark them as __maybe_unused.
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Reviewed-by: Jerome Forissier <jerome@forissier.org>
core/arch/arm/plat-rockchip/platform.c | patch | blob | history |
index 5f752e7f3915e0516dcbb5c893e5cd743a1917d0..96c343f02dfe14550af0cb5e42e9877509c56418 100644 (file)
return 0;
}
-int __weak platform_secure_ddr_region(int rgn, paddr_t st, size_t sz)
+int __weak platform_secure_ddr_region(int rgn __maybe_unused,
+ paddr_t st __maybe_unused,
+ size_t sz __maybe_unused)
{
MSG("Not protecting region %d: 0x%lx-0x%lx\n", rgn, st, st + sz);