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
b067c50a
Commit
b067c50a
authored
Jul 25, 2007
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Silence sq compile warning on sh4 nommu.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
3c6b6c7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
arch/sh/kernel/cpu/sh4/sq.c
arch/sh/kernel/cpu/sh4/sq.c
+12
-6
No files found.
arch/sh/kernel/cpu/sh4/sq.c
View file @
b067c50a
...
...
@@ -208,7 +208,6 @@ EXPORT_SYMBOL(sq_remap);
void
sq_unmap
(
unsigned
long
vaddr
)
{
struct
sq_mapping
**
p
,
*
map
;
struct
vm_struct
*
vma
;
int
page
;
for
(
p
=
&
sq_mapping_list
;
(
map
=
*
p
);
p
=
&
map
->
next
)
...
...
@@ -225,11 +224,18 @@ void sq_unmap(unsigned long vaddr)
bitmap_release_region
(
sq_bitmap
,
page
,
get_order
(
map
->
size
));
#ifdef CONFIG_MMU
vma
=
remove_vm_area
((
void
*
)(
map
->
sq_addr
&
PAGE_MASK
));
if
(
!
vma
)
{
printk
(
KERN_ERR
"%s: bad address 0x%08lx
\n
"
,
__FUNCTION__
,
map
->
sq_addr
);
return
;
{
/*
* Tear down the VMA in the MMU case.
*/
struct
vm_struct
*
vma
;
vma
=
remove_vm_area
((
void
*
)(
map
->
sq_addr
&
PAGE_MASK
));
if
(
!
vma
)
{
printk
(
KERN_ERR
"%s: bad address 0x%08lx
\n
"
,
__FUNCTION__
,
map
->
sq_addr
);
return
;
}
}
#endif
...
...
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