aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2023-02-20 22:42:54 +0100
committerStefan Roese <sr@denx.de>2023-03-01 06:39:17 +0100
commitc624c1cbcf1761c7990e0ed26994db9acaba9013 (patch)
tree370607bf6a8e6b3fe3311e22601f8e1fcc33a939 /cmd
parent329393f17f81c42920ae8fe1c175dfdaab555f7a (diff)
downloadu-boot-c624c1cbcf1761c7990e0ed26994db9acaba9013.zip
u-boot-c624c1cbcf1761c7990e0ed26994db9acaba9013.tar.gz
u-boot-c624c1cbcf1761c7990e0ed26994db9acaba9013.tar.bz2
cmd: mvebu/bubt: Fix warnings: unused variable 'secure_mode' and 'fuse_read_u64' defined but not used
'secure_mode' and 'fuse_read_u64' are used only on A38x and A37xx. Fixes: f7b0bbca2b62 ("cmd: mvebu/bubt: Check for A38x/A37xx OTP secure bits and secure boot") Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mvebu/bubt.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c
index 74ea037..49797b2 100644
--- a/cmd/mvebu/bubt.c
+++ b/cmd/mvebu/bubt.c
@@ -984,7 +984,7 @@ static int check_image_header(void)
}
#endif
-#if defined(CONFIG_ARMADA_3700) || defined(CONFIG_ARMADA_32BIT)
+#if defined(CONFIG_ARMADA_3700) || defined(CONFIG_ARMADA_38X)
static u64 fuse_read_u64(u32 bank)
{
u32 val[2];
@@ -1013,7 +1013,10 @@ static inline u8 maj3(u8 val)
static int bubt_check_boot_mode(const struct bubt_dev *dst)
{
#if defined(CONFIG_ARMADA_3700) || defined(CONFIG_ARMADA_32BIT)
- int mode, secure_mode;
+ int mode;
+#if defined(CONFIG_ARMADA_3700) || defined(CONFIG_ARMADA_38X)
+ int secure_mode;
+#endif
#if defined(CONFIG_ARMADA_3700)
const struct tim_boot_flash_sign *boot_modes = tim_boot_flash_signs;
const struct common_tim_data *hdr =