Revert "serial: allow COMPILE_TEST for some drivers" partially
Jiri Slaby (SUSE)
maintainerPATCH 1/1 Revert "serial: allow COMPILE_TEST for some drivers" partially
This reverts commit e3e7b13bffae85e2806c73e3ccacd4447bcb19ed partially.
It turns out, the image does not link for CPM:
powerpc-linux-ld: drivers/tty/serial/cpm_uart/cpm_uart_core.o: in function `cpm_uart_release_port':
cpm_uart_core.c:(.text+0x598): undefined reference to `cpm_uart_freebuf'
So do not allow compile testing on this driver.
--- drivers/tty/serial/Kconfig | 2 +- drivers/tty/serial/cpm_uart/cpm_uart.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-)
drivers/tty/serial/Kconfig +1 -1
@@ -762,7 +762,7 @@ config SERIAL_PMACZILOG_CONSOLE config SERIAL_CPM tristate "CPM SCC/SMC serial port support" - depends on CPM2 || CPM1 || (PPC32 && COMPILE_TEST) + depends on CPM2 || CPM1 select SERIAL_CORE help This driver supports the SCC and SMC serial ports on Motorola
drivers/tty/serial/cpm_uart/cpm_uart.h +0 -2
@@ -19,8 +19,6 @@ struct gpio_desc;#include "cpm_uart_cpm2.h" #elif defined(CONFIG_CPM1 )#include "cpm_uart_cpm1.h" -#elif defined(CONFIG_COMPILE_TEST ) -#include "cpm_uart_cpm2.h" #endif #define SERIAL_CPM_MAJOR 204
Signature · 1 line
2.40.1
Quoted 10 lines · Jiri Slaby (SUSE)
This reverts commit
e3e7b13bffae85e2806c73e3ccacd4447bcb19edpartially.
It turns out, the image does not link for CPM:
powerpc-linux-ld:drivers/tty/serial/cpm_uart/cpm_uart_core.o: in function `cpm_uart_release_port':
cpm_uart_core.c:(.text+0x598): undefined reference to `cpm_uart_freebuf'So do not allow compile testing on this driver.
Signed-off-by Jiri Slaby (SUSE) <[email protected]>Reported-by Randy Dunlap <[email protected]>Reported-by Stephen Rothwell <[email protected]>
Thanks.
Quoted 31 lines
--- drivers/tty/serial/Kconfig | 2 +- drivers/tty/serial/cpm_uart/cpm_uart.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-)drivers/tty/serial/Kconfig +1
-1@@ -762,7 +762,7 @@ config SERIAL_PMACZILOG_CONSOLE config SERIAL_CPM tristate "CPM SCC/SMC serial port support" - depends on CPM2 || CPM1 || (PPC32 && COMPILE_TEST) + depends on CPM2 || CPM1 select SERIAL_CORE help This driver supports the SCC and SMC serial ports on Motoroladrivers/tty/serial/cpm_uart/cpm_uart.h +0
-2@@ -19,8 +19,6 @@ struct gpio_desc;#include "cpm_uart_cpm2.h" #elif defined(CONFIG_CPM1 )#include "cpm_uart_cpm1.h" -#elif defined(CONFIG_COMPILE_TEST ) -#include "cpm_uart_cpm2.h" #endif #define SERIAL_CPM_MAJOR 204
Signature · 1 line
~Randy
Jiri Slaby
maintainerPlease take these fixes instead:
https://lore.kernel.org/all/[email protected]/
Quoted 41 lines · Jiri Slaby (SUSE)
This reverts commit
e3e7b13bffae85e2806c73e3ccacd4447bcb19edpartially.
It turns out, the image does not link for CPM:
powerpc-linux-ld:drivers/tty/serial/cpm_uart/cpm_uart_core.o: in function `cpm_uart_release_port':cpm_uart_core.c:(.text+0x598): undefined reference to `cpm_uart_freebuf'So do not allow compile testing on this driver.
Signed-off-by Jiri Slaby (SUSE) <[email protected]>Reported-by Randy Dunlap <[email protected]>Reported-by Stephen Rothwell <[email protected]>--- drivers/tty/serial/Kconfig | 2 +- drivers/tty/serial/cpm_uart/cpm_uart.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-)drivers/tty/serial/Kconfig +1
-1@@ -762,7 +762,7 @@ config SERIAL_PMACZILOG_CONSOLE config SERIAL_CPM tristate "CPM SCC/SMC serial port support" - depends on CPM2 || CPM1 || (PPC32 && COMPILE_TEST) + depends on CPM2 || CPM1 select SERIAL_CORE help This driver supports the SCC and SMC serial ports on Motoroladrivers/tty/serial/cpm_uart/cpm_uart.h +0
-2@@ -19,8 +19,6 @@ struct gpio_desc;#include "cpm_uart_cpm2.h" #elif defined(CONFIG_CPM1 )#include "cpm_uart_cpm1.h" -#elif defined(CONFIG_COMPILE_TEST ) -#include "cpm_uart_cpm2.h" #endif #define SERIAL_CPM_MAJOR 204
Signature · 1 line
js
Greg KH
maintainerQuoted 2 lines · Jiri Slaby
Please take these fixes instead:
https://lore.kernel.org/all/[email protected]/
Will do, thanks.
greg k-h