diff options
author | Johannes Berg <johannes.berg@intel.com> | 2020-12-02 12:59:54 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2020-12-13 22:22:23 +0100 |
commit | 0737402f42d3cdc7b7ef27e8cc7caf1e9ba2a2bc (patch) | |
tree | 980d03d11fec208016c0b3745bf12e06f4efc75a /arch/um/include | |
parent | 458e1f7da004ec264cf2a9252822955ba4f7e9a0 (diff) |
um: irq: Reduce irq_reg allocation
We don't need an array of 4 entries to capture three and the
name 'MAX_IRQ_TYPE' really gets confusing as well. Remove it
and add a correct NUM_IRQ_TYPES, and use that correctly.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/include')
-rw-r--r-- | arch/um/include/shared/irq_user.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/include/shared/irq_user.h b/arch/um/include/shared/irq_user.h index 2dd5fd7d9443..5e975a9e8354 100644 --- a/arch/um/include/shared/irq_user.h +++ b/arch/um/include/shared/irq_user.h @@ -12,7 +12,7 @@ #define IRQ_READ 0 #define IRQ_WRITE 1 #define IRQ_NONE 2 -#define MAX_IRQ_TYPE (IRQ_NONE + 1) +#define NUM_IRQ_TYPES (IRQ_NONE + 1) struct siginfo; extern void sigio_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs); |