Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/serial: add GENERIC_HARDIRQS dependency

Since SERIAL_CORE needs GENERIC_HARDIRQS (see below) and most serial drivers
select it, just add a GENERIC_HARDIRQS dependency to all serial drivers.

Fixes the compile error below:

drivers/tty/serial/serial_core.c: In function ‘uart_set_info’:
drivers/tty/serial/serial_core.c:725:2: error: implicit declaration of function ‘irq_canonicalize’

Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Heiko Carstens and committed by
Greg Kroah-Hartman
f2eca58f 44a75411

+1 -1
+1 -1
drivers/tty/serial/Kconfig
··· 5 5 if TTY 6 6 7 7 menu "Serial drivers" 8 - depends on HAS_IOMEM 8 + depends on HAS_IOMEM && GENERIC_HARDIRQS 9 9 10 10 source "drivers/tty/serial/8250/Kconfig" 11 11