From: Thomas Gleixner <tglx@linutronix.de>
To: Paran Lee <p4ranlee@gmail.com>
Cc: linux-kernel@vger.kernel.org, Craig Gallek <kraig@google.com>,
Austin Kim <austindh.kim@gmail.com>
Subject: Re: [PATCH] genirq: Refactor actions_show loop block using a common macro to go through the actions list
Date: Sun, 10 Apr 2022 21:17:56 +0200 [thread overview]
Message-ID: <87fsmkhhnf.ffs@tglx> (raw)
In-Reply-To: <20220408114153.GA1955@DESKTOP-S4LJL03.localdomain>
Paran,
On Fri, Apr 08 2022 at 20:41, Paran Lee wrote:
thanks for providing this patch.
> Hello, I am Paran Lee.
>
> Since we have a macro defined in our IRQ subsystem internal functions to
> traverse the list of actions, how about refactoring this loop?
>
> - genirq: Use a common macro to go through the actions list
> (f944b5a7aff05a244a6c8cac297819af09a199e4)
>
> have a good day!
> Paran Lee.
Neither 'Hello' nor 'have a good day' are part of the change log.
Also please write the changelog in a factual way and not in form of a
question. If you want to add a reference to a git commit, then please
use the canonical form as described in Documentation/process, where you
also find the general patch submission rules. There is also a tip tree
specific chapter:
https://www.kernel.org/doc/html/latest/process/maintainer-tip.html?highlight=x86#patch-submission-notes
Following these rules makes everyones life simpler.
> Signed-off-by: Paran Lee <p4ranlee@gmail.com>
> ---
> kernel/irq/irqdesc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
> index 939d21cd55c3..34a0cefff712 100644
> --- a/kernel/irq/irqdesc.c
> +++ b/kernel/irq/irqdesc.c
> @@ -246,12 +246,12 @@ static ssize_t actions_show(struct kobject *kobj,
> struct kobj_attribute *attr, char *buf)
> {
> struct irq_desc *desc = container_of(kobj, struct irq_desc, kobj);
> - struct irqaction *action;
> + struct irqaction *action = NULL;
There is no NULL initialization required.
Thanks,
tglx
next prev parent reply other threads:[~2022-04-10 19:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-08 11:41 [PATCH] genirq: Refactor actions_show loop block using a common macro to go through the actions list Paran Lee
2022-04-10 19:17 ` Thomas Gleixner [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-04-08 8:09 Paran Lee
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=87fsmkhhnf.ffs@tglx \
--to=tglx@linutronix.de \
--cc=austindh.kim@gmail.com \
--cc=kraig@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=p4ranlee@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