acpi: resolve warnings

This commit is contained in:
David van Moolenbroek 2011-12-10 16:14:23 +01:00
parent 26d359a30c
commit c6459e8ec1
2 changed files with 6 additions and 7 deletions

View file

@ -123,7 +123,7 @@ extern struct machine machine;
PRIVATE unsigned pci_inb(u16_t port) {
u32_t value;
unsigned long value;
int s;
if ((s=sys_inb(port, &value)) !=OK)
printf("ACPI: warning, sys_inb failed: %d\n", s);
@ -131,7 +131,7 @@ PRIVATE unsigned pci_inb(u16_t port) {
}
PRIVATE unsigned pci_inw(u16_t port) {
u32_t value;
unsigned long value;
int s;
if ((s=sys_inw(port, &value)) !=OK)
printf("ACPI: warning, sys_inw failed: %d\n", s);
@ -139,7 +139,7 @@ PRIVATE unsigned pci_inw(u16_t port) {
}
PRIVATE unsigned pci_inl(u16_t port) {
u32_t value;
unsigned long value;
int s;
if ((s=sys_inl(port, &value)) !=OK)
printf("ACPI: warning, sys_inl failed: %d\n", s);
@ -355,9 +355,6 @@ AcpiOsVprintf (
const char *Fmt,
va_list Args)
{
INT32 Count = 0;
UINT8 Flags;
vprintf (Fmt, Args);
printf("\n");

View file

@ -91,6 +91,7 @@ map_error:
((struct acpi_map_bridge_resp *)m)->err = err;
}
#if 0
PRIVATE ACPI_STATUS device_get_int(ACPI_HANDLE handle,
char * name,
ACPI_INTEGER * val)
@ -110,6 +111,7 @@ PRIVATE ACPI_STATUS device_get_int(ACPI_HANDLE handle,
return status;
}
#endif
PUBLIC void do_get_irq(message *m)
{
@ -217,7 +219,7 @@ PRIVATE ACPI_STATUS get_pci_irq_routing(struct pci_bridge * bridge)
continue;
}
ires.bridge = bridge;
ires,tbl = tbl;
ires.tbl = tbl;
status = AcpiWalkResources(src_handle, METHOD_NAME__CRS,
get_irq_resource, &ires);
if (ACPI_FAILURE(status)) {