syslog/ramlog: Fix error: argument to 'section' attribute is not valid
mach-o section specifier requires a segment and section separated by a comma Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
671973b39c
commit
8a880df37d
|
@ -244,6 +244,7 @@ if RAMLOG_SYSLOG
|
|||
config RAMLOG_BUFFER_SECTION
|
||||
string "The section where ramlog buffer is located"
|
||||
default ".bss"
|
||||
depends on !ARCH_SIM
|
||||
---help---
|
||||
The section where ramlog buffer is located.
|
||||
The section shall not be initialized on system boot.
|
||||
|
|
|
@ -125,7 +125,10 @@ static const struct file_operations g_ramlogfops =
|
|||
|
||||
#ifdef CONFIG_RAMLOG_SYSLOG
|
||||
static char g_sysbuffer[CONFIG_RAMLOG_BUFSIZE]
|
||||
locate_data(CONFIG_RAMLOG_BUFFER_SECTION);
|
||||
#ifdef CONFIG_RAMLOG_BUFFER_SECTION
|
||||
locate_data(CONFIG_RAMLOG_BUFFER_SECTION)
|
||||
#endif
|
||||
;
|
||||
|
||||
/* This is the device structure for the console or syslogging function. It
|
||||
* must be statically initialized because the RAMLOG ramlog_putc function
|
||||
|
|
Loading…
Reference in New Issue