From 63e86f792167e6cc2e9600d00b184a3c83fe7498 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 5 Nov 2020 17:30:39 +0100 Subject: Added warning flags and fixed them :) --- kernel/drivers/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/drivers/pci.c') diff --git a/kernel/drivers/pci.c b/kernel/drivers/pci.c index 6130cd0..72b9aa8 100644 --- a/kernel/drivers/pci.c +++ b/kernel/drivers/pci.c @@ -100,7 +100,7 @@ static u32 pci_isa = 0; static u8 pci_remaps[4] = { 0 }; // Remap -void pci_install() +void pci_install(void) { pci_scan(&find_isa_bridge, -1, &pci_isa); if (pci_isa) { @@ -122,7 +122,7 @@ int pci_get_interrupt(u32 device) u32 irq_pin = pci_read_field(device, 0x3D, 1); if (irq_pin == 0) return (int)pci_read_field(device, PCI_INTERRUPT_LINE, 1); - int pirq = (int)(irq_pin + pci_extract_slot(device) - 2) % 4; + int pirq = ((int)irq_pin + pci_extract_slot(device) - 2) % 4; int int_line = (int)pci_read_field(device, PCI_INTERRUPT_LINE, 1); if (pci_remaps[pirq] >= 0x80) { -- cgit v1.2.3