| .. | .. |
|---|
| 39 | 39 | #include <linux/fs.h> |
|---|
| 40 | 40 | #include <linux/sched.h> |
|---|
| 41 | 41 | #include <linux/uaccess.h> |
|---|
| 42 | | -#include <asm/pgtable.h> |
|---|
| 43 | 42 | #include "agp.h" |
|---|
| 44 | 43 | |
|---|
| 45 | 44 | struct agp_front_data agp_fe; |
|---|
| .. | .. |
|---|
| 102 | 101 | int size, pgprot_t page_prot) |
|---|
| 103 | 102 | { |
|---|
| 104 | 103 | struct agp_segment_priv *seg; |
|---|
| 105 | | - int num_segments, i; |
|---|
| 104 | + int i; |
|---|
| 106 | 105 | off_t pg_start; |
|---|
| 107 | 106 | size_t pg_count; |
|---|
| 108 | 107 | |
|---|
| 109 | 108 | pg_start = offset / 4096; |
|---|
| 110 | 109 | pg_count = size / 4096; |
|---|
| 111 | 110 | seg = *(client->segments); |
|---|
| 112 | | - num_segments = client->num_segments; |
|---|
| 113 | 111 | |
|---|
| 114 | 112 | for (i = 0; i < client->num_segments; i++) { |
|---|
| 115 | 113 | if ((seg[i].pg_start == pg_start) && |
|---|