Skip to content

Commit

Permalink
mm: Fix a build breakage in memcontrol-v1.c
Browse files Browse the repository at this point in the history
While adding a deprecation message, fd4fd0a ("mm: Add transformation
message for per-memcg swappiness") missed the semicolon after the new
pr_info_once() statement causing build breakage when CONFIG_MEMCG_V1 is
enabled. Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Michal Koutný <mkoutny@suse.com>
Fixes: fd4fd0a ("mm: Add transformation message for per-memcg swappiness")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202503120710.guZkJx0h-lkp@intel.com/
  • Loading branch information
Tejun Heo committed Mar 11, 2025
1 parent 4a893bd commit b0543d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/memcontrol-v1.c
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,7 @@ static int mem_cgroup_swappiness_write(struct cgroup_subsys_state *css,

if (!mem_cgroup_is_root(memcg)) {
pr_info_once("Per memcg swappiness does not exist in cgroup v2. "
"See memory.reclaim or memory.swap.max there\n ")
"See memory.reclaim or memory.swap.max there\n ");
WRITE_ONCE(memcg->swappiness, val);
} else
WRITE_ONCE(vm_swappiness, val);
Expand Down

0 comments on commit b0543d5

Please sign in to comment.