Messages in this thread Patch in this message | | | From | Sasha Levin <> | Subject | [PATCH v3 13/14] tools/lib/lockdep: explicitly declare lockdep_init_task() | Date | Mon, 22 Jun 2020 18:42:57 -0400 |
| |
Avoid a warning as we can't pull the decleration for lockdep's header.
Signed-off-by: Sasha Levin <sashal@kernel.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
| |