Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
97cbf573
Commit
97cbf573
authored
Feb 10, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGPGART] Fix up lots of 'comparison between signed and unsigned' warnings
parent
655ed59f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
drivers/char/agp/frontend.c
drivers/char/agp/frontend.c
+5
-4
drivers/char/agp/generic.c
drivers/char/agp/generic.c
+6
-4
No files found.
drivers/char/agp/frontend.c
View file @
97cbf573
...
@@ -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
;
in
t
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
;
...
...
drivers/char/agp/generic.c
View file @
97cbf573
...
@@ -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
)
{
{
in
t
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
;
in
t
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
)
{
{
in
t
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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment