]> git.baikalelectronics.ru Git - kernel.git/commit
serial_core: Un-ifdef sysrq SUPPORT_SYSRQ
authorDmitry Safonov <dima@arista.com>
Fri, 13 Dec 2019 00:06:02 +0000 (00:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 14:10:17 +0000 (15:10 +0100)
commit083d55f7a6a92fb8e88bb679fbdec1c4cb34f8f5
tree45667cc951a1acdb82f63f05097ea9652e71cd43
parentbfe36c481a246cff53412edd146e0b89505cacb2
serial_core: Un-ifdef sysrq SUPPORT_SYSRQ

The SUPPORT_SYSRQ is messy: every .c source should define it before
including "serial_core.h" if sysrq is supported or struct uart_port will
differ in sizes. Also this prevents moving to serial_core.c functions:
uart_handle_sysrq_char(), uart_prepare_sysrq_char(),
uart_unlock_and_check_sysrq().

It doesn't save many bytes in the structure, and a better way to reduce
it's size would be making rs485 and iso7816 pointers.

Introduce `has_sysrq` member to be used by serial line drivers further.

Signed-off-by: Dmitry Safonov <dima@arista.com>
Link: https://lore.kernel.org/r/20191213000657.931618-4-dima@arista.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/serial_core.h