From: sashiko-bot@kernel.org
To: "Eliav Farber" <farbere@amazon.com>
Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com
Subject: Re: [PATCH v2 12/12] reboot: use devm_blocking_notifier_chain_register()
Date: Sun, 26 Jul 2026 05:07:00 +0000 [thread overview]
Message-ID: <20260726050700.864711F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260726045706.8169-13-farbere@amazon.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The commit message incorrectly claims to replace the `blocking_notifier_chain_register() + devm_add_action_or_reset()` pattern, which was not used in the original code.
--
--- Patch [12]: [PATCH v2 12/12] reboot: use devm_blocking_notifier_chain_register() ---
commit 8cd90dfccbe30e1a7f1ea6421b385708237370fb
Author: Eliav Farber <farbere@amazon.com>
reboot: use devm_blocking_notifier_chain_register()
This commit replaces the manual devres allocation and registration pattern
in devm_register_reboot_notifier() with a direct call to
devm_blocking_notifier_chain_register(). It also drops the now unused
devm_unregister_reboot_notifier() callback.
> Replace the blocking_notifier_chain_register() +
> devm_add_action_or_reset() pattern with a single call to
> devm_blocking_notifier_chain_register(), removing the
> devm_unregister_reboot_notifier() callback.
[Severity: Medium]
This isn't a bug, but does the commit message accurately describe the old
code?
Looking at the original implementation of devm_register_reboot_notifier()
in kernel/reboot.c, it didn't use devm_add_action_or_reset(), but rather
manually allocated the devres struct:
rcnb = devres_alloc(devm_unregister_reboot_notifier,
sizeof(*rcnb), GFP_KERNEL);
if (!rcnb)
return -ENOMEM;
ret = register_reboot_notifier(nb);
Could the commit message be updated to accurately reflect the pattern that
was actually removed from the code?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260726045706.8169-1-farbere@amazon.com?part=12
prev parent reply other threads:[~2026-07-26 5:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-26 4:56 [PATCH v2 00/12] notifier: add device-managed registration APIs and convert drivers Eliav Farber
2026-07-26 4:56 ` [PATCH v2 01/12] notifier: add device-managed registration APIs Eliav Farber
2026-07-26 5:06 ` sashiko-bot
2026-07-26 4:56 ` [PATCH v2 02/12] pwm: iqs620a: use devm_blocking_notifier_chain_register() Eliav Farber
2026-07-26 4:56 ` [PATCH v2 03/12] iio: light: iqs621-als: " Eliav Farber
2026-07-26 4:56 ` [PATCH v2 04/12] iio: position: iqs624: " Eliav Farber
2026-07-26 4:56 ` [PATCH v2 05/12] gpio: adp5585: " Eliav Farber
2026-07-26 4:57 ` [PATCH v2 06/12] platform/x86: bitland-mifs-wmi: " Eliav Farber
2026-07-26 4:57 ` [PATCH v2 07/12] Input: adp5585: " Eliav Farber
2026-07-26 4:57 ` [PATCH v2 08/12] ACPI: APEI: GHES: " Eliav Farber
2026-07-26 4:57 ` [PATCH v2 09/12] platform/x86: uniwill-wmi: " Eliav Farber
2026-07-26 4:57 ` [PATCH v2 10/12] gpio: eic-sprd: use devm_atomic_notifier_chain_register() Eliav Farber
2026-07-26 4:57 ` [PATCH v2 11/12] gpio: gpiolib-kunit: use devm_blocking_notifier_chain_register() Eliav Farber
2026-07-26 4:57 ` [PATCH v2 12/12] reboot: " Eliav Farber
2026-07-26 5:07 ` sashiko-bot [this message]
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=20260726050700.864711F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=farbere@amazon.com \
--cc=linux-input@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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