serial: allow COMPILE_TEST for some drivers
authorJiri Slaby <jslaby@suse.cz>
Thu, 21 Apr 2022 10:17:08 +0000 (12:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Apr 2022 14:21:53 +0000 (16:21 +0200)
commite3e7b13bffae85e2806c73e3ccacd4447bcb19ed
tree88f7cd4880290c4f1ae642ed82eb7c29ec34b1f4
parent86b9602f8203b7b3b5a189fba759b58c9d6f378e
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>
drivers/tty/serial/Kconfig
drivers/tty/serial/cpm_uart/cpm_uart.h