From 88aa5c43934359081b7e994dc539e7d9eefa4e2f Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Fri, 22 Jun 2018 00:28:31 +0100 Subject: [PATCH] allwinner: security: Fix SPC guard The "#ifdef SUNXI_SPC_BASE" guard was meant to allow the build on SoCs without a Secure Peripherals Controller, so that we skip that part of the security setup. But in the current position this will trigger a warning about an unused variable. Simply move the guard one line up to cover the variable as well. Signed-off-by: Andre Przywara --- plat/allwinner/common/sunxi_security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plat/allwinner/common/sunxi_security.c b/plat/allwinner/common/sunxi_security.c index e7600728..80fed6ad 100644 --- a/plat/allwinner/common/sunxi_security.c +++ b/plat/allwinner/common/sunxi_security.c @@ -25,9 +25,9 @@ */ void sunxi_security_setup(void) { +#ifdef SUNXI_SPC_BASE int i; -#ifdef SUNXI_SPC_BASE INFO("Configuring SPC Controller\n"); /* SPC setup: set all devices to non-secure */ for (i = 0; i < 6; i++) -- 2.30.2