From: Greg KH <gregkh@linuxfoundation.org>
To: "Aleksa Vučković" <aleksav013@gmail.com>
Cc: salah.triki@gmail.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers: dio: Fixed coding style issues
Date: Thu, 27 Jan 2022 11:08:56 +0100 [thread overview]
Message-ID: <YfJvOO+YKRDR35BJ@kroah.com> (raw)
In-Reply-To: <20220127100414.o3hj63sirlavyb33@artix.localdomain>
On Thu, Jan 27, 2022 at 11:04:14AM +0100, Aleksa Vučković wrote:
> Hey,
>
> I made a really simple patch fixing coding style errors.
> Could you please review it, and tell me how to prevent errors like this:
>
> > - Your patch did many different things all at once, making it
> > difficult to review.
>
> from happening in the future.
>
> Should i split changes into 2 patches? One for upper half and one for
> lower half of the file I changed?
One patch per type of logical change is recommended, the location in the
file does not matter.
> Many lines have multiple errors, so if I fix one error, I also need to
> fix the other one.
That's not a problem, and is not why your previous patches were
rejected. Your previous patches were rejected as in your attempts to
fix coding style issues you added new ones.
> So I can not just have patch fixing one thing at the
> time. Should I try to fix error in this manner:
> [PATCH 1/3] fix lines that have ONLY spaces to tabs error
> [PATCH 2/3] fix lines that have ONLY braces error
> [PATCH 3/3] fix lines that have spaces to tabs error AND braces error
> or should I have a different approach?
Look at the examples on the staging mailing list for how to do this
well. There are thousands of examples of "do only one type of change
per patch" out there. To ignore the work others have done is odd.
> Sorry for bothering, this is my first time submitting patches.
Please start out by working in the drivers/staging/ part of the kernel
when learning how to do development, as that is explicitly what that
part of the kernel is for, and it keeps other maintainers from being
bothered by basic functionality and procedural issues like this.
thanks,
greg k-h
next prev parent reply other threads:[~2022-01-27 10:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-26 19:53 Aleksa Vučković
2022-01-27 6:29 ` Greg KH
2022-01-27 10:04 ` Aleksa Vučković
2022-01-27 10:08 ` Greg KH [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-01-24 19:02 [PATCH] drivers: dio: fixed " Aleksa Vučković
2022-01-25 8:22 ` Greg KH
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=YfJvOO+YKRDR35BJ@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=aleksav013@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=salah.triki@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome