Re: 2.5.21 -- suspend.h:58: parse error before "__nosavedata"

From: Skip Ford (skip.ford@verizon.net)
Date: Sun Jun 09 2002 - 03:40:26 EST


Miles Lane wrote:
> gcc -Wp,-MD,.suspend.o.d -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=suspend -DEXPORT_SYMTAB -c -o suspend.o suspend.c
> In file included from suspend.c:40:
> /usr/src/linux/include/linux/suspend.h:58: parse error before "__nosavedata"
> /usr/src/linux/include/linux/suspend.h:58: warning: type defaults to `int' in declaration of `__nosavedata'
> /usr/src/linux/include/linux/suspend.h:58: warning: data definition has no type or storage class
> /usr/src/linux/include/linux/suspend.h:59: parse error before "__nosavedata"
> /usr/src/linux/include/linux/suspend.h:59: warning: type defaults to `int' in declaration of `__nosavedata'
> /usr/src/linux/include/linux/suspend.h:59: warning: data definition has no type or storage class

Looks like suspend.h needs init.h

--- linux/include/linux/suspend.h~ Sun Jun 9 04:31:05 2002
+++ linux/include/linux/suspend.h Sun Jun 9 04:31:22 2002
@@ -7,6 +7,7 @@
 #include <linux/swap.h>
 #include <linux/notifier.h>
 #include <linux/config.h>
+#include <linux/init.h>
 
 extern unsigned char software_suspend_enabled;

-- 
Skip
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:13 EST