]> www.infradead.org Git - users/willy/pagecache.git/commit
tools: add VM_WARN_ON_VMG definition
authorSuren Baghdasaryan <surenb@google.com>
Thu, 16 Jan 2025 18:15:38 +0000 (10:15 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 26 Jan 2025 04:22:46 +0000 (20:22 -0800)
commitcf929a2863bff58608ab30a88b8c7a5fc93ff437
tree39fdb987b2a2f13031e68e5641e015035a343c3a
parent56dff92932591638b249911fd4529a1e47480a04
tools: add VM_WARN_ON_VMG definition

vma tests compilation yields the following error:

vma.c:732:9: error: implicit declaration of function ‘VM_WARN_ON_VMG’

Fix it by adding missing VM_WARN_ON_VMG() definition.

Link: https://lkml.kernel.org/r/20250116181538.759469-1-surenb@google.com
Fixes: e3a7ae85f87c ("mm/debug: prefer VM_WARN_ON_VMG() to report VMG debug warnings")
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Liam R. Howlett <Liam.Howlett@Oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/vma/vma_internal.h