From: Hauke Mehrtens Date: Sun, 13 Oct 2013 20:56:50 +0000 (+0200) Subject: MIPS: BCM47XX: move constant array from stack X-Git-Tag: v5.15~18517^2~112 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4c4d589d5c1046bb5a9c17d98afcda43e04a315;p=platform%2Fkernel%2Flinux-starfive.git MIPS: BCM47XX: move constant array from stack Move the possible nvram sizes from the stack into the data segment Signed-off-by: Hauke Mehrtens Signed-off-by: John Crispin Patchwork: http://patchwork.linux-mips.org/patch/6044/ --- diff --git a/arch/mips/bcm47xx/nvram.c b/arch/mips/bcm47xx/nvram.c index b4c585b..085a3ee 100644 --- a/arch/mips/bcm47xx/nvram.c +++ b/arch/mips/bcm47xx/nvram.c @@ -22,11 +22,11 @@ #include static char nvram_buf[NVRAM_SPACE]; +static const u32 nvram_sizes[] = {0x8000, 0xF000, 0x10000}; static u32 find_nvram_size(u32 end) { struct nvram_header *header; - u32 nvram_sizes[] = {0x8000, 0xF000, 0x10000}; int i; for (i = 0; i < ARRAY_SIZE(nvram_sizes); i++) {