Commit 88aa5c43 authored by Andre Przywara's avatar Andre Przywara
Browse files

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: default avatarAndre Przywara <andre.przywara@arm.com>
parent 27f9616f
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
*/ */
void sunxi_security_setup(void) void sunxi_security_setup(void)
{ {
#ifdef SUNXI_SPC_BASE
int i; int i;
#ifdef SUNXI_SPC_BASE
INFO("Configuring SPC Controller\n"); INFO("Configuring SPC Controller\n");
/* SPC setup: set all devices to non-secure */ /* SPC setup: set all devices to non-secure */
for (i = 0; i < 6; i++) for (i = 0; i < 6; i++)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment