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
Kirill Smelkov
linux
Commits
44a207fc
Commit
44a207fc
authored
Feb 20, 2008
by
Dave Airlie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agp: fix missing casts that produced a warning.
Signed-off-by:
Dave Airlie
<
airlied@redhat.com
>
parent
2e374748
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
drivers/char/agp/amd-k7-agp.c
drivers/char/agp/amd-k7-agp.c
+2
-2
drivers/char/agp/ati-agp.c
drivers/char/agp/ati-agp.c
+2
-2
drivers/char/agp/sworks-agp.c
drivers/char/agp/sworks-agp.c
+2
-2
No files found.
drivers/char/agp/amd-k7-agp.c
View file @
44a207fc
...
@@ -54,7 +54,7 @@ static int amd_create_page_map(struct amd_page_map *page_map)
...
@@ -54,7 +54,7 @@ static int amd_create_page_map(struct amd_page_map *page_map)
}
}
global_cache_flush
();
global_cache_flush
();
#else
#else
set_memory_uc
(
page_map
->
real
,
1
);
set_memory_uc
(
(
unsigned
long
)
page_map
->
real
,
1
);
page_map
->
remapped
=
page_map
->
real
;
page_map
->
remapped
=
page_map
->
real
;
#endif
#endif
...
@@ -72,7 +72,7 @@ static void amd_free_page_map(struct amd_page_map *page_map)
...
@@ -72,7 +72,7 @@ static void amd_free_page_map(struct amd_page_map *page_map)
iounmap
(
page_map
->
remapped
);
iounmap
(
page_map
->
remapped
);
ClearPageReserved
(
virt_to_page
(
page_map
->
real
));
ClearPageReserved
(
virt_to_page
(
page_map
->
real
));
#else
#else
set_memory_wb
(
page_map
->
real
,
1
);
set_memory_wb
(
(
unsigned
long
)
page_map
->
real
,
1
);
#endif
#endif
free_page
((
unsigned
long
)
page_map
->
real
);
free_page
((
unsigned
long
)
page_map
->
real
);
}
}
...
...
drivers/char/agp/ati-agp.c
View file @
44a207fc
...
@@ -60,7 +60,7 @@ static int ati_create_page_map(struct ati_page_map *page_map)
...
@@ -60,7 +60,7 @@ static int ati_create_page_map(struct ati_page_map *page_map)
if
(
page_map
->
real
==
NULL
)
if
(
page_map
->
real
==
NULL
)
return
-
ENOMEM
;
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
));
err
=
map_page_into_agp
(
virt_to_page
(
page_map
->
real
));
page_map
->
remapped
=
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)
...
@@ -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
)
static
void
ati_free_page_map
(
struct
ati_page_map
*
page_map
)
{
{
unmap_page_from_agp
(
virt_to_page
(
page_map
->
real
));
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
);
free_page
((
unsigned
long
)
page_map
->
real
);
}
}
...
...
drivers/char/agp/sworks-agp.c
View file @
44a207fc
...
@@ -53,7 +53,7 @@ static int serverworks_create_page_map(struct serverworks_page_map *page_map)
...
@@ -53,7 +53,7 @@ static int serverworks_create_page_map(struct serverworks_page_map *page_map)
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
set_memory_uc
(
page_map
->
real
,
1
);
set_memory_uc
(
(
unsigned
long
)
page_map
->
real
,
1
);
page_map
->
remapped
=
page_map
->
real
;
page_map
->
remapped
=
page_map
->
real
;
for
(
i
=
0
;
i
<
PAGE_SIZE
/
sizeof
(
unsigned
long
);
i
++
)
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)
...
@@ -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
)
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
);
free_page
((
unsigned
long
)
page_map
->
real
);
}
}
...
...
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