mm/damon/sysfs-schemes: make damos_sysfs_action_names static
Subsystems (2)
SeongJae Park
maintainerPATCH 1/1 mm/damon/sysfs-schemes: make damos_sysfs_action_names static
Commit 6812c66db976 ("mm/damon/sysfs-schemes: decouple from damos_action") in mm-unstable is defining damos_sysfs_action_names as non-static, though it is being used only inside sysfs-schemes.c file. Make it static.
--- mm/damon/sysfs-schemes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/damon/sysfs-schemes.c +1 -1
@@ -1679,7 +1679,7 @@ struct damos_sysfs_action_name {char *name; }; -struct damos_sysfs_action_name damos_sysfs_action_names[] = { +static struct damos_sysfs_action_name damos_sysfs_action_names[] = { { .action =DAMOS_WILLNEED , .name ="willneed" ,
base-commit: 5de4c740b52ae67feaa1d08690e37e813b2281d5
Signature · 1 line
2.39.5
SeongJae Park
maintainerQuoted 10 lines · On Fri, 27 Jun 2025 09:28:06 -0700 SeongJae Park <[email protected]> wrote:
Commit
6812c66db976("mm/damon/sysfs-schemes: decouple fromdamos_action") in mm-unstable is definingdamos_sysfs_action_namesas non-static, though it is being used only insidesysfs-schemes.cfile. Make it static.Fixes 6812c66db976 ("mm/damon/sysfs-schemes: decouple from damos_action") # mm-unstableReported-by kernel test robot <[email protected]>Signed-off-by SeongJae Park <[email protected]>
I forgot noting this patch to the report, and Andrew thankfully made and merged a fix[1] that is same to this one. So this patch may be just ignored in favor of the already merged same fix. Noting it here just for a case of future readers.
[1] https://lore.kernel.org/[email protected]
Thanks,
SJ
[...]