Commit ec9bed9d385fd094b20fa0809c50741710afdc74
Committed by
Linus Torvalds
1 parent
ef0855d334
Exists in
master
and in
20 other branches
mm/madvise.c: fix coding-style errors
This fixes following errors: - ERROR: "(foo*)" should be "(foo *)" - ERROR: "foo ** bar" should be "foo **bar" Signed-off-by: Vladimir Cernov <gg.kaspersky@gmail.com> Reviewed-by: Pekka Enberg <penberg@kernel.org> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 7 additions and 7 deletions Side-by-side Diff
mm/madvise.c
... | ... | @@ -42,11 +42,11 @@ |
42 | 42 | * We can potentially split a vm area into separate |
43 | 43 | * areas, each area with its own behavior. |
44 | 44 | */ |
45 | -static long madvise_behavior(struct vm_area_struct * vma, | |
45 | +static long madvise_behavior(struct vm_area_struct *vma, | |
46 | 46 | struct vm_area_struct **prev, |
47 | 47 | unsigned long start, unsigned long end, int behavior) |
48 | 48 | { |
49 | - struct mm_struct * mm = vma->vm_mm; | |
49 | + struct mm_struct *mm = vma->vm_mm; | |
50 | 50 | int error = 0; |
51 | 51 | pgoff_t pgoff; |
52 | 52 | unsigned long new_flags = vma->vm_flags; |
... | ... | @@ -215,8 +215,8 @@ |
215 | 215 | /* |
216 | 216 | * Schedule all required I/O operations. Do not wait for completion. |
217 | 217 | */ |
218 | -static long madvise_willneed(struct vm_area_struct * vma, | |
219 | - struct vm_area_struct ** prev, | |
218 | +static long madvise_willneed(struct vm_area_struct *vma, | |
219 | + struct vm_area_struct **prev, | |
220 | 220 | unsigned long start, unsigned long end) |
221 | 221 | { |
222 | 222 | struct file *file = vma->vm_file; |
... | ... | @@ -270,8 +270,8 @@ |
270 | 270 | * An interface that causes the system to free clean pages and flush |
271 | 271 | * dirty pages is already available as msync(MS_INVALIDATE). |
272 | 272 | */ |
273 | -static long madvise_dontneed(struct vm_area_struct * vma, | |
274 | - struct vm_area_struct ** prev, | |
273 | +static long madvise_dontneed(struct vm_area_struct *vma, | |
274 | + struct vm_area_struct **prev, | |
275 | 275 | unsigned long start, unsigned long end) |
276 | 276 | { |
277 | 277 | *prev = vma; |
... | ... | @@ -459,7 +459,7 @@ |
459 | 459 | SYSCALL_DEFINE3(madvise, unsigned long, start, size_t, len_in, int, behavior) |
460 | 460 | { |
461 | 461 | unsigned long end, tmp; |
462 | - struct vm_area_struct * vma, *prev; | |
462 | + struct vm_area_struct *vma, *prev; | |
463 | 463 | int unmapped_error = 0; |
464 | 464 | int error = -EINVAL; |
465 | 465 | int write; |