linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] mm: constify static mm_walk_ops
@ 2021-10-14  7:50 Rikard Falkeborn
  2021-10-14  7:50 ` [PATCH 1/2] mm/damon/vaddr: " Rikard Falkeborn
  2021-10-14  7:50 ` [PATCH 2/2] mm/memory_failure: " Rikard Falkeborn
  0 siblings, 2 replies; 7+ messages in thread
From: Rikard Falkeborn @ 2021-10-14  7:50 UTC (permalink / raw)
  To: SeongJae Park, Andrew Morton, Naoya Horiguchi
  Cc: linux-mm, linux-kernel, Rikard Falkeborn

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(-)

-- 
2.33.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-10-18  6:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-14  7:50 [PATCH 0/2] mm: constify static mm_walk_ops Rikard Falkeborn
2021-10-14  7:50 ` [PATCH 1/2] mm/damon/vaddr: " Rikard Falkeborn
2021-10-14 10:29   ` SeongJae Park
2021-10-18  6:49   ` Anshuman Khandual
2021-10-14  7:50 ` [PATCH 2/2] mm/memory_failure: " Rikard Falkeborn
2021-10-15  0:47   ` Naoya Horiguchi
2021-10-18  6:52   ` Anshuman Khandual

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).