From: Shaokun Zhang Date: Wed, 25 Aug 2021 07:07:04 +0000 (+0800) Subject: locking/lockdep: Cleanup the repeated declaration X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f7427ba5ce9c5438ad392b6cbcc4ca8a0487d7e7;p=linux.git locking/lockdep: Cleanup the repeated declaration 'struct task_struct' has been decleared twice, so keep the top one and cleanup the repeated one. Signed-off-by: Shaokun Zhang Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/1629875224-32751-1-git-send-email-zhangshaokun@hisilicon.com --- diff --git a/include/linux/debug_locks.h b/include/linux/debug_locks.h index 3f49e65169c6d..dbb409d77d4f2 100644 --- a/include/linux/debug_locks.h +++ b/include/linux/debug_locks.h @@ -47,8 +47,6 @@ extern int debug_locks_off(void); # define locking_selftest() do { } while (0) #endif -struct task_struct; - #ifdef CONFIG_LOCKDEP extern void debug_show_all_locks(void); extern void debug_show_held_locks(struct task_struct *task);