summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-02-20 10:37:08 +1000
committerDave Airlie <airlied@redhat.com>2008-02-20 10:37:08 +1000
commit44a207fc66c13c82f627178f9f858b8f3e76028f (patch)
tree951816f531fdb673c779b85b43c7d887c8ec6594 /drivers/char
parent2e374748c73f34e018a1c13a86a96a15fc55a65a (diff)
downloadop-kernel-dev-44a207fc66c13c82f627178f9f858b8f3e76028f.zip
op-kernel-dev-44a207fc66c13c82f627178f9f858b8f3e76028f.tar.gz
agp: fix missing casts that produced a warning.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/agp/amd-k7-agp.c4
-rw-r--r--drivers/char/agp/ati-agp.c4
-rw-r--r--drivers/char/agp/sworks-agp.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/char/agp/amd-k7-agp.c b/drivers/char/agp/amd-k7-agp.c
index fca4d7f..d286699 100644
--- a/drivers/char/agp/amd-k7-agp.c
+++ b/drivers/char/agp/amd-k7-agp.c
@@ -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);
}
diff --git a/drivers/char/agp/ati-agp.c b/drivers/char/agp/ati-agp.c
index 9ac3bef..55c97f6 100644
--- a/drivers/char/agp/ati-agp.c
+++ b/drivers/char/agp/ati-agp.c
@@ -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);
}
diff --git a/drivers/char/agp/sworks-agp.c b/drivers/char/agp/sworks-agp.c
index ae06f89..e08934e 100644
--- a/drivers/char/agp/sworks-agp.c
+++ b/drivers/char/agp/sworks-agp.c
@@ -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);
}
OpenPOWER on IntegriCloud