1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-05 23:32:00 +03:00

ramips: use COMMAND_LINE_SIZE directly

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21606 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2010-05-28 19:45:24 +00:00
parent 06ec6493fe
commit 3ab0d99857
2 changed files with 1 additions and 12 deletions

View File

@ -46,7 +46,7 @@ static inline void *to_ram_addr(void *addr)
static void __init prom_append_cmdline(const char *name,
const char *value)
{
char buf[CL_SIZE];
char buf[COMMAND_LINE_SIZE];
snprintf(buf, sizeof(buf), " %s=%s", name, value);
strlcat(arcs_cmdline, buf, sizeof(arcs_cmdline));

View File

@ -1,11 +0,0 @@
--- a/arch/mips/include/asm/bootinfo.h
+++ b/arch/mips/include/asm/bootinfo.h
@@ -12,6 +12,8 @@
#ifndef _ASM_BOOTINFO_H
#define _ASM_BOOTINFO_H
+#define CL_SIZE COMMAND_LINE_SIZE
+
#include <linux/types.h>
#include <asm/setup.h>