[PATCH 17/21] tools: liblockdep: include err.h

From: Levin, Alexander (Sasha Levin)
Date: Thu May 25 2017 - 09:03:27 EST


This provides PTR_ERR() now used by lockdep.

Signed-off-by: Sasha Levin <alexander.levin@xxxxxxxxxxx>
---
tools/lib/lockdep/uinclude/linux/kernel.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/tools/lib/lockdep/uinclude/linux/kernel.h b/tools/lib/lockdep/uinclude/linux/kernel.h
index faa98cc7971a..75ff4b1bbcac 100644
--- a/tools/lib/lockdep/uinclude/linux/kernel.h
+++ b/tools/lib/lockdep/uinclude/linux/kernel.h
@@ -6,6 +6,7 @@
#include <linux/rcu.h>
#include <linux/hardirq.h>
#include <linux/kern_levels.h>
+#include <linux/err.h>

#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))

--
2.11.0