USB: serial: inline sysrq dummy function
authorJohan Hovold <johan@kernel.org>
Wed, 8 Jul 2020 12:49:56 +0000 (14:49 +0200)
committerJohan Hovold <johan@kernel.org>
Thu, 9 Jul 2020 07:20:06 +0000 (09:20 +0200)
commit4fbfbdb5726ff15bdce1c371efa1281b28322f64
treea0c36c4a106929f4b9d5604f247d46e6a718691a
parent8c6a223186a6c3fe7cd381ef7e1d60ea6fd8fd52
USB: serial: inline sysrq dummy function

Inline the dummy sysrq character handling when either console support or
magic-sysrq support isn't enabled to allow the compiler to eliminate
unused code.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/generic.c
include/linux/usb/serial.h