diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-07-06 14:51:00 -0400 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-07-10 21:17:30 -0400 |
commit | 1dd685c414a7b9fdb3d23aca3aedae84f0b998ae (patch) | |
tree | 003e35b090929bffa859bc459cefbf9c6b15cde9 /tools/include | |
parent | 32346491ddf24599decca06190ebca03ff9de7f8 (diff) |
XArray: Add calls to might_alloc()
Catch bogus GFP flags deterministically, instead of occasionally
when we actually have to allocate memory.
Reported-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'tools/include')
-rw-r--r-- | tools/include/linux/sched/mm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/include/linux/sched/mm.h b/tools/include/linux/sched/mm.h index c8d9f19c1f35..967294b8edcf 100644 --- a/tools/include/linux/sched/mm.h +++ b/tools/include/linux/sched/mm.h @@ -1,4 +1,6 @@ #ifndef _TOOLS_PERF_LINUX_SCHED_MM_H #define _TOOLS_PERF_LINUX_SCHED_MM_H +#define might_alloc(gfp) do { } while (0) + #endif /* _TOOLS_PERF_LINUX_SCHED_MM_H */ |