summaryrefslogtreecommitdiff
path: root/arch/x86/machine/ioapic.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-12-03 15:11:23 +0100
committerRichard Braun <rbraun@sceen.net>2017-12-03 15:11:23 +0100
commitc7d2507fc455421429a531d722947ab415259c77 (patch)
tree52609a956ec9e3bd1f1274aa9d799597866bfcd1 /arch/x86/machine/ioapic.c
parent303ed5305f8dae17ab46aa1e0dc6086d4277808c (diff)
Revert "Make assert have no side effects"
This reverts commit d18d0e85596f90e0bd597b33d58209d0b3973c95.
Diffstat (limited to 'arch/x86/machine/ioapic.c')
-rw-r--r--arch/x86/machine/ioapic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/machine/ioapic.c b/arch/x86/machine/ioapic.c
index d70ec92b..82fbd6d5 100644
--- a/arch/x86/machine/ioapic.c
+++ b/arch/x86/machine/ioapic.c
@@ -209,7 +209,7 @@ ioapic_create(unsigned int apic_id, uintptr_t addr, unsigned int gsi_base)
return ioapic;
}
-__unused static bool
+static bool
ioapic_has_gsi(const struct ioapic *ioapic, unsigned int gsi)
{
return ((gsi >= ioapic->first_gsi) && (gsi <= ioapic->last_gsi));