diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-07-06 21:51:00 +0300 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-07-11 04:17:30 +0300 |
commit | 1dd685c414a7b9fdb3d23aca3aedae84f0b998ae (patch) | |
tree | 003e35b090929bffa859bc459cefbf9c6b15cde9 /tools/include/linux/sched/mm.h | |
parent | 32346491ddf24599decca06190ebca03ff9de7f8 (diff) | |
download | linux-1dd685c414a7b9fdb3d23aca3aedae84f0b998ae.tar.xz |
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/linux/sched/mm.h')
-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 */ |