Skip to content

Commit cf929a2

Browse files
surenbaghdasaryanakpm00
authored andcommitted
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/[email protected] Fixes: e3a7ae85f87c ("mm/debug: prefer VM_WARN_ON_VMG() to report VMG debug warnings") Signed-off-by: Suren Baghdasaryan <[email protected]> Reviewed-by: Lorenzo Stoakes <[email protected]> Cc: Liam R. Howlett <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 56dff92 commit cf929a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/vma/vma_internal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ extern unsigned long dac_mmap_min_addr;
3838

3939
#define VM_WARN_ON(_expr) (WARN_ON(_expr))
4040
#define VM_WARN_ON_ONCE(_expr) (WARN_ON_ONCE(_expr))
41+
#define VM_WARN_ON_VMG(_expr, _vmg) (WARN_ON(_expr))
4142
#define VM_BUG_ON(_expr) (BUG_ON(_expr))
4243
#define VM_BUG_ON_VMA(_expr, _vma) (BUG_ON(_expr))
4344

0 commit comments

Comments
 (0)