From: "Guilherme G. Piccoli" <gpiccoli@igalia.com>
To: "Maciej W. Rozycki" <macro@orcam.me.uk>
Cc: 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>,
Petr Mladek <pmladek@suse.com>
Subject: Re: [PATCH v5] alpha: Clean-up the panic notifier code
Date: Sun, 15 Oct 2023 15:54:49 +0200 [thread overview]
Message-ID: <f5837e2d-2fbd-34f2-37eb-11701db4464e@igalia.com> (raw)
In-Reply-To: <alpine.DEB.2.21.2310100109100.48714@angie.orcam.me.uk>
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.
Usually the indirect inclusion would happen if some other notifier block
was used for any other reason, and we dropped the "notifier.h" include,
which then would indirectly rely on "panic_notifier.h". In case I'm
talking silly things, let me know! I might not have understood properly
your point (and if so, apologies).
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 =)
Cheers,
Guilherme
next prev parent reply other threads:[~2023-10-15 13:55 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 [this message]
2023-10-20 7:53 ` Petr Mladek
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=f5837e2d-2fbd-34f2-37eb-11701db4464e@igalia.com \
--to=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=pmladek@suse.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®