[PATCH v4 13/14] tools/lib/lockdep: explicitly declare lockdep_init_task()

From: Sasha Levin
Date: Tue Aug 04 2020 - 20:11:05 EST


Avoid a warning as we can't pull the decleration for lockdep's header.

Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
---
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