agp: fix missing casts that produced a warning.
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
2e374748c7
commit
44a207fc66
@ -54,7 +54,7 @@ static int amd_create_page_map(struct amd_page_map *page_map)
|
||||
}
|
||||
global_cache_flush();
|
||||
#else
|
||||
set_memory_uc(page_map->real, 1);
|
||||
set_memory_uc((unsigned long)page_map->real, 1);
|
||||
page_map->remapped = page_map->real;
|
||||
#endif
|
||||
|
||||
@ -72,7 +72,7 @@ static void amd_free_page_map(struct amd_page_map *page_map)
|
||||
iounmap(page_map->remapped);
|
||||
ClearPageReserved(virt_to_page(page_map->real));
|
||||
#else
|
||||
set_memory_wb(page_map->real, 1);
|
||||
set_memory_wb((unsigned long)page_map->real, 1);
|
||||
#endif
|
||||
free_page((unsigned long) page_map->real);
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ static int ati_create_page_map(struct ati_page_map *page_map)
|
||||
if (page_map->real == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
set_memory_uc(page_map->real, 1);
|
||||
set_memory_uc((unsigned long)page_map->real, 1);
|
||||
err = map_page_into_agp(virt_to_page(page_map->real));
|
||||
page_map->remapped = page_map->real;
|
||||
|
||||
@ -76,7 +76,7 @@ static int ati_create_page_map(struct ati_page_map *page_map)
|
||||
static void ati_free_page_map(struct ati_page_map *page_map)
|
||||
{
|
||||
unmap_page_from_agp(virt_to_page(page_map->real));
|
||||
set_memory_wb(page_map->real, 1);
|
||||
set_memory_wb((unsigned long)page_map->real, 1);
|
||||
free_page((unsigned long) page_map->real);
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ static int serverworks_create_page_map(struct serverworks_page_map *page_map)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
set_memory_uc(page_map->real, 1);
|
||||
set_memory_uc((unsigned long)page_map->real, 1);
|
||||
page_map->remapped = page_map->real;
|
||||
|
||||
for (i = 0; i < PAGE_SIZE / sizeof(unsigned long); i++)
|
||||
@ -65,7 +65,7 @@ static int serverworks_create_page_map(struct serverworks_page_map *page_map)
|
||||
|
||||
static void serverworks_free_page_map(struct serverworks_page_map *page_map)
|
||||
{
|
||||
set_memory_wb(page_map->real, 1);
|
||||
set_memory_wb((unsigned long)page_map->real, 1);
|
||||
free_page((unsigned long) page_map->real);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user