Skip to contentSkip to conversation

include: linux: debug_locks: Remove duplicate declaration

PATCH Superseded Wan Jiabing 2 participants 2 messages Mar 25, 2021

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 include: linux: debug_locks: Remove duplicate declaration

struct task_struct has been declared.
Remove the duplicate.

---
Changelog:
v2:
- Remove another duplicate declaration for being closer to its user.

---
 include/linux/debug_locks.h | 2 --
 1 file changed, 2 deletions(-)
include/linux/debug_locks.h +0 -2
index 2915f56ad421..32f6a37a3d3f 100644
@@ -6,8 +6,6 @@
 #include <linux/bug.h>
 #include <linux/printk.h>
 
-struct task_struct;
-
 extern int debug_locks __read_mostly;
 extern int debug_locks_silent __read_mostly;
 
Signature · 1 line
2.25.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 1 line · Wan Jiabing

struct task_struct has been declared.

"...declared twice."

In the subject line the "include: linux: " part is not needed.

FWIW, after addressing above,

Quoted 28 lines

Remove the duplicate.

---
Changelog:
v2:
- Remove another duplicate declaration for being closer to its user.

---
 include/linux/debug_locks.h | 2 --
 1 file changed, 2 deletions(-)
include/linux/debug_locks.h +0 -2
index 2915f56ad421..32f6a37a3d3f 100644
@@ -6,8 +6,6 @@
 #include <linux/bug.h>
 #include <linux/printk.h>
 
-struct task_struct;
-
 extern int debug_locks __read_mostly;
 extern int debug_locks_silent __read_mostly;
 
Signature · 1 line
2.25.1
Signature · 2 lines
With Best Regards,
Andy Shevchenko