console_struct.h:97: `MAX_NR_CONSOLES' undeclared here
I applied the patch from tonight to 2.5.50 and got this build error:
http://phoenix.infradead.org/~jsimmons/fbdev.diff.gz <http://phoenix.infradead.org/%7Ejsimmons/fbdev.diff.gz>
gcc -Wp,-MD,kernel/.suspend.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -Iarch/i386/mach-generic -nostdinc -iwithprefix include -DKBUILD_BASENAME=suspend -DKBUILD_MODNAME=suspend -DEXPORT_SYMTAB -c -o kernel/suspend.o kernel/suspend.c
In file included from include/linux/vt_kern.h:12,
from kernel/suspend.c:46:include/linux/console_struct.h:97: MAX_NR_CONSOLES' undeclared here (not in a function) kernel/suspend.c:294:2: warning: #warning This might be broken. We need to somehow wait for data to reach the disk kernel/suspend.c: In function count_and_copy_data_pages':kernel/suspend.c:516: warning: passing arg 1 of mmx_copy_page' makes pointer from integer without a cast kernel/suspend.c:516: warning: passing arg 2 of mmx_copy_page' makes pointer from integer without a cast make[2]: *** [kernel/suspend.o] Error 1
CONFIG_MK7=y
#
# Graphics support
#CONFIG_FB=y
# CONFIG_FB_CLGEN is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not setCONFIG_FB_VESA=yCONFIG_VIDEO_SELECT=y
# CONFIG_FB_HGA is not setCONFIG_FB_RIVA=y
CONFIG_VGA_CONSOLE=y
# CONFIG_MDA_CONSOLE is not setCONFIG_DUMMY_CONSOLE=yCONFIG_FRAMEBUFFER_CONSOLE=yCONFIG_PCI_CONSOLE=y
# CONFIG_FBCON_ADVANCED is not set
# CONFIG_FONTWIDTH8_ONLY is not set
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
Quoted 4 lines
I applied the patch from tonight to 2.5.50 and got this build error:
http://phoenix.infradead.org/~jsimmons/fbdev.diff.gz
<http://phoenix.infradead.org/%7Ejsimmons/fbdev.diff.gz>
Okay. I found the problem. tty.h was missing in this file. I will post another patch soon.
-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
Okay. I applied a fix. I will push it soon.
Quoted 35 lines
gcc -Wp,-MD,kernel/.suspend.o.d -D__KERNEL__ -Iinclude -Wall
(quoted diff) +0
-5-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -Iarch/i386/mach-generic -nostdinc -iwithprefix include -DKBUILD_BASENAME=suspend -DKBUILD_MODNAME=suspend -DEXPORT_SYMTAB -c -o kernel/suspend.o kernel/suspend.cIn file included from
include/linux/vt_kern.h:12,
fromkernel/suspend.c:46:include/linux/console_struct.h:97: `MAX_NR_CONSOLES' undeclared here (not in a function)kernel/suspend.c:294:2: warning: #warning This might be broken. We need to somehow wait for data to reach the diskkernel/suspend.c: In function `count_and_copy_data_pages':kernel/suspend.c:516: warning: passing arg 1 of `mmx_copy_page' makes pointer from integer without a castkernel/suspend.c:516: warning: passing arg 2 of `mmx_copy_page' makes pointer from integer without a cast
make[2]: *** [kernel/suspend.o] Error 1
CONFIG_MK7=y#
# Graphics support
#CONFIG_FB=y
#CONFIG_FB_CLGENis not set
#CONFIG_FB_PM2is not set
#CONFIG_FB_CYBER2000is not set
#CONFIG_FB_IMSTTis not set
#CONFIG_FB_VGA16is not setCONFIG_FB_VESA=yCONFIG_VIDEO_SELECT=y
#CONFIG_FB_HGAis not setCONFIG_FB_RIVA=y
Quoted 14 lines
CONFIG_VGA_CONSOLE=y
#CONFIG_MDA_CONSOLEis not setCONFIG_DUMMY_CONSOLE=yCONFIG_FRAMEBUFFER_CONSOLE=yCONFIG_PCI_CONSOLE=y
#CONFIG_FBCON_ADVANCEDis not set
#CONFIG_FONTWIDTH8_ONLYis not set
#CONFIG_FONTSis not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf