summaryrefslogtreecommitdiffstats
path: root/tools/include
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/include
parentb6bb70f9ab80a11161252bf217993d2c40ea5eb2 (diff)
parent85656ec193e9ca9c11f7c75dc733c071755b189e (diff)
downloadlinux-e087437a6fef3acc11aaa1ade84731fe1571b808.tar.gz
linux-e087437a6fef3acc11aaa1ade84731fe1571b808.tar.bz2
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/include')
-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 */