summaryrefslogtreecommitdiffstats
path: root/mm/page_io.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2021-02-24 21:03:05 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2021-02-24 22:38:29 +0100
commite48333b660d57898ad6240570084ffa734f64368 (patch)
tree4891a1ae962f526e0b4bad2edfe488a1b982220b /mm/page_io.c
parentmm/page_io: use pr_alert_ratelimited for swap read/write errors (diff)
downloadlinux-e48333b660d57898ad6240570084ffa734f64368.tar.xz
linux-e48333b660d57898ad6240570084ffa734f64368.zip
mm/swap_state: constify static struct attribute_group
The only usage of swap_attr_group is to pass its address to sysfs_create_group() which takes a pointer to const attribute_group. Make it const to allow the compiler to put it in read-only memory. Link: https://lkml.kernel.org/r/20210201233254.91809-1-rikard.falkeborn@gmail.com Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Reviewed-by: Amy Parker <enbyamy@gmail.com> Acked-by: "Huang, Ying" <ying.huang@intel.com> Reviewed-by: Miaohe Lin <linmiaohe@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_io.c')
0 files changed, 0 insertions, 0 deletions