From a9eebf69f3787d2637ffb2353528d6c24f20769a Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Mon, 18 May 2020 09:12:30 +0200 Subject: [PATCH] bcm63xx: redboot: fix warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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) --- target/linux/brcm63xx/patches-4.9/400-bcm963xx_flashmap.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/brcm63xx/patches-4.9/400-bcm963xx_flashmap.patch b/target/linux/brcm63xx/patches-4.9/400-bcm963xx_flashmap.patch index c693ace363..378983df17 100644 --- a/target/linux/brcm63xx/patches-4.9/400-bcm963xx_flashmap.patch +++ b/target/linux/brcm63xx/patches-4.9/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)); + } + } + } -- 2.30.2