diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-11-30 17:13:16 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-11-30 20:14:42 +0300 |
commit | d6e6a27d960f9f07aef0b979c49c6736ede28f75 (patch) | |
tree | 06c3d62e8c750cfd72e3d2a44637acc027b39b0a /tools/testing/radix-tree | |
parent | ddca5b0eba4ef69338cbc210d3fb3332499128f9 (diff) | |
download | linux-d6e6a27d960f9f07aef0b979c49c6736ede28f75.tar.xz |
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 'tools/testing/radix-tree')
-rw-r--r-- | tools/testing/radix-tree/linux/lockdep.h | 3 |
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; }; |