Skip to contentSkip to conversation

fix trivial drivers/char/agp/generic.c compile warning

PATCH New Robert Love 1 participant 1 message Dec 11, 2002 Agpgart driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix trivial drivers/char/agp/generic.c compile warning

In 2.5.51, I get:

drivers/char/agp/generic.c: In function `agp_generic_create_gatt_table':
drivers/char/agp/generic.c:472: warning: assignment from incompatible pointer type

gatt_table_real used to be 'u32' but now it is 'unsigned long'... and a typecast was not updated.

Trivial patch applied, against 2.5.51.

Robert Love

 drivers/char/agp/generic.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/char/agp/generic.c +2 -2
diff -urN linux-2.5.51/drivers/char/agp/generic.c linux/drivers/char/agp/generic.c
@@ -469,8 +469,8 @@
 	for (page = virt_to_page(table); page <= virt_to_page(table_end); page++)
 		SetPageReserved(page);
 
-	agp_bridge.gatt_table_real = (u32 *) table;
-	agp_gatt_table = (void *)table; 
+	agp_bridge.gatt_table_real = (unsigned long *) table;
+	agp_gatt_table = (void *)table;
 	CACHE_FLUSH();
 	agp_bridge.gatt_table = ioremap_nocache(virt_to_phys(table),
 					(PAGE_SIZE * (1 << page_order)));