Commit 97cbf573 authored by Dave Jones's avatar Dave Jones

[AGPGART] Fix up lots of 'comparison between signed and unsigned' warnings

parent 655ed59f
...@@ -97,7 +97,9 @@ static agp_segment_priv *agp_find_seg_in_client(const agp_client * client, ...@@ -97,7 +97,9 @@ static agp_segment_priv *agp_find_seg_in_client(const agp_client * client,
int size, pgprot_t page_prot) int size, pgprot_t page_prot)
{ {
agp_segment_priv *seg; agp_segment_priv *seg;
int num_segments, pg_start, pg_count, i; int num_segments, i;
off_t pg_start;
size_t pg_count;
pg_start = offset / 4096; pg_start = offset / 4096;
pg_count = size / 4096; pg_count = size / 4096;
...@@ -174,7 +176,7 @@ static int agp_create_segment(agp_client * client, agp_region * region) ...@@ -174,7 +176,7 @@ static int agp_create_segment(agp_client * client, agp_region * region)
agp_segment_priv **ret_seg; agp_segment_priv **ret_seg;
agp_segment_priv *seg; agp_segment_priv *seg;
agp_segment *user_seg; agp_segment *user_seg;
int i; size_t i;
seg = kmalloc((sizeof(agp_segment_priv) * region->seg_count), GFP_KERNEL); seg = kmalloc((sizeof(agp_segment_priv) * region->seg_count), GFP_KERNEL);
if (seg == NULL) { if (seg == NULL) {
...@@ -578,8 +580,7 @@ static int agp_remove_client(pid_t id) ...@@ -578,8 +580,7 @@ static int agp_remove_client(pid_t id)
static int agp_mmap(struct file *file, struct vm_area_struct *vma) static int agp_mmap(struct file *file, struct vm_area_struct *vma)
{ {
int size; unsigned int size, current_size;
int current_size;
unsigned long offset; unsigned long offset;
agp_client *client; agp_client *client;
agp_file_private *priv = (agp_file_private *) file->private_data; agp_file_private *priv = (agp_file_private *) file->private_data;
......
...@@ -96,7 +96,7 @@ agp_memory *agp_create_memory(int scratch_pages) ...@@ -96,7 +96,7 @@ agp_memory *agp_create_memory(int scratch_pages)
void agp_free_memory(agp_memory * curr) void agp_free_memory(agp_memory * curr)
{ {
int i; size_t i;
if ((agp_bridge.type == NOT_SUPPORTED) || (curr == NULL)) if ((agp_bridge.type == NOT_SUPPORTED) || (curr == NULL))
return; return;
...@@ -124,7 +124,7 @@ agp_memory *agp_allocate_memory(size_t page_count, u32 type) ...@@ -124,7 +124,7 @@ agp_memory *agp_allocate_memory(size_t page_count, u32 type)
{ {
int scratch_pages; int scratch_pages;
agp_memory *new; agp_memory *new;
int i; size_t i;
if (agp_bridge.type == NOT_SUPPORTED) if (agp_bridge.type == NOT_SUPPORTED)
return NULL; return NULL;
...@@ -585,7 +585,9 @@ int agp_generic_free_gatt_table(void) ...@@ -585,7 +585,9 @@ int agp_generic_free_gatt_table(void)
int agp_generic_insert_memory(agp_memory * mem, off_t pg_start, int type) int agp_generic_insert_memory(agp_memory * mem, off_t pg_start, int type)
{ {
int i, j, num_entries; int num_entries;
size_t i;
off_t j;
void *temp; void *temp;
temp = agp_bridge.current_size; temp = agp_bridge.current_size;
...@@ -648,7 +650,7 @@ int agp_generic_insert_memory(agp_memory * mem, off_t pg_start, int type) ...@@ -648,7 +650,7 @@ int agp_generic_insert_memory(agp_memory * mem, off_t pg_start, int type)
int agp_generic_remove_memory(agp_memory * mem, off_t pg_start, int type) int agp_generic_remove_memory(agp_memory * mem, off_t pg_start, int type)
{ {
int i; size_t i;
if (type != 0 || mem->type != 0) { if (type != 0 || mem->type != 0) {
/* The generic routines know nothing of memory types */ /* The generic routines know nothing of memory types */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment