From: Álvaro Fernández Rojas Date: Mon, 18 May 2020 07:12:30 +0000 (+0200) Subject: bcm63xx: redboot: fix warning X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b2c9f82eb4a86a0e4c9d053f012f1cace98f237b;p=oweals%2Fopenwrt.git bcm63xx: redboot: fix warning drivers/mtd/parsers/redboot.c: In function 'parse_redboot_partitions': drivers/mtd/parsers/redboot.c:194:59: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] fis_origin = (buf[i].flash_base & (master->size << 1) - 1); ~~~~~~~~~~~~~~~~~~~~^~~ Signed-off-by: Álvaro Fernández Rojas (cherry picked from commit f314cbe54be4d90e748e18ae5e9fb00d5fd31c91) --- diff --git a/target/linux/brcm63xx/patches-4.14/400-bcm963xx_flashmap.patch b/target/linux/brcm63xx/patches-4.14/400-bcm963xx_flashmap.patch index c693ace363..378983df17 100644 --- a/target/linux/brcm63xx/patches-4.14/400-bcm963xx_flashmap.patch +++ b/target/linux/brcm63xx/patches-4.14/400-bcm963xx_flashmap.patch @@ -40,7 +40,7 @@ Signed-off-by: Axel Gembe + } else { + for (i = 0; i < numslots; i++) { + if (!strncmp(buf[i].name, "RedBoot", 8)) { -+ fis_origin = (buf[i].flash_base & (master->size << 1) - 1); ++ fis_origin = (buf[i].flash_base & ((master->size << 1) - 1)); + } + } + }