LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] locking/lockdep: Cleanup the repeated declaration
@ 2021-08-25  7:07 Shaokun Zhang
  2021-09-17 13:17 ` [tip: locking/core] " tip-bot2 for Shaokun Zhang
  0 siblings, 1 reply; 2+ messages in thread
From: Shaokun Zhang @ 2021-08-25  7:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: Shaokun Zhang, Peter Zijlstra, Ingo Molnar

'struct task_struct' has been decleared twice, so keep the top one and
cleanup the repeated one.

Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
---
 include/linux/debug_locks.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/linux/debug_locks.h b/include/linux/debug_locks.h
index 3f49e65169c6..dbb409d77d4f 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);
-- 
2.7.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [tip: locking/core] locking/lockdep: Cleanup the repeated declaration
  2021-08-25  7:07 [PATCH] locking/lockdep: Cleanup the repeated declaration Shaokun Zhang
@ 2021-09-17 13:17 ` tip-bot2 for Shaokun Zhang
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Shaokun Zhang @ 2021-09-17 13:17 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Shaokun Zhang, Peter Zijlstra (Intel), x86, linux-kernel

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     f7427ba5ce9c5438ad392b6cbcc4ca8a0487d7e7
Gitweb:        https://git.kernel.org/tip/f7427ba5ce9c5438ad392b6cbcc4ca8a0487d7e7
Author:        Shaokun Zhang <zhangshaokun@hisilicon.com>
AuthorDate:    Wed, 25 Aug 2021 15:07:04 +08:00
Committer:     Peter Zijlstra <peterz@infradead.org>
CommitterDate: Fri, 17 Sep 2021 15:08:45 +02:00

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 <zhangshaokun@hisilicon.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/1629875224-32751-1-git-send-email-zhangshaokun@hisilicon.com
---
 include/linux/debug_locks.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/linux/debug_locks.h b/include/linux/debug_locks.h
index 3f49e65..dbb409d 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);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-17 13:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-25  7:07 [PATCH] locking/lockdep: Cleanup the repeated declaration Shaokun Zhang
2021-09-17 13:17 ` [tip: locking/core] " tip-bot2 for Shaokun Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).