Skip to contentSkip to conversation

compile warning fix patch 2.4.26pre1

PATCH Sérgio Monteiro Basto 1 participant 1 message Feb 29, 2004 ACPI

lore
Share & tools
lore
#0 lore raw

Hi
compiling 2.4.26-pre1 appears this:

system.c: In function `acpi_power_off':
system.c:98: warning: implicit declaration of function `acpi_system_save_state' system.c: At top level:
system.c:178: warning: type mismatch with previous implicit declaration system.c:98: warning: previous implicit declaration of acpi_system_save_state' system.c:178: warning: acpi_system_save_state' was previously implicitly declared to return int' system.c: In function acpi_power_off':
system.c:98: warning: implicit declaration of function `acpi_system_save_state' system.c: At top level:
system.c:178: warning: type mismatch with previous implicit declaration system.c:98: warning: previous implicit declaration of acpi_system_save_state' system.c:178: warning: acpi_system_save_state' was previously implicitly declared to return `int'

this could be resolved with this trivial patch

Thanks

Signature · 1 line
Sérgio M. B.
drivers/acpi/system.c renamed from drivers/acpi/system.orig +1 -0
@@ -61,6 +61,7 @@
 static int acpi_system_remove (struct acpi_device *device, int type);
 
 acpi_status acpi_suspend (u32 state);
+acpi_status acpi_system_save_state (u32 state);
 
 static struct acpi_driver acpi_system_driver = {
 	.name =		ACPI_SYSTEM_DRIVER_NAME,