summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2021-11-05 21:47:07 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2021-11-06 21:30:45 +0100
commit199b50f4c9485c46c2403d8b3e0eca90ec401ed6 (patch)
treec1603a96f7f29c8569f5fbfc2a5f83608680ab99 /samples
parentDocs/DAMON: document physical memory monitoring support (diff)
downloadlinux-199b50f4c9485c46c2403d8b3e0eca90ec401ed6.tar.xz
linux-199b50f4c9485c46c2403d8b3e0eca90ec401ed6.zip
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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions