aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/linux/lockdep.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2021-11-30 14:13:16 +0000
committerLinus Torvalds <torvalds@linux-foundation.org>2021-11-30 09:14:42 -0800
commitd6e6a27d960f9f07aef0b979c49c6736ede28f75 (patch)
tree06c3d62e8c750cfd72e3d2a44637acc027b39b0a /tools/testing/radix-tree/linux/lockdep.h
parentnetfs: Adjust docs after foliation (diff)
downloadlinux-dev-d6e6a27d960f9f07aef0b979c49c6736ede28f75.tar.xz
linux-dev-d6e6a27d960f9f07aef0b979c49c6736ede28f75.zip
tools: Fix math.h breakage
Commit 98e1385ef24b ("include/linux/radix-tree.h: replace kernel.h with the necessary inclusions") broke the radix tree test suite in two different ways; first by including math.h which didn't exist in the tools directory, and second by removing an implicit include of spinlock.h before lockdep.h. Fix both issues. Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--tools/testing/radix-tree/linux/lockdep.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/radix-tree/linux/lockdep.h b/tools/testing/radix-tree/linux/lockdep.h
index 565fccdfe6e9..016cff473cfc 100644
--- a/tools/testing/radix-tree/linux/lockdep.h
+++ b/tools/testing/radix-tree/linux/lockdep.h
@@ -1,5 +1,8 @@
#ifndef _LINUX_LOCKDEP_H
#define _LINUX_LOCKDEP_H
+
+#include <linux/spinlock.h>
+
struct lock_class_key {
unsigned int a;
};