* [PATCH 2.6.25-rc3-mm1] IPC: fix a kernel-doc warning
@ 2008-03-07 20:36 Pierre Peiffer
2008-03-07 21:01 ` Randy Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: Pierre Peiffer @ 2008-03-07 20:36 UTC (permalink / raw)
To: akpm, Randy Dunlap; +Cc: linux-kernel
Hi,
This patch fixes this warning produced by kernel-doc (thanks Randy Dunlap):
Warning(linux-2.6.25-rc3-mm1//ipc/util.c:845):
No description found for parameter 'extrat_perm'
It is due to an inconsistency in a variable name between the C-code and
the associated comment.
Signed-off-by: Pierre Peiffer <peifferp@gmail.com>
---
ipc/util.c | 4 ++--
ipc/util.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
Index: b/ipc/util.c
===================================================================
--- a/ipc/util.c
+++ b/ipc/util.c
@@ -841,7 +841,7 @@
* or an err-code without any lock held otherwise.
*/
struct kern_ipc_perm *ipcctl_pre_down(struct ipc_ids *ids, int id, int cmd,
- struct ipc64_perm *perm, int extrat_perm)
+ struct ipc64_perm *perm, int extra_perm)
{
struct kern_ipc_perm *ipcp;
int err;
@@ -858,7 +858,7 @@
goto out_unlock;
if (cmd == IPC_SET) {
- err = audit_ipc_set_perm(extrat_perm, perm->uid,
+ err = audit_ipc_set_perm(extra_perm, perm->uid,
perm->gid, perm->mode);
if (err)
goto out_unlock;
Index: b/ipc/util.h
===================================================================
--- a/ipc/util.h
+++ b/ipc/util.h
@@ -114,7 +114,7 @@
void ipc64_perm_to_ipc_perm(struct ipc64_perm *in, struct ipc_perm *out);
void ipc_update_perm(struct ipc64_perm *in, struct kern_ipc_perm *out);
struct kern_ipc_perm *ipcctl_pre_down(struct ipc_ids *ids, int id, int cmd,
- struct ipc64_perm *perm, int extrat_perm);
+ struct ipc64_perm *perm, int extra_perm);
#if defined(__ia64__) || defined(__x86_64__) || defined(__hppa__) ||
defined(__XTENSA__)
/* On IA-64, we always use the "64-bit version" of the IPC structures. */
--
Pierre
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2.6.25-rc3-mm1] IPC: fix a kernel-doc warning
2008-03-07 20:36 [PATCH 2.6.25-rc3-mm1] IPC: fix a kernel-doc warning Pierre Peiffer
@ 2008-03-07 21:01 ` Randy Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2008-03-07 21:01 UTC (permalink / raw)
To: Pierre Peiffer; +Cc: akpm, linux-kernel
Pierre Peiffer wrote:
> Hi,
>
> This patch fixes this warning produced by kernel-doc (thanks Randy Dunlap):
>
> Warning(linux-2.6.25-rc3-mm1//ipc/util.c:845):
> No description found for parameter 'extrat_perm'
>
> It is due to an inconsistency in a variable name between the C-code and
> the associated comment.
>
> Signed-off-by: Pierre Peiffer <peifferp@gmail.com>
Thanks, looks good.
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
> ---
> ipc/util.c | 4 ++--
> ipc/util.h | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> Index: b/ipc/util.c
> ===================================================================
> --- a/ipc/util.c
> +++ b/ipc/util.c
> @@ -841,7 +841,7 @@
> * or an err-code without any lock held otherwise.
> */
> struct kern_ipc_perm *ipcctl_pre_down(struct ipc_ids *ids, int id, int cmd,
> - struct ipc64_perm *perm, int extrat_perm)
> + struct ipc64_perm *perm, int extra_perm)
> {
> struct kern_ipc_perm *ipcp;
> int err;
> @@ -858,7 +858,7 @@
> goto out_unlock;
>
> if (cmd == IPC_SET) {
> - err = audit_ipc_set_perm(extrat_perm, perm->uid,
> + err = audit_ipc_set_perm(extra_perm, perm->uid,
> perm->gid, perm->mode);
> if (err)
> goto out_unlock;
> Index: b/ipc/util.h
> ===================================================================
> --- a/ipc/util.h
> +++ b/ipc/util.h
> @@ -114,7 +114,7 @@
> void ipc64_perm_to_ipc_perm(struct ipc64_perm *in, struct ipc_perm *out);
> void ipc_update_perm(struct ipc64_perm *in, struct kern_ipc_perm *out);
> struct kern_ipc_perm *ipcctl_pre_down(struct ipc_ids *ids, int id, int cmd,
> - struct ipc64_perm *perm, int extrat_perm);
> + struct ipc64_perm *perm, int extra_perm);
>
> #if defined(__ia64__) || defined(__x86_64__) || defined(__hppa__) ||
> defined(__XTENSA__)
> /* On IA-64, we always use the "64-bit version" of the IPC structures. */
>
--
~Randy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-07 21:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-07 20:36 [PATCH 2.6.25-rc3-mm1] IPC: fix a kernel-doc warning Pierre Peiffer
2008-03-07 21:01 ` Randy Dunlap
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.