Skip to content

Commit

Permalink
agp: fix missing casts that produced a warning.
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie committed Feb 20, 2008
1 parent 2e37474 commit 44a207f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions drivers/char/agp/amd-k7-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/char/agp/ati-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
}

Expand Down
4 changes: 2 additions & 2 deletions drivers/char/agp/sworks-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand All @@ -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);
}

Expand Down

0 comments on commit 44a207f

Please sign in to comment.