Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 12 Oct 2002 21:54:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 12 Oct 2002 21:54:31 -0400 Received: from p0032.as-l042.contactel.cz ([194.108.237.32]:11904 "EHLO ppc.vc.cvut.cz") by vger.kernel.org with ESMTP id ; Sat, 12 Oct 2002 21:54:11 -0400 Date: Sun, 13 Oct 2002 03:53:01 +0200 From: Petr Vandrovec To: Bob Billson Cc: linux-kernel@vger.kernel.org, James Simmons Subject: Re: 2.5.42 compiler error in video/vga16fb.c Message-ID: <20021013015301.GB1508@ppc.vc.cvut.cz> References: <20021012230145.GA3508@etain.bhive.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021012230145.GA3508@etain.bhive.dhs.org> User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 50838 Lines: 1704 On Sat, Oct 12, 2002 at 07:01:45PM -0400, Bob Billson wrote: > In drivers/video/vga16fb.c gcc (2.95.4 and 3.2) gives: > > gcc -Wp,-MD,drivers/video/.vga16fb.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -Iarch/i386/mach-generic -nostdinc -iwithprefix include -DKBUILD_BASENAME=vga16fb -c -o drivers/video/vga16fb.o drivers/video/vga16fb.c > drivers/video/vga16fb.c: In function `vga16fb_set_disp': > drivers/video/vga16fb.c:177: structure has no member named `visual' > drivers/video/vga16fb.c:178: structure has no member named `type' > drivers/video/vga16fb.c:179: structure has no member named `type_aux' > drivers/video/vga16fb.c:180: structure has no member named `ypanstep' > drivers/video/vga16fb.c:181: structure has no member named `ywrapstep' > drivers/video/vga16fb.c:182: structure has no member named `line_length' It looks like that nobody is interested in VGA anymore. Are there any objections against patch below? It is for current 2.5.42-bk, and it fixes vga16fb compilability, and adds -depth 8 (to get 320x200, or 360x480 in planar mode) and -depth 0 (to get fast textmode) to the vga16fb. If there are no objections, I'll split it up and send to Linus. But as I already said (and already asked), I'm not going to be vga16fb maintainer (because of I use matroxfb everywhere), so if there is somebody else who has vga16fb fixes, or who wants to maintain vga16fb, please step up... Best regards, Petr Vandrovec vandrove@vc.cvut.cz diff -urdN linux/drivers/video/Config.help linux/drivers/video/Config.help --- linux/drivers/video/Config.help 2002-10-13 02:32:19.000000000 +0200 +++ linux/drivers/video/Config.help 2002-10-13 02:41:20.000000000 +0200 @@ -250,6 +250,11 @@ Only answer Y here if you have a (very old) VGA card that isn't VESA 2 compatible. +CONFIG_FBCON_VGA + This is the low level frame buffer console driver for VGA text mode; + it is used by frame buffer device drivers that support VGA text + mode. + CONFIG_FB_VGA16 This is the frame buffer device driver for VGA 16 color graphic cards. Say Y if you have such a card. diff -urdN linux/drivers/video/Config.in linux/drivers/video/Config.in --- linux/drivers/video/Config.in 2002-10-13 02:33:09.000000000 +0200 +++ linux/drivers/video/Config.in 2002-10-13 02:41:20.000000000 +0200 @@ -234,6 +234,7 @@ tristate ' Atari interleaved bitplanes (8 planes) support' CONFIG_FBCON_IPLAN2P8 # tristate ' Atari interleaved bitplanes (16 planes) support' CONFIG_FBCON_IPLAN2P16 tristate ' VGA 16-color planar support' CONFIG_FBCON_VGA_PLANES + tristate ' VGA characters/attributes support' CONFIG_FBCON_VGA tristate ' HGA monochrome support (EXPERIMENTAL)' CONFIG_FBCON_HGA else # Guess what we need @@ -391,9 +392,11 @@ fi if [ "$CONFIG_FB_VGA16" = "y" ]; then define_tristate CONFIG_FBCON_VGA_PLANES y + define_tristate CONFIG_FBCON_VGA y else if [ "$CONFIG_FB_VGA16" = "m" ]; then define_tristate CONFIG_FBCON_VGA_PLANES m + define_tristate CONFIG_FBCON_VGA m fi fi if [ "$CONFIG_FB_HGA" = "y" ]; then diff -urdN linux/drivers/video/Makefile linux/drivers/video/Makefile --- linux/drivers/video/Makefile 2002-10-13 02:32:06.000000000 +0200 +++ linux/drivers/video/Makefile 2002-10-13 02:41:20.000000000 +0200 @@ -8,7 +8,7 @@ export-objs := fbmem.o fbcmap.o fbcon.o fbmon.o modedb.o \ fbcon-afb.o fbcon-ilbm.o fbcon-accel.o cyber2000fb.o \ fbcon-iplan2p2.o fbcon-iplan2p4.o fbgen.o \ - fbcon-iplan2p8.o fbcon-vga-planes.o fbcon-cfb16.o \ + fbcon-iplan2p8.o fbcon-vga-planes.o fbcon-vga8-planes.o fbcon-vga.o fbcon-cfb16.o \ fbcon-cfb2.o fbcon-cfb24.o fbcon-cfb32.o fbcon-cfb4.o \ fbcon-cfb8.o fbcon-mfb.o fbcon-hga.o @@ -68,7 +68,7 @@ obj-$(CONFIG_FB_S3TRIO) += S3triofb.o obj-$(CONFIG_FB_TGA) += tgafb.o obj-$(CONFIG_FB_VESA) += vesafb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o -obj-$(CONFIG_FB_VGA16) += vga16fb.o fbcon-vga-planes.o +obj-$(CONFIG_FB_VGA16) += vga16fb.o fbcon-vga-planes.o fbcon-vga8-planes.o obj-$(CONFIG_FB_VIRGE) += virgefb.o obj-$(CONFIG_FB_G364) += g364fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o obj-$(CONFIG_FB_FM2) += fm2fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o @@ -115,6 +115,7 @@ obj-$(CONFIG_FBCON_IPLAN2P4) += fbcon-iplan2p4.o obj-$(CONFIG_FBCON_IPLAN2P8) += fbcon-iplan2p8.o obj-$(CONFIG_FBCON_MFB) += fbcon-mfb.o +obj-$(CONFIG_FBCON_VGA) += fbcon-vga.o obj-$(CONFIG_FBCON_HGA) += fbcon-hga.o obj-$(CONFIG_FBCON_STI) += fbcon-sti.o obj-$(CONFIG_FBCON_ACCEL) += fbcon-accel.o diff -urdN linux/drivers/video/fbcon-vga.c linux/drivers/video/fbcon-vga.c --- linux/drivers/video/fbcon-vga.c 1970-01-01 01:00:00.000000000 +0100 +++ linux/drivers/video/fbcon-vga.c 2002-10-13 02:41:20.000000000 +0200 @@ -0,0 +1,213 @@ +/* + * linux/drivers/video/fbcon-vga.c -- Low level frame buffer operations for + * VGA characters/attributes + * + * Created 28 Mar 1998 by Geert Uytterhoeven + * Monochrome attributes added May 1998 by Andrew Apted + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file COPYING in the main directory of this archive for + * more details. + */ + +#include +#include +#include +#include +#include + +#include + +#include