Skip to contentSkip to conversation

list: test: remove unused struct 'klist_test_struct'

PATCH In review [email protected] 4 participants 5 messages May 31, 2024 – Jun 1, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 list: test: remove unused struct 'klist_test_struct'

From: "Dr. David Alan Gilbert" <[email protected]>

'klist_test_struct' has been unused since the original commit 57b4f760f94d ("list: test: Test the klist structure").

Remove it.

---
 lib/list-test.c | 6 ------
 1 file changed, 6 deletions(-)
lib/list-test.c +0 -6
index 0cc27de9cec8..383ee0ad582e 100644
@@ -1201,12 +1201,6 @@ static struct kunit_suite hlist_test_module = {
 };
 
 
-struct klist_test_struct {
-	int data;
-	struct klist klist;
-	struct klist_node klist_node;
-};
-
 static int node_count;
 static struct klist_node *last_node;
 
Signature · 1 line
2.45.1
#1 lore raw
Quoted 4 lines · On 5/31/24 8:18 PM, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'klist_test_struct' has been unused since the original commit 57b4f760f94d ("list: test: Test the klist structure").

Probably a fixes by tag would be needed here.

Quoted 25 lines

Remove it.

---
 lib/list-test.c | 6 ------
 1 file changed, 6 deletions(-)
lib/list-test.c +0 -6
index 0cc27de9cec8..383ee0ad582e 100644
@@ -1201,12 +1201,6 @@ static struct kunit_suite hlist_test_module = {
 };
 
 
-struct klist_test_struct {
-	int data;
-	struct klist klist;
-	struct klist_node klist_node;
-};
-
 static int node_count;
 static struct klist_node *last_node;
 
Signature · 2 lines
BR,
Muhammad Usama Anjum
#2 lore raw
Quoted 6 lines · * Muhammad Usama Anjum ([email protected]) wrote:
Quoted 4 lines · On 5/31/24 8:18 PM, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'klist_test_struct' has been unused since the original commit 57b4f760f94d ("list: test: Test the klist structure").

Probably a fixes by tag would be needed here.

I'm generally avoiding fixes tags in this set of changes, since
a) They have no behavioural change at all.
b) Downstream and stable kernel people use fixes tags to indicate stuff they should pick up if they have the original, and there's no need for them to do that with this cleanup.

Dave

Quoted 29 lines
Quoted 25 lines

Remove it.

---
 lib/list-test.c | 6 ------
 1 file changed, 6 deletions(-)
lib/list-test.c +0 -6
index 0cc27de9cec8..383ee0ad582e 100644
@@ -1201,12 +1201,6 @@ static struct kunit_suite hlist_test_module = {
 };
 
 
-struct klist_test_struct {
-	int data;
-	struct klist klist;
-	struct klist_node klist_node;
-};
-
 static int node_count;
 static struct klist_node *last_node;
 
Signature · 2 lines
BR,
Muhammad Usama Anjum
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
maintainer
#3 lore raw
Quoted 8 lines · Dr. David Alan Gilbert
Quoted 6 lines · * Muhammad Usama Anjum ([email protected]) wrote:
Quoted 4 lines · On 5/31/24 8:18 PM, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'klist_test_struct' has been unused since the original commit 57b4f760f94d ("list: test: Test the klist structure").

Probably a fixes by tag would be needed here.

Quoted 7 lines

I'm generally avoiding fixes tags in this set of changes, since
a) They have no behavioural change at all.
b) Downstream and stable kernel people use fixes tags to indicate stuff they should pick up if they have the original, and there's no need for them to do that with this cleanup.

Dave

+1 on using careful use of Fixes tag only on real fixes for the reasons mentioned above.

thanks,
-- Shuah

Reviewed-by on v1 1/1
#4 lore raw
In reply to [email protected]
Quoted 10 lines · On Fri, 31 May 2024 at 23:18, <[email protected]> wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'klist_test_struct' has been unused since the original commit 57b4f760f94d ("list: test: Test the klist structure").

Remove it.

---

Nice catch, thanks! That's what I get for copy-patste, I guess! :-)

(I agree that this is better without the Fixes tag, too.)

Cheers,
-- David

Quoted 23 lines
 lib/list-test.c | 6 ------
 1 file changed, 6 deletions(-)
lib/list-test.c +0 -7
index 0cc27de9cec8..383ee0ad582e 100644
@@ -1201,12 +1201,6 @@ static struct kunit_suite hlist_test_module = {
 };
 
 
-struct klist_test_struct {
-       int data;
-       struct klist klist;
-       struct klist_node klist_node;
-};
-
 static int node_count;
 static struct klist_node *last_node;
 
--

2.45.1