[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171207161057.7406-3-alexander.levin@verizon.com>
Date: Thu, 7 Dec 2017 16:11:03 +0000
From: alexander.levin@...izon.com
To: "mingo@...nel.org" <mingo@...nel.org>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [PATCH 2/2] tools/lib/lockdep: add empty declaration for early_param
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@...izon.com>
---
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
Powered by blists - more mailing lists