[PATCH 2/2] tools/lib/lockdep: add empty declaration for early_param
From: alexander . levin
Date: Thu Dec 07 2017 - 11:13:34 EST
Fixes a compilation error:
CC lockdep.o
In file included from lockdep.c:28:0:
../../../kernel/locking/lockdep.c:89:13: error: expected declaration specifiers or â...â before string constant
early_param("crossrelease_fullstack", allow_crossrelease_fullstack);
^~~~~~~~~~~~~~~~~~~~~~~~
../../../kernel/locking/lockdep.c:89:39: error: expected declaration specifiers or â...â before âallow_crossrelease_fullstackâ
early_param("crossrelease_fullstack", allow_crossrelease_fullstack);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Sasha Levin <alexander.levin@xxxxxxxxxxx>
---
tools/include/linux/kernel.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/include/linux/kernel.h b/tools/include/linux/kernel.h
index 0ad884452c5c..2bd8c1fc4a03 100644
--- a/tools/include/linux/kernel.h
+++ b/tools/include/linux/kernel.h
@@ -117,4 +117,6 @@ int scnprintf(char * buf, size_t size, const char * fmt, ...);
#define current_gfp_context(k) 0
#define synchronize_sched()
+#define early_param(str, fn)
+
#endif
--
2.11.0