[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170221141256.gowusquywtvyr7ac@shinestorm>
Date: Tue, 21 Feb 2017 06:12:56 -0800
From: Matthew Giassa <matthew@...ssa.net>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: Wolfram Sang <wsa@...-dreams.de>,
Greg KH <gregkh@...uxfoundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Linux-Renesas <linux-renesas-soc@...r.kernel.org>,
driverdevel <devel@...verdev.osuosl.org>
Subject: Re: [PATCH] staging/ks7010: formatting updates.
* Geert Uytterhoeven <geert@...ux-m68k.org> [2017-02-21 08:59:18 +0100]:
Hi Geert,
>On Tue, Feb 21, 2017 at 5:20 AM, Matthew Giassa <matthew@...ssa.net> wrote:
>> Please pardon the earlier e-mail which was missing the changelog text.
>
>This line should be between the "---" and the diffstat below.
>
Thank you.
>> Some additional style changes to appease checkpatch.
>
>Which additional style changes?
>
* Aligning function parameters in the function prototypes.
* Removing "double newlines". where checkpatch warns about them.
* Spaces between macro names, '+', and integer literals.
* Swapped out some line comments with C-style equivalent.
* Removing trailing spaces.
>> ---
>> drivers/staging/ks7010/ks_wlan_ioctl.h | 80 +++++++++++++++++-----------------
>> 1 file changed, 41 insertions(+), 39 deletions(-)
>>
>> diff --git a/drivers/staging/ks7010/ks_wlan_ioctl.h b/drivers/staging/ks7010/ks_wlan_ioctl.h
>> index 84554b6..00eec18 100644
>> --- a/drivers/staging/ks7010/ks_wlan_ioctl.h
>> +++ b/drivers/staging/ks7010/ks_wlan_ioctl.h
>
>> #include "ks_wlan.h"
>> #include <linux/netdevice.h>
>>
>> -int ks_wlan_read_config_file(struct ks_wlan_private *priv);
>> -int ks_wlan_setup_parameter(struct ks_wlan_private *priv,
>> - unsigned int commit_flag);
>> +int ks_wlan_read_config_file(
>> + struct ks_wlan_private *priv);
>> +int ks_wlan_setup_parameter(
>> + struct ks_wlan_private *priv,
>> + unsigned int commit_flag);
>
>Really?
>If checkpatch complained about the above, you should file a bug report
>against checkpatch.
>
>Gr{oetje,eeting}s,
It seems to be a very deliberate message from checkpatch, complaining
about the alignment of the beginning of individual function parameters
in the prototype. The only two configurations which appeased it was the
changes I put in above, or a combination of hard-tabs (8-wide, noexpand)
and spaces, which I thought was ugly.
--
Matthew
Powered by blists - more mailing lists