From: Ingo Molnar <mingo@elte.hu>
To: Roland McGrath <roland@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] trailing whitespace in kernel/ptrace.c
Date: Thu, 15 Jan 2009 23:11:35 +0100 [thread overview]
Message-ID: <20090115221135.GA10283@elte.hu> (raw)
In-Reply-To: <20090115205751.B5F6EFC3DD@magilla.sf.frob.com>
* Roland McGrath <roland@redhat.com> wrote:
> These bug me every time I want to touch ptrace.c, nix them.
>
> Signed-off-by: Roland McGrath <roland@redhat.com>
> ---
> kernel/ptrace.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
btw., here's the checkpatch output from that file:
------------------>
WARNING: Use #include <linux/uaccess.h> instead of <asm/uaccess.h>
#26: FILE: ptrace.c:26:
+#include <asm/uaccess.h>
ERROR: trailing whitespace
#51: FILE: ptrace.c:51:
+ $
WARNING: braces {} are not necessary for any arm of this statement
#63: FILE: ptrace.c:63:
+ if (child->signal->flags & SIGNAL_STOP_STOPPED) {
[...]
+ } else {
[...]
CHECK: memory barrier without comment
#157: FILE: ptrace.c:157:
+ smp_rmb();
ERROR: return is not a function, parentheses are not required
#172: FILE: ptrace.c:172:
+ return (!err ? true : false);
WARNING: line over 80 characters
#266: FILE: ptrace.c:266:
+int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst, int len)
ERROR: trailing whitespace
#286: FILE: ptrace.c:286:
+^I^Ilen -= retval;^I^I^I$
WARNING: line over 80 characters
#291: FILE: ptrace.c:291:
+int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long dst, int len)
ERROR: trailing whitespace
#311: FILE: ptrace.c:311:
+^I^Ilen -= retval;^I^I^I$
ERROR: else should follow close brace '}'
#425: FILE: ptrace.c:425:
+ }
+ else
WARNING: line over 80 characters
#455: FILE: ptrace.c:455:
+ ret = put_user(child->ptrace_message, (unsigned long __user *) data);
total: 5 errors, 6 warnings, 1 checks, 741 lines checked
kernel/ptrace.c has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
next prev parent reply other threads:[~2009-01-15 22:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-15 20:57 [PATCH] trailing whitespace in kernel/ptrace.c Roland McGrath
2009-01-15 22:11 ` Ingo Molnar [this message]
2009-01-16 20:44 ` Andrew Morton
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=20090115221135.GA10283@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@redhat.com \
--cc=torvalds@linux-foundation.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.