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
eacb9d61
Commit
eacb9d61
authored
Apr 26, 2007
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] Remove unused argument from kunmap_coherent().
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
e3cf10e9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
arch/mips/mm/cache.c
arch/mips/mm/cache.c
+1
-1
arch/mips/mm/init.c
arch/mips/mm/init.c
+4
-4
include/asm-mips/cacheflush.h
include/asm-mips/cacheflush.h
+1
-1
No files found.
arch/mips/mm/cache.c
View file @
eacb9d61
...
...
@@ -96,7 +96,7 @@ void __flush_anon_page(struct page *page, unsigned long vmaddr)
kaddr
=
kmap_coherent
(
page
,
vmaddr
);
flush_data_cache_page
((
unsigned
long
)
kaddr
);
kunmap_coherent
(
kaddr
);
kunmap_coherent
();
}
}
...
...
arch/mips/mm/init.c
View file @
eacb9d61
...
...
@@ -177,7 +177,7 @@ void *kmap_coherent(struct page *page, unsigned long addr)
#define UNIQUE_ENTRYHI(idx) (CKSEG0 + ((idx) << (PAGE_SHIFT + 1)))
void
kunmap_coherent
(
struct
page
*
page
)
void
kunmap_coherent
(
void
)
{
#ifndef CONFIG_MIPS_MT_SMTC
unsigned
int
wired
;
...
...
@@ -210,7 +210,7 @@ void copy_user_highpage(struct page *to, struct page *from,
if
(
cpu_has_dc_aliases
)
{
vfrom
=
kmap_coherent
(
from
,
vaddr
);
copy_page
(
vto
,
vfrom
);
kunmap_coherent
(
from
);
kunmap_coherent
();
}
else
{
vfrom
=
kmap_atomic
(
from
,
KM_USER0
);
copy_page
(
vto
,
vfrom
);
...
...
@@ -233,7 +233,7 @@ void copy_to_user_page(struct vm_area_struct *vma,
if
(
cpu_has_dc_aliases
)
{
void
*
vto
=
kmap_coherent
(
page
,
vaddr
)
+
(
vaddr
&
~
PAGE_MASK
);
memcpy
(
vto
,
src
,
len
);
kunmap_coherent
(
page
);
kunmap_coherent
();
}
else
memcpy
(
dst
,
src
,
len
);
if
((
vma
->
vm_flags
&
VM_EXEC
)
&&
!
cpu_has_ic_fills_f_dc
)
...
...
@@ -250,7 +250,7 @@ void copy_from_user_page(struct vm_area_struct *vma,
void
*
vfrom
=
kmap_coherent
(
page
,
vaddr
)
+
(
vaddr
&
~
PAGE_MASK
);
memcpy
(
dst
,
vfrom
,
len
);
kunmap_coherent
(
page
);
kunmap_coherent
();
}
else
memcpy
(
dst
,
src
,
len
);
}
...
...
include/asm-mips/cacheflush.h
View file @
eacb9d61
...
...
@@ -96,6 +96,6 @@ extern void (*flush_data_cache_page)(unsigned long addr);
unsigned
long
__init
run_uncached
(
void
*
func
);
extern
void
*
kmap_coherent
(
struct
page
*
page
,
unsigned
long
addr
);
extern
void
kunmap_coherent
(
struct
page
*
page
);
extern
void
kunmap_coherent
(
void
);
#endif
/* _ASM_CACHEFLUSH_H */
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