]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
agp: fix missing casts that produced a warning.
authorDave Airlie <airlied@redhat.com>
Wed, 20 Feb 2008 00:37:08 +0000 (10:37 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 20 Feb 2008 00:37:08 +0000 (10:37 +1000)
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/char/agp/amd-k7-agp.c
drivers/char/agp/ati-agp.c
drivers/char/agp/sworks-agp.c

index fca4d7f304438c3ac16eede2209fb6e2cd2abfeb..d28669992147556cb6107d5fe3f8de9bb4d4264a 100644 (file)
@@ -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);
 }
index 9ac3bef3bb7a46d401b9514cc8ac9f5a8032e784..55c97f623242e0a0fdb559d13fe1515aa26f7c7b 100644 (file)
@@ -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);
 }
 
index ae06f8982068f43d437de8535c849ad964838ed5..e08934e58f32bc77b2292f2cbf1a24ca34fbb24f 100644 (file)
@@ -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);
 }