]> git.hungrycats.org Git - linux/commit
mm/vmscan: pass NULL to trace vmscan node reclaim
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 16 Jun 2026 09:59:06 +0000 (10:59 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 21 Jun 2026 18:37:38 +0000 (11:37 -0700)
commit44238b122ae834ac52748e59809a139a2cb8409b
tree35fb28d75afcba5ad222fc30994a453e56b3fbf7
parentc565c009d0c00aa1a2e813aef11cfc685f148d1a
mm/vmscan: pass NULL to trace vmscan node reclaim

The tracepoint for node relcaims takes a `struct mem_cgroup *`
as the third argument, so pass NULL instead of 0 to fix warning
about using an integer as a pointer.

Fixes the following warnings:

mm/vmscan.c:6753:66: warning: Using plain integer as NULL pointer
mm/vmscan.c:6757:58: warning: Using plain integer as NULL pointer
mm/vmscan.c:7818:60: warning: Using plain integer as NULL pointer

Link: https://lore.kernel.org/20260616095906.210016-1-ben.dooks@codethink.co.uk
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c