From: Chen Gang <gang.chen@asianux.com>
To: Li Zefan <lizefan@huawei.com>
Cc: Joe Perches <joe@perches.com>,
"'Jiri Kosina'" <trivial@kernel.org>,
Jens Axboe <axboe@kernel.dk>, Guenter Roeck <linux@roeck-us.net>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH trivial] block/ioctl.c: let code match 'kernel code style'
Date: Tue, 03 Sep 2013 17:54:56 +0800 [thread overview]
Message-ID: <5225B1F0.90803@asianux.com> (raw)
In-Reply-To: <5225A685.5040507@asianux.com>
It seems necessary to explain my goal (why I intended to send this patch).
1. support the 'work' of Joe and trivial@kernel.org.
in my opinion, 'trivial' means none-urgent, but it also means important.
(if both none-urgent and none-important, why need it?)
so I intend to send 1 or 2 trivial patches per month to express my opinion and support their 'work'.
2. I have planned to provide some contributes to block sub-system in 2nd half of 2013.
I have mentioned about it in my some original discussions (if necessary, I will provide the proof).
but at least now, I have done nothing for block sub system.
it is time to do something for it.
3. avoid the misunderstanding of the other related discussion in kernel mailing list.
the discussion is about whether need "#ifdef" for a patch.
maybe some members (e.g. Guenter) misunderstand me: "I do not care about the code style".
(it is only my 'guess', may he does not misunderstand, and this patch wants to make it clear).
BTW:
at least for me, I don't think "more patches is more contributions".
but it is true that I am trying to send more patches and get more discussions in kernel mailing list.
and I am (should be) also trying to avoid send waste mails to kernel mailing list.
Welcome any additional suggestions or completions.
Thanks.
On 09/03/2013 05:06 PM, Chen Gang wrote:
> On 09/03/2013 04:55 PM, Li Zefan wrote:
>> Please don't. Pure colding style cleanup is discouraged.
>>
>
> Pardon?
>
> Do you mean "coding style", not "colding style"? (or it is my
> misunderstanding?).
>
>
>> You're not going to run checkpatch.pl on the whole kernel tree and fix
>> all the complaints, are you?
>>
>
> I am not going to, it seems that may be the 'job' of Joe and
> trivial@kernel.org?
>
>
> BTW: it seems you did not redirect my mails to "/dev/null". ;-)
>
> Thanks.
>
>> On 2013/9/3 16:29, Chen Gang wrote:
>>> For 'switch case', remove redundancy '\t' (also can let related lines
>>> within 80 columns) and remove redundancy empty lines, just like other
>>> 'switch case' which match 'kernel code style' within the file.
>>>
>>> Let blkpg_ioctl() within 80 columns. Let 2nd line of blkdev_ioctl() and
>>> __blkdev_driver_ioctl() align 1st line parameter's start position, just
>>> like blk_ioctl_discard() and blk_ioctl_zeroout() within the file.
>>>
>>> For is_unrecognized_ioctl(), can shrink the 'return' statement into one
>>> line (so can save 2 lines), it still matches 'kernel code style' and it
>>> is no conflict with others within the file.
>>>
>>>
>>> Signed-off-by: Chen Gang <gang.chen@asianux.com>
>>> ---
>>> block/ioctl.c | 216 ++++++++++++++++++++++++++++-----------------------------
>>> 1 files changed, 105 insertions(+), 111 deletions(-)
>>
>>
>>
>
>
--
Chen Gang
prev parent reply other threads:[~2013-09-03 9:56 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-26 10:31 [PATCH] h8300/kernel/setup.c: add "linux/initrd.h" to pass compiling Chen Gang
2013-08-26 11:00 ` Geert Uytterhoeven
2013-08-26 11:06 ` Chen Gang
2013-08-26 11:08 ` Geert Uytterhoeven
2013-08-26 11:19 ` Chen Gang
2013-08-26 22:12 ` Guenter Roeck
2013-08-27 1:58 ` Chen Gang
2013-08-30 3:54 ` Chen Gang
2013-08-30 3:59 ` [PATCH v2] " Chen Gang
2013-08-30 4:32 ` Guenter Roeck
2013-08-30 5:49 ` Chen Gang
2013-08-30 11:12 ` Guenter Roeck
2013-09-02 2:51 ` Chen Gang
2013-08-30 4:53 ` Guenter Roeck
2013-08-30 6:34 ` Chen Gang
2013-08-30 11:18 ` Guenter Roeck
2013-08-30 11:44 ` richard -rw- weinberger
2013-08-30 12:20 ` Guenter Roeck
2013-09-02 3:26 ` Chen Gang
2013-09-03 8:29 ` [PATCH trivial] block/ioctl.c: let code match 'kernel code style' Chen Gang
2013-09-03 8:55 ` Li Zefan
2013-09-03 9:06 ` Chen Gang
2013-09-03 9:27 ` Jiri Kosina
2013-09-03 9:58 ` Chen Gang
2013-09-03 9:54 ` Chen Gang [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=5225B1F0.90803@asianux.com \
--to=gang.chen@asianux.com \
--cc=axboe@kernel.dk \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=lizefan@huawei.com \
--cc=trivial@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox