Skip to content

mm: constify static mm_walk_ops

Rikard Falkeborn linux-mm lkml 1 version Applied

Status from this message: [merged] mm-damon-vaddr-constify-static-mm_walk_ops.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm/damon/vaddr: constify static mm_walk_opsmm/damon/vaddr.c+2 -22 repliesApplied
2/2mm/memory_failure: constify static mm_walk_opsmm/memory-failure.c+1 -12 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchSeongJae ParkNaoya HoriguchiAnshuman Khandual
1/2R-b R-b
2/2A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/2] mm: constify static mm_walk_ops

Constify a few instances of static struct mm_walk_ops that are never modified. The only usage of them is to pass their address to walk_page_range() which has a pointer to const struct mm_walk_ops as argument. Making them const allows the compiler to put them in read-only memory.

Rikard Falkeborn (2):
mm/damon/vaddr: constify static mm_walk_ops
mm/memory_failure: constify static mm_walk_ops

 mm/damon/vaddr.c    | 4 ++--
 mm/memory-failure.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.33.0