From: sashiko-bot@kernel.org
To: "Yury Norov" <ynorov@nvidia.com>
Cc: linux-cxl@vger.kernel.org, Frank.Li@kernel.org,
imx@lists.linux.dev, linux-perf-users@vger.kernel.org,
linux-amlogic@lists.infradead.org, neil.armstrong@linaro.org,
linux-pci@vger.kernel.org
Subject: Re: [PATCH v2 11/11] lib/bitmap-str: get rid of cpumap_print_to_pagebuf()
Date: Thu, 02 Jul 2026 15:58:30 +0000 [thread overview]
Message-ID: <20260702155830.EE5FC1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260702154725.185376-12-ynorov@nvidia.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The function `cpumap_print_to_pagebuf()` is deleted but still called in `drivers/firmware/psci/psci_checker.c`, causing a build failure for ARM configurations.
--
commit 905d23faa26c3dcaccb88eda3b8626258147c495
Author: Yury Norov <ynorov@nvidia.com>
lib/bitmap-str: get rid of cpumap_print_to_pagebuf()
This commit removes cpumap_print_to_pagebuf(), stating that all users of the
function have been switched to alternatives.
> diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h
> --- a/include/linux/cpumask.h
> +++ b/include/linux/cpumask.h
[ ... ]
> @@ -1315,24 +1314,6 @@ static __always_inline bool cpu_dying(unsigned int cpu)
> }
> #endif /* NR_CPUS > BITS_PER_LONG */
>
> -/**
> - * cpumap_print_to_pagebuf - copies the cpumask into the buffer either
> - * as comma-separated list of cpus or hex values of cpumask
> - * @list: indicates whether the cpumap must be list
> - * @mask: the cpumask to copy
> - * @buf: the buffer to copy into
> - *
> - * Return: the length of the (null-terminated) @buf string, zero if
> - * nothing is copied.
> - */
> -static __always_inline ssize_t
> -cpumap_print_to_pagebuf(bool list, char *buf, const struct cpumask *mask)
> -{
[Severity: Low]
Will this removal cause a build break for ARM configurations?
It appears there is still at least one remaining caller of this function
that was not migrated in drivers/firmware/psci/psci_checker.c:
drivers/firmware/psci/psci_checker.c:hotplug_tests() {
...
ssize_t len = cpumap_print_to_pagebuf(true, page_buf,
cpu_groups[i]);
...
}
Does this remaining callsite need to be updated to an alternative before
dropping the function?
> - /* Opencode offset_in_page(buf) to not include linux/mm.h */
> - return scnprintf(buf, PAGE_SIZE - ((unsigned long)buf & ~PAGE_MASK),
> - list ? "%*pbl\n" : "%*pb\n", cpumask_pr_args(mask));
> -}
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260702154725.185376-1-ynorov@nvidia.com?part=11
prev parent reply other threads:[~2026-07-02 15:58 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-02 15:47 [PATCH v2 00/11] lib/cpumask: get rid of cpumap_print_to_pagebuf() Yury Norov
2026-07-02 15:47 ` [PATCH v2 01/11] arm: Use sysfs_emit() for cpumask show callbacks Yury Norov
2026-07-02 15:54 ` sashiko-bot
2026-07-02 15:58 ` Greg Kroah-Hartman
2026-07-02 16:05 ` Yury Norov
2026-07-02 15:47 ` [PATCH v2 02/11] powerpc: " Yury Norov
2026-07-02 15:55 ` sashiko-bot
2026-07-02 15:47 ` [PATCH v2 03/11] x86/events: " Yury Norov
2026-07-02 15:54 ` sashiko-bot
2026-07-02 15:47 ` [PATCH v2 04/11] cpu: Use sysfs_emit() for cpumask show callback Yury Norov
2026-07-02 15:55 ` sashiko-bot
2026-07-02 15:47 ` [PATCH v2 05/11] devfreq: Use sysfs_emit() for cpumask show callbacks Yury Norov
2026-07-02 15:55 ` sashiko-bot
2026-07-02 15:47 ` [PATCH v2 06/11] fpga: dfl-fme-perf: Use sysfs_emit() for cpumask show Yury Norov
2026-07-02 15:53 ` sashiko-bot
2026-07-02 15:47 ` [PATCH v2 07/11] hwtracing: hisi_ptt: " Yury Norov
2026-07-02 15:52 ` sashiko-bot
2026-07-02 15:47 ` [PATCH v2 08/11] RDMA/hfi1: Use sysfs_emit() for cpumask show helper Yury Norov
2026-07-02 15:55 ` sashiko-bot
2026-07-02 15:47 ` [PATCH v2 09/11] PCI/sysfs: Use sysfs_emit() for cpumask show callbacks Yury Norov
2026-07-02 15:55 ` sashiko-bot
2026-07-02 15:47 ` [PATCH v2 10/11] perf: " Yury Norov
2026-07-02 15:56 ` sashiko-bot
2026-07-02 16:21 ` Robin Murphy
2026-07-02 15:47 ` [PATCH v2 11/11] lib/bitmap-str: get rid of cpumap_print_to_pagebuf() Yury Norov
2026-07-02 15:58 ` 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=20260702155830.EE5FC1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Frank.Li@kernel.org \
--cc=imx@lists.linux.dev \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-cxl@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=ynorov@nvidia.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