1
0
mirror of https://github.com/torvalds/linux.git synced 2024-12-14 15:13:52 +00:00

MIPS: BCM47XX: move constant array from stack

Move the possible nvram sizes from the stack into the data segment

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6044/
This commit is contained in:
Hauke Mehrtens 2013-10-13 22:56:50 +02:00 committed by Ralf Baechle
parent 69733c9b0b
commit f4c4d589d5

View File

@ -22,11 +22,11 @@
#include <asm/mach-bcm47xx/bcm47xx.h>
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++) {