[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200805001043.3331907-14-sashal@kernel.org>
Date: Tue, 4 Aug 2020 20:10:42 -0400
From: Sasha Levin <sashal@...nel.org>
To: torvalds@...ux-foundation.org
Cc: mingo@...nel.org, peterz@...radead.org,
linux-kernel@...r.kernel.org, Sasha Levin <sashal@...nel.org>
Subject: [PATCH v4 13/14] tools/lib/lockdep: explicitly declare lockdep_init_task()
Avoid a warning as we can't pull the decleration for lockdep's header.
Signed-off-by: Sasha Levin <sashal@...nel.org>
---
tools/lib/lockdep/preload.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/lib/lockdep/preload.c b/tools/lib/lockdep/preload.c
index 5bd58c51066c4..2928c712f87f8 100644
--- a/tools/lib/lockdep/preload.c
+++ b/tools/lib/lockdep/preload.c
@@ -92,6 +92,8 @@ static int (*ll_pthread_rwlock_trywrlock)(pthread_rwlock_t *rwlock) = __pthread_
static int (*ll_pthread_rwlock_wrlock)(pthread_rwlock_t *rwlock) = __pthread_rwlock_wrlock;
static int (*ll_pthread_rwlock_unlock)(pthread_rwlock_t *rwlock) = __pthread_rwlock_unlock;
+extern void lockdep_init_task(struct task_struct *task);
+
enum { none, prepare, done, } __init_state;
static void init_preload(void);
static void try_init_preload(void)
--
2.25.1
Powered by blists - more mailing lists