From: Gabor Juhos Date: Mon, 14 Nov 2011 13:07:47 +0000 (+0000) Subject: ar71xx: fix a compiler warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=12dae960973bc2fbd6b003c5980ee0fce52a56c9;p=openwrt%2Fstaging%2Fjow.git ar71xx: fix a compiler warning SVN-Revision: 29110 --- diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c b/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c index c40dae319a..293f9b25eb 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/prom.c @@ -33,13 +33,13 @@ static inline int is_valid_ram_addr(void *addr) return 0; } +static char ar71xx_cmdline_buf[COMMAND_LINE_SIZE] __initdata; static void __init ar71xx_prom_append_cmdline(const char *name, const char *value) { - char buf[COMMAND_LINE_SIZE]; - - snprintf(buf, sizeof(buf), " %s=%s", name, value); - strlcat(arcs_cmdline, buf, sizeof(arcs_cmdline)); + snprintf(ar71xx_cmdline_buf, sizeof(ar71xx_cmdline_buf), + " %s=%s", name, value); + strlcat(arcs_cmdline, ar71xx_cmdline_buf, sizeof(arcs_cmdline)); } static const char * __init ar71xx_prom_find_env(char **envp, const char *name)