Skip to contentSkip to conversation

fix swsusp warning

PATCH William Lee Irwin III 1 participant 1 message Nov 15, 2002

lore
Share & tools
lore
#0 lore raw

This fixes a warning caused by conflicting static vs. extern wrt. swsusp.

 include/linux/reboot.h |    7 -------
 kernel/sys.c           |    1 +
 2 files changed, 1 insertion(+), 7 deletions(-)
include/linux/reboot.h +0 -7
diff -urpN cleanup-2.5.47-3/include/linux/reboot.h cleanup-2.5.47-4/include/linux/reboot.h
@@ -48,13 +48,6 @@ extern void machine_restart(char *cmd);
 extern void machine_halt(void);
 extern void machine_power_off(void);
 
-/*
- * Architecture-independent suspend facility
- */
-
-extern void software_suspend(void);
-extern unsigned char software_suspend_enabled;
-
 #endif
 
 #endif /* _LINUX_REBOOT_H */
kernel/sys.c +1 -0
diff -urpN cleanup-2.5.47-3/kernel/sys.c cleanup-2.5.47-4/kernel/sys.c
@@ -21,6 +21,7 @@
 #include <linux/times.h>
 #include <linux/security.h>
 #include <linux/dcookies.h>
+#include <linux/suspend.h>
 
 #include <asm/uaccess.h>
 #include <asm/io.h>