[AGPGART] alpha-agp warning fix
drivers/char/agp/alpha-agp.c:138: warning: initialization from incompatible pointer type drivers/char/agp/alpha-agp.c:139: warning: initialization from incompatible pointer type Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Richard Henderson <rth@twiddle.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Dave Jones <davej@redhat.com>
This commit is contained in:
Родитель
b07cd5181f
Коммит
81c2466915
|
@ -46,12 +46,6 @@ struct vm_operations_struct alpha_core_agp_vm_ops = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static int alpha_core_agp_nop(void)
|
|
||||||
{
|
|
||||||
/* just return success */
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int alpha_core_agp_fetch_size(void)
|
static int alpha_core_agp_fetch_size(void)
|
||||||
{
|
{
|
||||||
return alpha_core_agp_sizes[0].size;
|
return alpha_core_agp_sizes[0].size;
|
||||||
|
@ -120,6 +114,11 @@ static int alpha_core_agp_remove_memory(struct agp_memory *mem, off_t pg_start,
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int alpha_core_agp_create_free_gatt_table(struct agp_bridge_data *a)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
struct agp_bridge_driver alpha_core_agp_driver = {
|
struct agp_bridge_driver alpha_core_agp_driver = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.aperture_sizes = alpha_core_agp_sizes,
|
.aperture_sizes = alpha_core_agp_sizes,
|
||||||
|
@ -135,8 +134,8 @@ struct agp_bridge_driver alpha_core_agp_driver = {
|
||||||
.tlb_flush = alpha_core_agp_tlbflush,
|
.tlb_flush = alpha_core_agp_tlbflush,
|
||||||
.mask_memory = agp_generic_mask_memory,
|
.mask_memory = agp_generic_mask_memory,
|
||||||
.cache_flush = global_cache_flush,
|
.cache_flush = global_cache_flush,
|
||||||
.create_gatt_table = alpha_core_agp_nop,
|
.create_gatt_table = alpha_core_agp_create_free_gatt_table,
|
||||||
.free_gatt_table = alpha_core_agp_nop,
|
.free_gatt_table = alpha_core_agp_create_free_gatt_table,
|
||||||
.insert_memory = alpha_core_agp_insert_memory,
|
.insert_memory = alpha_core_agp_insert_memory,
|
||||||
.remove_memory = alpha_core_agp_remove_memory,
|
.remove_memory = alpha_core_agp_remove_memory,
|
||||||
.alloc_by_type = agp_generic_alloc_by_type,
|
.alloc_by_type = agp_generic_alloc_by_type,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче