[2.4 patch] fix a agpgart_be.c compile warning
From: Adrian Bunk (bunk_at_fs.tum.de)
Date: 01/30/04
- Previous message: Arjan van de Ven: "Re: 2.6.2-rc2-mm2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jan 2004 20:59:46 +0100 To: Marcelo Tosatti <marcelo@conectiva.com.br>, Jeff Hartmann <jhartmann@precisioninsight.com>, davej@codemonkey.org.uk
I got the following compile warning in 2.4.25-pre8:
<-- snip -->
...
gcc -D__KERNEL__
-I/home/bunk/linux/kernel-2.4/linux-2.4.25-pre8-full/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6
-nostdinc -iwithprefix include -DKBUILD_BASENAME=agpgart_be -c -o agpgart_be.o
agpgart_be.c
...
agpgart_be.c:5647:17: warning: extra tokens at end of #undef directive
...
<-- snip -->
The following patch fixes this issue:
--- linux-2.4.25-pre8-full/drivers/char/agp/agpgart_be.c.old 2004-01-30 20:55:15.000000000 +0100
+++ linux-2.4.25-pre8-full/drivers/char/agp/agpgart_be.c 2004-01-30 20:55:53.000000000 +0100
@@ -5644,7 +5644,7 @@
#define GET_PAGE_DIR_IDX(addr) (GET_PAGE_DIR_OFF(addr) - \
GET_PAGE_DIR_OFF(agp_bridge.gart_bus_addr))
#define GET_GATT_OFF(addr) ((addr & 0x003ff000) >> 12)
-#undef GET_GATT(addr)
+#undef GET_GATT
#define GET_GATT(addr) (ati_generic_private.gatt_pages[\
GET_PAGE_DIR_IDX(addr)]->remapped)
Please apply
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
-
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/
- Previous message: Arjan van de Ven: "Re: 2.6.2-rc2-mm2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: 2.6.10-rc2 doesnt boot (if no floppy device)
... because non-PCI devices may depend on the same routing ... I can confirm this
patch fixes the problem for me in an otherwise ... There had been need of rain for
many days. ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: 2.6.11-rc2-mm1: v4l-saa7134-module compile error
... I can confirm that this patch fixes the compilation. ... There had been
need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
(Linux-Kernel) - [PATCH] fix warning and small bug in cassini driver
... This patch fixes the following compile warning: ... +#ifdef USE_TX_COMPWB
... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: [2.6 patch] add -Werror-implicit-function-declaration to CFLAGS
... >> Currently, using an undeclared function gives a compile warning, but it ...
>> can lead to a nasty runtime error if the prototype of the function is ... There
had been need of rain for many days. ... send the line "unsubscribe linux-kernel"
in ... (Linux-Kernel) - [2.4 patch] fix a compile warning in tipar.c
... I got the following compile warning in 2.4.22-pre10: ... There had been need
of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
(Linux-Kernel)