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
5694e35c
Commit
5694e35c
authored
Apr 24, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up compiler warnings
parent
898683e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
kernel/exit.c
kernel/exit.c
+2
-2
mm/mremap.c
mm/mremap.c
+0
-1
No files found.
kernel/exit.c
View file @
5694e35c
...
@@ -37,7 +37,7 @@ static inline void __unhash_process(struct task_struct *p)
...
@@ -37,7 +37,7 @@ static inline void __unhash_process(struct task_struct *p)
list_del
(
&
p
->
thread_group
);
list_del
(
&
p
->
thread_group
);
p
->
pid
=
0
;
p
->
pid
=
0
;
proc_dentry
=
p
->
proc_dentry
;
proc_dentry
=
p
->
proc_dentry
;
if
(
unlikely
(
proc_dentry
))
{
if
(
unlikely
(
proc_dentry
!=
NULL
))
{
spin_lock
(
&
dcache_lock
);
spin_lock
(
&
dcache_lock
);
if
(
!
list_empty
(
&
proc_dentry
->
d_hash
))
{
if
(
!
list_empty
(
&
proc_dentry
->
d_hash
))
{
dget_locked
(
proc_dentry
);
dget_locked
(
proc_dentry
);
...
@@ -47,7 +47,7 @@ static inline void __unhash_process(struct task_struct *p)
...
@@ -47,7 +47,7 @@ static inline void __unhash_process(struct task_struct *p)
spin_unlock
(
&
dcache_lock
);
spin_unlock
(
&
dcache_lock
);
}
}
write_unlock_irq
(
&
tasklist_lock
);
write_unlock_irq
(
&
tasklist_lock
);
if
(
unlikely
(
proc_dentry
))
{
if
(
unlikely
(
proc_dentry
!=
NULL
))
{
shrink_dcache_parent
(
proc_dentry
);
shrink_dcache_parent
(
proc_dentry
);
dput
(
proc_dentry
);
dput
(
proc_dentry
);
}
}
...
...
mm/mremap.c
View file @
5694e35c
...
@@ -103,7 +103,6 @@ static int move_one_page(struct vm_area_struct *vma, unsigned long old_addr, uns
...
@@ -103,7 +103,6 @@ static int move_one_page(struct vm_area_struct *vma, unsigned long old_addr, uns
static
int
move_page_tables
(
struct
vm_area_struct
*
vma
,
static
int
move_page_tables
(
struct
vm_area_struct
*
vma
,
unsigned
long
new_addr
,
unsigned
long
old_addr
,
unsigned
long
len
)
unsigned
long
new_addr
,
unsigned
long
old_addr
,
unsigned
long
len
)
{
{
struct
mm_struct
*
mm
=
vma
->
vm_mm
;
unsigned
long
offset
=
len
;
unsigned
long
offset
=
len
;
flush_cache_range
(
vma
,
old_addr
,
old_addr
+
len
);
flush_cache_range
(
vma
,
old_addr
,
old_addr
+
len
);
...
...
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