diff options
| author | Bart Van Assche <bvanassche@acm.org> | 2024-10-15 22:09:53 +0300 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2024-10-16 22:56:59 +0300 |
| commit | ef4c675dc2961ee533bdc1ea20390761df0af5be (patch) | |
| tree | 31161e2c4767aae1f14f220cfd6b32748bfc4178 /include | |
| parent | 1ad2048bf7146efb83bc033147ca1611a7fe8494 (diff) | |
| download | linux-ef4c675dc2961ee533bdc1ea20390761df0af5be.tar.xz | |
genirq: Unexport nr_irqs
Unexport nr_irqs and declare it static now that all code that reads or
modifies nr_irqs has been converted to number_of_interrupts() /
set_number_of_interrupts(). Change the type of 'nr_irqs' from 'int' into
'unsigned int' to match the return type and argument type of the
irq_get_nr_iqs() / irq_set_nr_irqs() functions.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20241015190953.1266194-23-bvanassche@acm.org
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/irqnr.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/irqnr.h b/include/linux/irqnr.h index a33088d27c54..e97206c721a0 100644 --- a/include/linux/irqnr.h +++ b/include/linux/irqnr.h @@ -5,7 +5,6 @@ #include <uapi/linux/irqnr.h> -extern int nr_irqs; unsigned int irq_get_nr_irqs(void) __pure; unsigned int irq_set_nr_irqs(unsigned int nr); extern struct irq_desc *irq_to_desc(unsigned int irq); |
