All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Helight.Xu" <zhwenxu@gmail.com>
To: hugh@veritas.com
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: [PATCH] fix coding style of mm/mmap.c
Date: Tue, 9 Dec 2008 15:56:52 +0800	[thread overview]
Message-ID: <20081209075652.GA3515@helight> (raw)

[-- Attachment #1: Type: text/plain, Size: 155 bytes --]

fix some coding style of mm/mmap.c 
-- 
---------------------------------
Zhenwen Xu - Open and Free
Home Page:	http://zhwen.org
My Studio:	http://dim4.cn

[-- Attachment #2: 0002-code-style.patch --]
[-- Type: text/x-diff, Size: 2707 bytes --]

>From e968c1366585e4982f69e8ec0a27a806514676d0 Mon Sep 17 00:00:00 2001
From: ZhenwenXu <helight.xu@gmail.com>
Date: Fri, 14 Nov 2008 22:14:32 +0800
Subject: [PATCH] code style


Signed-off-by: ZhenwenXu <helight.xu@gmail.com>
---
 mm/mmap.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/mm/mmap.c b/mm/mmap.c
index e7a5a68..5750480 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -412,7 +412,7 @@ void __vma_link_rb(struct mm_struct *mm, struct vm_area_struct *vma,
 
 static inline void __vma_link_file(struct vm_area_struct *vma)
 {
-	struct file * file;
+	struct file *file;
 
 	file = vma->vm_file;
 	if (file) {
@@ -474,10 +474,10 @@ static void vma_link(struct mm_struct *mm, struct vm_area_struct *vma,
  * but it has already been inserted into prio_tree earlier.
  */
 static void
-__insert_vm_struct(struct mm_struct * mm, struct vm_area_struct * vma)
+__insert_vm_struct(struct mm_struct *mm, struct vm_area_struct *vma)
 {
-	struct vm_area_struct * __vma, * prev;
-	struct rb_node ** rb_link, * rb_parent;
+	struct vm_area_struct *__vma, *prev;
+	struct rb_node **rb_link, *rb_parent;
 
 	__vma = find_vma_prepare(mm, vma->vm_start,&prev, &rb_link, &rb_parent);
 	BUG_ON(__vma && __vma->vm_start < vma->vm_end);
@@ -909,7 +909,7 @@ void vm_stat_account(struct mm_struct *mm, unsigned long flags,
  * The caller must hold down_write(current->mm->mmap_sem).
  */
 
-unsigned long do_mmap_pgoff(struct file * file, unsigned long addr,
+unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
 			unsigned long len, unsigned long prot,
 			unsigned long flags, unsigned long pgoff)
 {
@@ -1458,7 +1458,7 @@ get_unmapped_area(struct file *file, unsigned long addr, unsigned long len,
 EXPORT_SYMBOL(get_unmapped_area);
 
 /* Look up the first VMA which satisfies  addr < vm_end,  NULL if none. */
-struct vm_area_struct * find_vma(struct mm_struct * mm, unsigned long addr)
+struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)
 {
 	struct vm_area_struct *vma = NULL;
 
@@ -1501,7 +1501,7 @@ find_vma_prev(struct mm_struct *mm, unsigned long addr,
 			struct vm_area_struct **pprev)
 {
 	struct vm_area_struct *vma = NULL, *prev = NULL;
-	struct rb_node * rb_node;
+	struct rb_node *rb_node;
 	if (!mm)
 		goto out;
 
@@ -1535,7 +1535,7 @@ out:
  * update accounting. This is shared with both the
  * grow-up and grow-down cases.
  */
-static int acct_stack_growth(struct vm_area_struct * vma, unsigned long size, unsigned long grow)
+static int acct_stack_growth(struct vm_area_struct *vma, unsigned long size, unsigned long grow)
 {
 	struct mm_struct *mm = vma->vm_mm;
 	struct rlimit *rlim = current->signal->rlim;
-- 
1.5.6.5


WARNING: multiple messages have this Message-ID (diff)
From: "Helight.Xu" <zhwenxu@gmail.com>
To: hugh@veritas.com
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: [PATCH] fix coding style of mm/mmap.c
Date: Tue, 9 Dec 2008 15:56:52 +0800	[thread overview]
Message-ID: <20081209075652.GA3515@helight> (raw)

[-- Attachment #1: Type: text/plain, Size: 155 bytes --]

fix some coding style of mm/mmap.c 
-- 
---------------------------------
Zhenwen Xu - Open and Free
Home Page:	http://zhwen.org
My Studio:	http://dim4.cn

[-- Attachment #2: 0002-code-style.patch --]
[-- Type: text/x-diff, Size: 0 bytes --]



             reply	other threads:[~2008-12-09  7:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-09  7:56 Helight.Xu [this message]
2008-12-09  7:56 ` [PATCH] fix coding style of mm/mmap.c Helight.Xu
2008-12-09 19:06 ` Hugh Dickins
2008-12-09 19:06   ` Hugh Dickins
2008-12-09 19:15   ` Frédéric Weisbecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081209075652.GA3515@helight \
    --to=zhwenxu@gmail.com \
    --cc=helight.xu@gmail.com \
    --cc=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.