Messages in this thread Patch in this message | | | Date | Fri, 25 Apr 2003 22:28:05 +0200 (CEST) | From | Maciej Soltysiak <> | Subject | Re: [ Compile Regression on i386 ]-2.4.21-rc1 general summary |
| |
Hi,
> Warning List: > > agpgart_be.c:2453: warning: assignment from incompatible pointer type > agpgart_be.c:2454: warning: assignment from incompatible pointer type > agpgart_be.c:2480: warning: assignment from incompatible pointer type > agpgart_be.c:2481: warning: assignment from incompatible pointer type > agpgart_be.c:3562: warning: assignment from incompatible pointer type > agpgart_be.c:3563: warning: assignment from incompatible pointer type > agpgart_be.c:3591: warning: assignment from incompatible pointer type > agpgart_be.c:3592: warning: assignment from incompatible pointer type > agpgart_be.c:580: warning: assignment from incompatible pointer type I remember sending a patch for that 2.4.21pre7 time. Here it is.
Regards, Maciej Soltysiak
diff -Nru linux-2.4.20.orig/drivers/char/agp/agpgart_be.c linux-2.4.20/drivers/char/agp/agpgart_be.c --- linux-2.4.20.orig/drivers/char/agp/agpgart_be.c 2003-04-05 17:02:17.000000000 +0200 +++ linux-2.4.20/drivers/char/agp/agpgart_be.c 2003-04-05 17:19:07.000000000 +0200 @@ -577,7 +577,7 @@ for (page = virt_to_page(table); page <= virt_to_page(table_end); page++) SetPageReserved(page);
- agp_bridge.gatt_table_real = (unsigned long *) table; + agp_bridge.gatt_table_real = (u32 *) table; agp_gatt_table = (void *)table; #ifdef CONFIG_X86 err = change_page_attr(virt_to_page(table), 1<<page_order, PAGE_KERNEL_NOCACHE); @@ -2315,8 +2315,8 @@ #ifdef CONFIG_AGP_AMD
typedef struct _amd_page_map { - unsigned long *real; - unsigned long *remapped; + u32 *real; + u32 *remapped; } amd_page_map;
static struct _amd_irongate_private { @@ -2330,7 +2330,7 @@ int i; int err = 0;
- page_map->real = (unsigned long *) __get_free_page(GFP_KERNEL); + page_map->real = (u32 *) __get_free_page(GFP_KERNEL); if (page_map->real == NULL) { return -ENOMEM; } @@ -2590,7 +2590,7 @@ off_t pg_start, int type) { int i, j, num_entries; - unsigned long *cur_gatt; + u32 *cur_gatt; unsigned long addr;
num_entries = A_SIZE_LVL2(agp_bridge.current_size)->num_entries; @@ -2631,7 +2631,7 @@ int type) { int i; - unsigned long *cur_gatt; + u32 *cur_gatt; unsigned long addr;
if (type != 0 || mem->type != 0) { - 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/
| |