From: Thomas Gleixner <tglx@linutronix.de>
To: Jinjie Ruan <ruanjinjie@huawei.com>, linux-kernel@vger.kernel.org
Cc: ruanjinjie@huawei.com
Subject: Re: [PATCH] genirq: Refactor the irq_chip_xxx_parent()
Date: Tue, 14 May 2024 19:23:37 +0200 [thread overview]
Message-ID: <87pltol33a.ffs@tglx> (raw)
In-Reply-To: <20240514131910.2614027-1-ruanjinjie@huawei.com>
On Tue, May 14 2024 at 21:19, Jinjie Ruan wrote:
> +static inline void irq_chip_do_common_parent(void (*chip_action)(struct irq_data *),
> + struct irq_data *data)
> +{
> + data = data->parent_data;
> + chip_action(data);
> +}
> void irq_chip_eoi_parent(struct irq_data *data)
> {
> - data = data->parent_data;
> - data->chip->irq_eoi(data);
> + irq_chip_do_common_parent(data->chip->irq_eoi, data);
> }
> EXPORT_SYMBOL_GPL(irq_chip_eoi_parent);
How is this equivalent?
The original code does:
data = data->parent_data;
data->chip->irq_eoi(data);
which is equivalent to:
data->parent_data->chip->irq_eoi(data->parent_data);
while your change resolves to:
data->chip->irq_eoi(data->parent_data);
Seriously?
I'm starting to get tired of your flood of half baken 'cleanup' patches.
Thanks,
tglx
next prev parent reply other threads:[~2024-05-14 17:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-14 13:19 [PATCH] genirq: Refactor the irq_chip_xxx_parent() Jinjie Ruan
2024-05-14 17:23 ` Thomas Gleixner [this message]
2024-05-16 15:07 ` kernel test robot
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=87pltol33a.ffs@tglx \
--to=tglx@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=ruanjinjie@huawei.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