Hi,
I try to build a custom kernel on my embedded system and fail always on the same spot with the command make bzImage:
CC kernel/power/snapshot.o
kernel/power/snapshot.c: In function 'init_header_complete':
kernel/power/snapshot.c:1615:41: error: expected expression before ';' token
kernel/power/snapshot.c: In function 'check_image_kernel':
kernel/power/snapshot.c:1621:46: error: expected expression before ')' token
make[2]: *** [kernel/power/snapshot.o] Error 1
make[1]: *** [kernel/power] Error 2
make: *** [kernel] Error 2
Google pointed me to the include/linux/version.h:
#define LINUX_VERSION_CODE
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) <<
+ (c))
I tried to add it the number 132643 manually but it didn't solve a thing, it looks like the file gets generated during the make bzImage
I'm using linux-3.0.3-patched.tar.xz and unpacked it in /tmp/packages. I also fetched the config file config-3.0.3-tinycore and copied into the linux-3.0.3 folder.
make oldconfig
make bzImage
and then I get the error message.
Thanks for looking into this issue!