cris: debugport: Fix section mismatches
Section mismatches can now cause build failures, such as for cris:allnoconfig. Rename affected variables to end with _console to make section mismatch checks happy. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
This commit is contained in:
parent
c5a37883f4
commit
56edefc98a
|
@ -468,7 +468,7 @@ etrax_console_device(struct console* co, int *index)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct console sercons = {
|
static struct console ser_console = {
|
||||||
name : "ttyS",
|
name : "ttyS",
|
||||||
write: console_write,
|
write: console_write,
|
||||||
read : NULL,
|
read : NULL,
|
||||||
|
@ -480,7 +480,7 @@ static struct console sercons = {
|
||||||
cflag : 0,
|
cflag : 0,
|
||||||
next : NULL
|
next : NULL
|
||||||
};
|
};
|
||||||
static struct console sercons0 = {
|
static struct console ser0_console = {
|
||||||
name : "ttyS",
|
name : "ttyS",
|
||||||
write: console_write,
|
write: console_write,
|
||||||
read : NULL,
|
read : NULL,
|
||||||
|
@ -493,7 +493,7 @@ static struct console sercons0 = {
|
||||||
next : NULL
|
next : NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct console sercons1 = {
|
static struct console ser1_console = {
|
||||||
name : "ttyS",
|
name : "ttyS",
|
||||||
write: console_write,
|
write: console_write,
|
||||||
read : NULL,
|
read : NULL,
|
||||||
|
@ -505,7 +505,7 @@ static struct console sercons1 = {
|
||||||
cflag : 0,
|
cflag : 0,
|
||||||
next : NULL
|
next : NULL
|
||||||
};
|
};
|
||||||
static struct console sercons2 = {
|
static struct console ser2_console = {
|
||||||
name : "ttyS",
|
name : "ttyS",
|
||||||
write: console_write,
|
write: console_write,
|
||||||
read : NULL,
|
read : NULL,
|
||||||
|
@ -517,7 +517,7 @@ static struct console sercons2 = {
|
||||||
cflag : 0,
|
cflag : 0,
|
||||||
next : NULL
|
next : NULL
|
||||||
};
|
};
|
||||||
static struct console sercons3 = {
|
static struct console ser3_console = {
|
||||||
name : "ttyS",
|
name : "ttyS",
|
||||||
write: console_write,
|
write: console_write,
|
||||||
read : NULL,
|
read : NULL,
|
||||||
|
@ -539,17 +539,17 @@ init_etrax_debug(void)
|
||||||
static int first = 1;
|
static int first = 1;
|
||||||
|
|
||||||
if (!first) {
|
if (!first) {
|
||||||
unregister_console(&sercons);
|
unregister_console(&ser_console);
|
||||||
register_console(&sercons0);
|
register_console(&ser0_console);
|
||||||
register_console(&sercons1);
|
register_console(&ser1_console);
|
||||||
register_console(&sercons2);
|
register_console(&ser2_console);
|
||||||
register_console(&sercons3);
|
register_console(&ser3_console);
|
||||||
init_dummy_console();
|
init_dummy_console();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
first = 0;
|
first = 0;
|
||||||
register_console(&sercons);
|
register_console(&ser_console);
|
||||||
start_port(port);
|
start_port(port);
|
||||||
#ifdef CONFIG_ETRAX_KGDB
|
#ifdef CONFIG_ETRAX_KGDB
|
||||||
start_port(kgdb_port);
|
start_port(kgdb_port);
|
||||||
|
|
Loading…
Reference in a new issue