From: Petr Mladek <pmladek@suse.com>
To: "Guilherme G. Piccoli" <gpiccoli@igalia.com>
Cc: "Maciej W. Rozycki" <macro@orcam.me.uk>,
linux-alpha@vger.kernel.org, mattst88@gmail.com,
linux-kernel@vger.kernel.org, kernel-dev@igalia.com,
kernel@gpiccoli.net, Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
Richard Henderson <richard.henderson@linaro.org>
Subject: Re: [PATCH v5] alpha: Clean-up the panic notifier code
Date: Fri, 20 Oct 2023 09:53:07 +0200 [thread overview]
Message-ID: <ZTIx4-Sn3mzYFzke@alley> (raw)
In-Reply-To: <f5837e2d-2fbd-34f2-37eb-11701db4464e@igalia.com>
On Sun 2023-10-15 15:54:49, Guilherme G. Piccoli wrote:
> On 10/10/2023 02:16, Maciej W. Rozycki wrote:
> > On Sat, 2 Sep 2023, Guilherme G. Piccoli wrote:
> >
> >> So, let's clean the code and set the notifier to run as the
> >> latest, following the same approach other architectures are
> >> doing - also, remove the unnecessary include of a header already
> >> included indirectly.
> >
> > FWIW my understanding is our current policy is not to rely on indirect
> > inclusions and if a given source relies on declarations or definitions
> > provided by a header, then it is supposed to pull it explicitly.
> >
> > And in any case such an unrelated self-contained change is expected to be
> > sent as a separate patch, in a series if there's a mechanical dependency.
> >
> > Maciej
> >
>
> Hi Maciej, thanks for your review!
>
> I'm not sure how the indirect inclusion is happening here. The only
> notifier present in this file is a panic notifier, and for this one, we
> have the "panic_notifier.h" header. It's like this for many others (if
> not all) panic notifiers in the kernel.
IMHO, including linux/panic_notifier.h should be enough. It is includes
linux/notifier.h by definition.
Well, it is not a big deal to keep the include. Let's not block the
change because of this.
> Regarding split in another patch, it can easily be done, but I think
> it's quite self-contained now, a simple patch that cleans-up the alpha
> notifier. I've done that for other notifiers so far, but I'm OK either
> way, as long maintainers are happy and community agrees =)
If I was the maintainer, I would prefer the split as well ;-)
I mean to move the code in one patch and do the changes in
a followup patch.
It is much easier for review. It is more clear what are the real
changes and that there are only wanted changes.
Even removal of the include might be in a separate patch. It helps
to find regressions by bisecting. The eventual revert is easier.
Also it does not block the other changes ;-)
Best Regards,
Petr
next prev parent reply other threads:[~2023-10-20 7:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-02 16:44 Guilherme G. Piccoli
2023-10-10 0:16 ` Maciej W. Rozycki
2023-10-15 13:54 ` Guilherme G. Piccoli
2023-10-20 7:53 ` Petr Mladek [this message]
2023-10-20 14:07 ` Guilherme G. Piccoli
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=ZTIx4-Sn3mzYFzke@alley \
--to=pmladek@suse.com \
--cc=gpiccoli@igalia.com \
--cc=ink@jurassic.park.msu.ru \
--cc=kernel-dev@igalia.com \
--cc=kernel@gpiccoli.net \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=macro@orcam.me.uk \
--cc=mattst88@gmail.com \
--cc=richard.henderson@linaro.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
all inboxes | Powered by JetHome®