diff options
author | Jiri Slaby <jslaby@suse.cz> | 2022-04-21 12:17:08 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-22 16:21:53 +0200 |
commit | e3e7b13bffae85e2806c73e3ccacd4447bcb19ed (patch) | |
tree | 88f7cd4880290c4f1ae642ed82eb7c29ec34b1f4 /drivers/tty/serial/cpm_uart/cpm_uart.h | |
parent | serial: pic32: make SERIAL_PIC32_CONSOLE depend on SERIAL_PIC32=y (diff) | |
download | linux-e3e7b13bffae85e2806c73e3ccacd4447bcb19ed.tar.xz linux-e3e7b13bffae85e2806c73e3ccacd4447bcb19ed.zip |
serial: allow COMPILE_TEST for some drivers
Some more serial drivers can be compile-tested under certain
circumstances (when building a specific architecture). So allow for
that.
This reduces the need of zillion mach/subarch-specific configs. And
since the 0day bot has only allmodconfig's for some archs, this
increases build coverage there too.
Note that cpm needs a minor update in the header, so that it drags in
at least some defines (CPM2 ones).
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220421101708.5640-8-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/cpm_uart/cpm_uart.h')
-rw-r--r-- | drivers/tty/serial/cpm_uart/cpm_uart.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/cpm_uart/cpm_uart.h b/drivers/tty/serial/cpm_uart/cpm_uart.h index 6113b953ce25..8c582779cf22 100644 --- a/drivers/tty/serial/cpm_uart/cpm_uart.h +++ b/drivers/tty/serial/cpm_uart/cpm_uart.h @@ -19,6 +19,8 @@ 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 |