]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/vaddr: constify static mm_walk_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Fri, 5 Nov 2021 20:47:07 +0000 (13:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Nov 2021 20:30:45 +0000 (13:30 -0700)
commit1a49dc83ef769b0f9ec5710a3e2c7980f07ae6c5
treec1603a96f7f29c8569f5fbfc2a5f83608680ab99
parent4154f92c7ce955d77daba4bab263694d3d2c37e3
mm/damon/vaddr: constify static mm_walk_ops

The only usage of these structs is to pass their addresses to
walk_page_range(), which takes a pointer to const mm_walk_ops as
argument.  Make them const to allow the compiler to put them in
read-only memory.

Link: https://lkml.kernel.org/r/20211014075042.17174-2-rikard.falkeborn@gmail.com
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/damon/vaddr.c