Skip to contentSkip to conversation

acpi: fix compile warnings

PATCH Applied Andreas Herrmann 2 participants 2 messages Jun 19, 2007 – Jun 22, 2007 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 6/12 acpi: fix compile warnings

Fix compile warnings:

drivers/acpi/bus.c: In function 'acpi_bus_get_power':
drivers/acpi/bus.c:162: warning: implicit declaration of function 'acpi_power_get_inferred_state' drivers/acpi/bus.c: In function 'acpi_bus_set_power':
drivers/acpi/bus.c:232: warning: implicit declaration of function 'acpi_power_transition'

---

drivers/acpi/bus.c +2 -0
index b4a9ea5..e01dca1 100644
@@ -43,6 +43,8 @@ ACPI_MODULE_NAME("bus");
 #ifdef	CONFIG_X86
 extern void __init acpi_pic_sci_set_trigger(unsigned int irq, u16 trigger);
 #endif
+extern int acpi_power_get_inferred_state(struct acpi_device *);
+extern int acpi_power_transition(struct acpi_device *, int);
 
 struct acpi_device *acpi_root;
 struct proc_dir_entry *acpi_root_dir;
#1 lore raw
Quoted 14 lines · Andreas Herrmann

Fix compile warnings:

drivers/acpi/bus.c: In function 'acpi_bus_get_power':
drivers/acpi/bus.c:162: warning: implicit declaration of function 'acpi_power_get_inferred_state' drivers/acpi/bus.c: In function 'acpi_bus_set_power':
drivers/acpi/bus.c:232: warning: implicit declaration of function 'acpi_power_transition'

---

drivers/acpi/bus.c +0 -0
index b4a9ea5..e01dca1 100644

drivers/acpi/bus.c ACPI_MODULE_NAME("bus"); · line 47

Quoted 6 lines
drivers/acpi/bus.c +2 -0
@@ -43,6 +43,8 @@ ACPI_MODULE_NAME("bus");
 #ifdef	CONFIG_X86
 extern void __init acpi_pic_sci_set_trigger(unsigned int irq, u16 trigger);
 #endif
+extern int acpi_power_get_inferred_state(struct acpi_device *);
+extern int acpi_power_transition(struct acpi_device *, int);
...

NAK, they belong into a header file.

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed