mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-21 07:01:57 +00:00
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: f7b0bbca2b
("cmd: mvebu/bubt: Check for A38x/A37xx OTP secure bits and secure boot")
Signed-off-by: Pali Rohár <pali@kernel.org>
This commit is contained in:
parent
329393f17f
commit
c624c1cbcf
1 changed files with 5 additions and 2 deletions
|
@ -984,7 +984,7 @@ static int check_image_header(void)
|
||||||
}
|
}
|
||||||
#endif
|
#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)
|
static u64 fuse_read_u64(u32 bank)
|
||||||
{
|
{
|
||||||
u32 val[2];
|
u32 val[2];
|
||||||
|
@ -1013,7 +1013,10 @@ static inline u8 maj3(u8 val)
|
||||||
static int bubt_check_boot_mode(const struct bubt_dev *dst)
|
static int bubt_check_boot_mode(const struct bubt_dev *dst)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_ARMADA_3700) || defined(CONFIG_ARMADA_32BIT)
|
#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)
|
#if defined(CONFIG_ARMADA_3700)
|
||||||
const struct tim_boot_flash_sign *boot_modes = tim_boot_flash_signs;
|
const struct tim_boot_flash_sign *boot_modes = tim_boot_flash_signs;
|
||||||
const struct common_tim_data *hdr =
|
const struct common_tim_data *hdr =
|
||||||
|
|
Loading…
Reference in a new issue