public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] cpusets: cleanup kernel-doc
@ 2008-05-30  7:32 Miao Xie
  2008-05-30  7:43 ` Paul Jackson
  2008-05-30  9:50 ` Alan Cox
  0 siblings, 2 replies; 4+ messages in thread
From: Miao Xie @ 2008-05-30  7:32 UTC (permalink / raw)
  To: Andrew Morton, Linux-Kernel; +Cc: Paul Jackson, Paul Menage

1. Use '/*' instead of '/**' for static functions.
2. Remove redundant blank line.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>

---
 kernel/cpuset.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 86ea9e3..f063368 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -731,7 +731,7 @@ static inline int started_after(void *p1, void *p2)
 	return started_after_time(t1, &t2->start_time, t2);
 }
 
-/**
+/*
  * cpuset_test_cpumask - test a task's cpus_allowed versus its cpuset's
  * @tsk: task to test
  * @scan: struct cgroup_scanner contained in its struct cpuset_hotplug_scanner
@@ -748,7 +748,7 @@ static int cpuset_test_cpumask(struct task_struct *tsk,
 			(cgroup_cs(scan->cg))->cpus_allowed);
 }
 
-/**
+/*
  * cpuset_change_cpumask - make a task's cpus_allowed the same as its cpuset's
  * @tsk: task to test
  * @scan: struct cgroup_scanner containing the cgroup of the task
@@ -765,7 +765,7 @@ static void cpuset_change_cpumask(struct task_struct *tsk,
 	set_cpus_allowed_ptr(tsk, &((cgroup_cs(scan->cg))->cpus_allowed));
 }
 
-/**
+/*
  * update_cpumask - update the cpus_allowed mask of a cpuset and all tasks in it
  * @cs: the cpuset to consider
  * @buf: buffer of cpu numbers written to this cpuset
@@ -1736,7 +1736,7 @@ int __init cpuset_init(void)
 	return 0;
 }
 
-/**
+/*
  * cpuset_do_move_task - move a given task to another cpuset
  * @tsk: pointer to task_struct the task to move
  * @scan: struct cgroup_scanner contained in its struct cpuset_hotplug_scanner
@@ -1753,7 +1753,7 @@ static void cpuset_do_move_task(struct task_struct *tsk,
 	cgroup_attach_task(chsp->to, tsk);
 }
 
-/**
+/*
  * move_member_tasks_to_cpuset - move tasks from one cpuset to another
  * @from: cpuset in which the tasks currently reside
  * @to: cpuset to which the tasks will be moved
@@ -1938,7 +1938,6 @@ void __init cpuset_init_smp(void)
 }
 
 /**
-
  * cpuset_cpus_allowed - return cpus_allowed mask from a tasks cpuset.
  * @tsk: pointer to task_struct from which to obtain cpuset->cpus_allowed.
  * @pmask: pointer to cpumask_t variable to receive cpus_allowed set.
-- 
1.5.4.rc3




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/3] cpusets: cleanup kernel-doc
  2008-05-30  7:32 [PATCH 1/3] cpusets: cleanup kernel-doc Miao Xie
@ 2008-05-30  7:43 ` Paul Jackson
  2008-05-30  9:50 ` Alan Cox
  1 sibling, 0 replies; 4+ messages in thread
From: Paul Jackson @ 2008-05-30  7:43 UTC (permalink / raw)
  To: miaox; +Cc: akpm, linux-kernel, menage

Miao wrote:
> 1. Use '/*' instead of '/**' for static functions.
> 2. Remove redundant blank line.

Acked-by: Paul Jackson <pj@sgi.com>

-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <pj@sgi.com> 1.940.382.4214

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/3] cpusets: cleanup kernel-doc
  2008-05-30  7:32 [PATCH 1/3] cpusets: cleanup kernel-doc Miao Xie
  2008-05-30  7:43 ` Paul Jackson
@ 2008-05-30  9:50 ` Alan Cox
  2008-05-30 15:26   ` Paul Jackson
  1 sibling, 1 reply; 4+ messages in thread
From: Alan Cox @ 2008-05-30  9:50 UTC (permalink / raw)
  To: miaox; +Cc: Andrew Morton, Linux-Kernel, Paul Jackson, Paul Menage

On Fri, 30 May 2008 15:32:04 +0800
Miao Xie <miaox@cn.fujitsu.com> wrote:

> 1. Use '/*' instead of '/**' for static functions.
> 2. Remove redundant blank line.
> 
> Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>

NAK. These are not redundant, they are used to pull documentation out of
the tree using kernel-doc or other tools that know how to finish entries
out for both inline and non-inlines.

Alan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/3] cpusets: cleanup kernel-doc
  2008-05-30  9:50 ` Alan Cox
@ 2008-05-30 15:26   ` Paul Jackson
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Jackson @ 2008-05-30 15:26 UTC (permalink / raw)
  To: Alan Cox; +Cc: miaox, akpm, linux-kernel, menage

> These are not redundant

Miao wasn't saying the kernel-doc '/**' markers were redundant.

He was saying that, in one case, there was a redundant
blank line, right in the middle of a kernel-doc comment,
that broke that particular kernel-doc formatting.

That one-line fix is still worth getting in, though
probably not worth a patch all by itself.

The NAK by Alan of the rest of this patch still applies.

Thanks, Alan, Randy and Miao.

-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <pj@sgi.com> 1.940.382.4214

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-30 15:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-30  7:32 [PATCH 1/3] cpusets: cleanup kernel-doc Miao Xie
2008-05-30  7:43 ` Paul Jackson
2008-05-30  9:50 ` Alan Cox
2008-05-30 15:26   ` Paul Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox