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
5c053495
Commit
5c053495
authored
Mar 23, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Do not use cast exprs as lvalues.
parent
9805e1fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
include/asm-sparc64/pgalloc.h
include/asm-sparc64/pgalloc.h
+7
-6
No files found.
include/asm-sparc64/pgalloc.h
View file @
5c053495
...
@@ -38,11 +38,12 @@ static __inline__ void free_pgd_fast(pgd_t *pgd)
...
@@ -38,11 +38,12 @@ static __inline__ void free_pgd_fast(pgd_t *pgd)
preempt_disable
();
preempt_disable
();
if
(
!
page
->
lru
.
prev
)
{
if
(
!
page
->
lru
.
prev
)
{
(
unsigned
long
*
)
page
->
lru
.
next
=
pgd_quicklist
;
page
->
lru
.
next
=
(
void
*
)
pgd_quicklist
;
pgd_quicklist
=
(
unsigned
long
*
)
page
;
pgd_quicklist
=
(
unsigned
long
*
)
page
;
}
}
(
unsigned
long
)
page
->
lru
.
prev
|=
page
->
lru
.
prev
=
(
void
*
)
(((
unsigned
long
)
pgd
&
(
PAGE_SIZE
/
2
))
?
2
:
1
);
(((
unsigned
long
)
page
->
lru
.
prev
)
|
(((
unsigned
long
)
pgd
&
(
PAGE_SIZE
/
2
))
?
2
:
1
));
pgd_cache_size
++
;
pgd_cache_size
++
;
preempt_enable
();
preempt_enable
();
}
}
...
@@ -62,7 +63,7 @@ static __inline__ pgd_t *get_pgd_fast(void)
...
@@ -62,7 +63,7 @@ static __inline__ pgd_t *get_pgd_fast(void)
off
=
PAGE_SIZE
/
2
;
off
=
PAGE_SIZE
/
2
;
mask
&=
~
2
;
mask
&=
~
2
;
}
}
(
unsigned
long
)
ret
->
lru
.
prev
=
mask
;
ret
->
lru
.
prev
=
(
void
*
)
mask
;
if
(
!
mask
)
if
(
!
mask
)
pgd_quicklist
=
(
unsigned
long
*
)
ret
->
lru
.
next
;
pgd_quicklist
=
(
unsigned
long
*
)
ret
->
lru
.
next
;
ret
=
(
struct
page
*
)(
__page_address
(
ret
)
+
off
);
ret
=
(
struct
page
*
)(
__page_address
(
ret
)
+
off
);
...
@@ -76,10 +77,10 @@ static __inline__ pgd_t *get_pgd_fast(void)
...
@@ -76,10 +77,10 @@ static __inline__ pgd_t *get_pgd_fast(void)
if
(
page
)
{
if
(
page
)
{
ret
=
(
struct
page
*
)
page_address
(
page
);
ret
=
(
struct
page
*
)
page_address
(
page
);
clear_page
(
ret
);
clear_page
(
ret
);
(
unsigned
long
)
page
->
lru
.
prev
=
2
;
page
->
lru
.
prev
=
(
void
*
)
2UL
;
preempt_disable
();
preempt_disable
();
(
unsigned
long
*
)
page
->
lru
.
next
=
pgd_quicklist
;
page
->
lru
.
next
=
(
void
*
)
pgd_quicklist
;
pgd_quicklist
=
(
unsigned
long
*
)
page
;
pgd_quicklist
=
(
unsigned
long
*
)
page
;
pgd_cache_size
++
;
pgd_cache_size
++
;
preempt_enable
();
preempt_enable
();
...
...
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