[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/6] fixup acpi base table search
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 2/6] fixup acpi base table search |
Date: |
Sun, 28 Mar 2021 23:14:52 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
I applied it, except:
Damien Zammit, le dim. 28 mars 2021 17:03:16 +1100, a ecrit:
> @@ -421,6 +414,9 @@ acpi_apic_parse_table(struct acpi_apic *apic)
> acpi_apic_add_irq_override(irq_override_entry);
> break;
>
> + default:
> + /* FIXME: There is another unhandled case */
> + break;
> }
>
> /* Get next APIC entry. */
You don't actually want "default: break;", since that'll precisely bury
the fact that there are unhandled cases: you're telling the compiler
that all other cases don't need anything, and prevent it from emitting a
warning that not all values of the enum are handled. Here we don't have
an enum so it doesn't matter, but if anybody was to invent one, we would
miss the warning.
Samuel
- [PATCH v2 gnumach] - IOAPIC and LAPIC support, Damien Zammit, 2021/03/28
- [PATCH 2/6] fixup acpi base table search, Damien Zammit, 2021/03/28
- Re: [PATCH 2/6] fixup acpi base table search,
Samuel Thibault <=
- [PATCH 1/6] Make linux drivers optional, Damien Zammit, 2021/03/28
- [PATCH 3/6] Don't allow writing to acpi table in memory, Damien Zammit, 2021/03/28
- [PATCH 4/6] Existing SMP apic code improvements, Damien Zammit, 2021/03/28
- [PATCH 5/6] Move PIC interrupt vector base from 0x40 to 0x20, Damien Zammit, 2021/03/28
- [PATCH 6/6] ioapic support switchable back to pic, Damien Zammit, 2021/03/28