summaryrefslogtreecommitdiffstats
path: root/drivers/most
diff options
context:
space:
mode:
authorDawei Li <dawei.li@shingroup.cn>2024-04-24 04:55:48 +0200
committerAndreas Larsson <andreas@gaisler.com>2024-05-08 19:42:16 +0200
commit1c9e709cde80fb612e07d9503ad04457e8a58da2 (patch)
tree2994d58a772b0d2d346273d7bf9f3505c3f6cb21 /drivers/most
parentsparc/pci_msi: Remove on-stack cpumask var (diff)
downloadlinux-1c9e709cde80fb612e07d9503ad04457e8a58da2.tar.xz
linux-1c9e709cde80fb612e07d9503ad04457e8a58da2.zip
sparc/leon: Remove on-stack cpumask var
In general it's preferable to avoid placing cpumasks on the stack, as for large values of NR_CPUS these can consume significant amounts of stack space and make stack overflows more likely. Use cpumask_subset() and cpumask_first_and() to avoid the need for a temporary cpumask on the stack. Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Dawei Li <dawei.li@shingroup.cn> Reviewed-by: Andreas Larsson <andreas@gaisler.com> Tested-by: Andreas Larsson <andreas@gaisler.com> Link: https://lore.kernel.org/r/20240424025548.3765250-6-dawei.li@shingroup.cn Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions