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

Configure Feed

Select the types of activity you want to include in your feed.

serial: 8250: make share_irqs local to 8250_platform

share_irqs is used solely in 8250_platform. Make it local to that file.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://patch.msgid.link/20251119092457.826789-6-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
f9066dac 9b225963

+2 -10
-8
drivers/tty/serial/8250/8250.h
··· 98 98 99 99 extern unsigned int nr_uarts; 100 100 101 - #ifdef CONFIG_SERIAL_8250_SHARE_IRQ 102 - #define SERIAL8250_SHARE_IRQS 1 103 - #else 104 - #define SERIAL8250_SHARE_IRQS 0 105 - #endif 106 - 107 - extern unsigned int share_irqs; 108 - 109 101 #define SERIAL8250_PORT_FLAGS(_base, _irq, _flags) \ 110 102 { \ 111 103 .iobase = _base, \
+2 -2
drivers/tty/serial/8250/8250_platform.c
··· 30 30 * share_irqs: Whether we pass IRQF_SHARED to request_irq(). 31 31 * This option is unsafe when used on edge-triggered interrupts. 32 32 */ 33 - unsigned int share_irqs = SERIAL8250_SHARE_IRQS; 33 + static bool share_irqs = IS_ENABLED(CONFIG_SERIAL_8250_SHARE_IRQ); 34 34 35 35 unsigned int nr_uarts = CONFIG_SERIAL_8250_RUNTIME_UARTS; 36 36 ··· 378 378 MODULE_LICENSE("GPL"); 379 379 MODULE_DESCRIPTION("Generic 8250/16x50 serial platform driver"); 380 380 381 - module_param_hw(share_irqs, uint, other, 0644); 381 + module_param_hw(share_irqs, bool, other, 0644); 382 382 MODULE_PARM_DESC(share_irqs, "Share IRQs with other non-8250/16x50 devices (unsafe)"); 383 383 384 384 module_param(nr_uarts, uint, 0644);