aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-08-03 10:02:28 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2022-08-03 10:02:28 -0700
commite087437a6fef3acc11aaa1ade84731fe1571b808 (patch)
treed6d50bcd88eba1d1200617b348feca9a5af5d677 /tools
parentMerge tag 'cgroup-for-5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup (diff)
parentIDR: Note that the IDR API is deprecated (diff)
downloadwireguard-linux-e087437a6fef3acc11aaa1ade84731fe1571b808.tar.xz
wireguard-linux-e087437a6fef3acc11aaa1ade84731fe1571b808.zip
Merge tag 'xarray-6.0' of git://git.infradead.org/users/willy/xarray
Pull XArray/IDR updates from Matthew Wilcox: - Add appropriate might_alloc() annotations to the XArray APIs - Document that the IDR is deprecated * tag 'xarray-6.0' of git://git.infradead.org/users/willy/xarray: IDR: Note that the IDR API is deprecated XArray: Add calls to might_alloc()
Diffstat (limited to 'tools')
-rw-r--r--tools/include/linux/sched/mm.h2
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 */