]> git.dujemihanovic.xyz Git - linux.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)
commit199b50f4c9485c46c2403d8b3e0eca90ec401ed6
treec1603a96f7f29c8569f5fbfc2a5f83608680ab99
parentc638072107f52ec35f292c97b6f3df9b9f2ed87d
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