* [PATCH] memory : adjust the ugly comment
@ 2009-09-25 9:20 Huang Shijie
2009-09-25 18:19 ` Andrew Morton
0 siblings, 1 reply; 4+ messages in thread
From: Huang Shijie @ 2009-09-25 9:20 UTC (permalink / raw)
To: akpm; +Cc: linux-mm, Huang Shijie
The origin comment is too ugly, so modify it more beautiful.
Signed-off-by: Huang Shijie <shijie8@gmail.com>
---
mm/memory.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/mm/memory.c b/mm/memory.c
index 7e91b5f..6a38caa 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -2405,7 +2405,10 @@ restart:
}
/**
- * unmap_mapping_range - unmap the portion of all mmaps in the specified address_space corresponding to the specified page range in the underlying file.
+ * unmap_mapping_range - unmap the portion of all mmaps in the specified
+ * address_space corresponding to the specified page range
+ * in the underlying file.
+ *
* @mapping: the address space containing mmaps to be unmapped.
* @holebegin: byte in first page to unmap, relative to the start of
* the underlying file. This will be rounded down to a PAGE_SIZE
--
1.6.0.6
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] memory : adjust the ugly comment
2009-09-25 9:20 [PATCH] memory : adjust the ugly comment Huang Shijie
@ 2009-09-25 18:19 ` Andrew Morton
2009-09-25 18:27 ` Randy Dunlap
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2009-09-25 18:19 UTC (permalink / raw)
To: Huang Shijie; +Cc: linux-mm
On Fri, 25 Sep 2009 17:20:51 +0800 Huang Shijie <shijie8@gmail.com> wrote:
> The origin comment is too ugly, so modify it more beautiful.
>
> Signed-off-by: Huang Shijie <shijie8@gmail.com>
> ---
> mm/memory.c | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/mm/memory.c b/mm/memory.c
> index 7e91b5f..6a38caa 100644
> --- a/mm/memory.c
> +++ b/mm/memory.c
> @@ -2405,7 +2405,10 @@ restart:
> }
>
> /**
> - * unmap_mapping_range - unmap the portion of all mmaps in the specified address_space corresponding to the specified page range in the underlying file.
> + * unmap_mapping_range - unmap the portion of all mmaps in the specified
> + * address_space corresponding to the specified page range
> + * in the underlying file.
> + *
The comment must all be in a single line so that the kerneldoc tools
process it correctly. It's a kerneldoc restriction which all are
welcome to fix ;)
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] memory : adjust the ugly comment
2009-09-25 18:19 ` Andrew Morton
@ 2009-09-25 18:27 ` Randy Dunlap
2009-09-25 18:52 ` Andrew Morton
0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2009-09-25 18:27 UTC (permalink / raw)
To: Andrew Morton; +Cc: Huang Shijie, linux-mm
Andrew Morton wrote:
> On Fri, 25 Sep 2009 17:20:51 +0800 Huang Shijie <shijie8@gmail.com> wrote:
>
>> The origin comment is too ugly, so modify it more beautiful.
>>
>> Signed-off-by: Huang Shijie <shijie8@gmail.com>
>> ---
>> mm/memory.c | 5 ++++-
>> 1 files changed, 4 insertions(+), 1 deletions(-)
>>
>> diff --git a/mm/memory.c b/mm/memory.c
>> index 7e91b5f..6a38caa 100644
>> --- a/mm/memory.c
>> +++ b/mm/memory.c
>> @@ -2405,7 +2405,10 @@ restart:
>> }
>>
>> /**
>> - * unmap_mapping_range - unmap the portion of all mmaps in the specified address_space corresponding to the specified page range in the underlying file.
>> + * unmap_mapping_range - unmap the portion of all mmaps in the specified
>> + * address_space corresponding to the specified page range
>> + * in the underlying file.
>> + *
>
> The comment must all be in a single line so that the kerneldoc tools
> process it correctly. It's a kerneldoc restriction which all are
> welcome to fix ;)
Patch for that (multi-line "short" function descriptions)
was merged just a few days ago.
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6423133bdee0e07d1c2f8411cb3fe676c207ba33
~Randy
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] memory : adjust the ugly comment
2009-09-25 18:27 ` Randy Dunlap
@ 2009-09-25 18:52 ` Andrew Morton
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Morton @ 2009-09-25 18:52 UTC (permalink / raw)
To: Randy Dunlap; +Cc: Huang Shijie, linux-mm
On Fri, 25 Sep 2009 11:27:00 -0700 Randy Dunlap <rdunlap@xenotime.net> wrote:
> Andrew Morton wrote:
> > On Fri, 25 Sep 2009 17:20:51 +0800 Huang Shijie <shijie8@gmail.com> wrote:
> >
> >> The origin comment is too ugly, so modify it more beautiful.
> >>
> >> Signed-off-by: Huang Shijie <shijie8@gmail.com>
> >> ---
> >> mm/memory.c | 5 ++++-
> >> 1 files changed, 4 insertions(+), 1 deletions(-)
> >>
> >> diff --git a/mm/memory.c b/mm/memory.c
> >> index 7e91b5f..6a38caa 100644
> >> --- a/mm/memory.c
> >> +++ b/mm/memory.c
> >> @@ -2405,7 +2405,10 @@ restart:
> >> }
> >>
> >> /**
> >> - * unmap_mapping_range - unmap the portion of all mmaps in the specified address_space corresponding to the specified page range in the underlying file.
> >> + * unmap_mapping_range - unmap the portion of all mmaps in the specified
> >> + * address_space corresponding to the specified page range
> >> + * in the underlying file.
> >> + *
> >
> > The comment must all be in a single line so that the kerneldoc tools
> > process it correctly. It's a kerneldoc restriction which all are
> > welcome to fix ;)
>
> Patch for that (multi-line "short" function descriptions)
> was merged just a few days ago.
>
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6423133bdee0e07d1c2f8411cb3fe676c207ba33
>
w00t. Now we have a lot of ugly comments to clean up ;)
I think it would be better to do this as one-patch-per-subsystem rather
than as a huge number of tiny patches.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-09-25 18:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-25 9:20 [PATCH] memory : adjust the ugly comment Huang Shijie
2009-09-25 18:19 ` Andrew Morton
2009-09-25 18:27 ` Randy Dunlap
2009-09-25 18:52 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox