From: Greg KH <gregkh@linuxfoundation.org>
To: Daniel Dressler <danieru.dressler@gmail.com>
Cc: devel@driverdev.osuosl.org, waydi1@gmail.com,
yangds.fnst@cn.fujitsu.com, serban.constantinescu@arm.com,
linux-kernel@vger.kernel.org, arve@android.com,
john.stultz@linaro.org, prtvar.b@gmail.com
Subject: Re: [PATCH] staging: android: binder: Fix 10 overlong lines
Date: Thu, 19 Jun 2014 15:47:16 -0700 [thread overview]
Message-ID: <20140619224716.GA8223@kroah.com> (raw)
In-Reply-To: <1401578993-24829-1-git-send-email-danieru.dressler@gmail.com>
On Sat, May 31, 2014 at 05:29:53PM -0600, Daniel Dressler wrote:
> This patch was made following Greg Kroah-Hartman's
> newbie guide. It is not intended to make any
> logical alterations to codeflow. Of note to reviews
> this patch switch's a call to kzalloc to kcalloc on
> line 2837
>
> Neil Brown gave good advice on how to align
> the over-long function calls. He suggested
> using a single tab to indent the arguments.
> Like thus:
> var = function(
> arg1, arg2, arg3, arg4);
>
> I intended to use the style he suggested but
> noticed much of the existing code instead
> aligns the overflow with the first argument
> and tries to give all arguments equal space.
> Like thus:
> var = function(arg1, arg2
> arg3, arg4);
>
> This second method uses spaces to align the
> arguments.
>
> Taking a survey of the first 800 lines the
> following lines used each method:
>
> Method #1: 666, 527, 572
> Method #2: 475, 495, 520, 545, 554, 582, 630,
> 677, 788
>
> Thus to maintain consistancy this patch uses
> method #1. If method #1 is not acceptable
> please do not hesitate to say so.
>
> Signed-off-by: Daniel Dressler <danieru.dressler@gmail.com>
> ---
> drivers/staging/android/binder.c | 32 ++++++++++++++++++++++----------
> 1 file changed, 22 insertions(+), 10 deletions(-)
This patch doesn't apply properly to my staging-next branch of the
staging.git tree :(
prev parent reply other threads:[~2014-06-19 22:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-31 23:29 [PATCH] staging: android: binder: Fix 10 overlong lines Daniel Dressler
2014-06-19 22:47 ` Greg KH [this message]
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=20140619224716.GA8223@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=arve@android.com \
--cc=danieru.dressler@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=prtvar.b@gmail.com \
--cc=serban.constantinescu@arm.com \
--cc=waydi1@gmail.com \
--cc=yangds.fnst@cn.fujitsu.com \
/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.