Skip to content

Commit ec9bed9

Browse files
Vladimir Cernovtorvalds
authored andcommitted
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>
1 parent ef0855d commit ec9bed9

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎mm/madvise.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ static int madvise_need_mmap_write(int behavior)
4242
* We can potentially split a vm area into separate
4343
* areas, each area with its own behavior.
4444
*/
45-
static long madvise_behavior(struct vm_area_struct * vma,
45+
static long madvise_behavior(struct vm_area_struct *vma,
4646
struct vm_area_struct **prev,
4747
unsigned long start, unsigned long end, int behavior)
4848
{
49-
struct mm_struct * mm = vma->vm_mm;
49+
struct mm_struct *mm = vma->vm_mm;
5050
int error = 0;
5151
pgoff_t pgoff;
5252
unsigned long new_flags = vma->vm_flags;
@@ -215,8 +215,8 @@ static void force_shm_swapin_readahead(struct vm_area_struct *vma,
215215
/*
216216
* Schedule all required I/O operations. Do not wait for completion.
217217
*/
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,
220220
unsigned long start, unsigned long end)
221221
{
222222
struct file *file = vma->vm_file;
@@ -270,8 +270,8 @@ static long madvise_willneed(struct vm_area_struct * vma,
270270
* An interface that causes the system to free clean pages and flush
271271
* dirty pages is already available as msync(MS_INVALIDATE).
272272
*/
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,
275275
unsigned long start, unsigned long end)
276276
{
277277
*prev = vma;
@@ -459,7 +459,7 @@ madvise_behavior_valid(int behavior)
459459
SYSCALL_DEFINE3(madvise, unsigned long, start, size_t, len_in, int, behavior)
460460
{
461461
unsigned long end, tmp;
462-
struct vm_area_struct * vma, *prev;
462+
struct vm_area_struct *vma, *prev;
463463
int unmapped_error = 0;
464464
int error = -EINVAL;
465465
int write;

0 commit comments

Comments
 (0)