* [PATCH] list: test: remove unused struct 'klist_test_struct'
@ 2024-05-31 15:18 linux
2024-05-31 18:19 ` Muhammad Usama Anjum
2024-06-01 2:07 ` David Gow
0 siblings, 2 replies; 5+ messages in thread
From: linux @ 2024-05-31 15:18 UTC (permalink / raw)
To: davidgow; +Cc: linux-kselftest, kunit-dev, linux-kernel, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <linux@treblig.org>
'klist_test_struct' has been unused since the original
commit 57b4f760f94d ("list: test: Test the klist structure").
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
lib/list-test.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/lib/list-test.c b/lib/list-test.c
index 0cc27de9cec8..383ee0ad582e 100644
--- a/lib/list-test.c
+++ b/lib/list-test.c
@@ -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
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] list: test: remove unused struct 'klist_test_struct'
2024-05-31 15:18 [PATCH] list: test: remove unused struct 'klist_test_struct' linux
@ 2024-05-31 18:19 ` Muhammad Usama Anjum
2024-05-31 18:58 ` Dr. David Alan Gilbert
2024-06-01 2:07 ` David Gow
1 sibling, 1 reply; 5+ messages in thread
From: Muhammad Usama Anjum @ 2024-05-31 18:19 UTC (permalink / raw)
To: linux, davidgow
Cc: Muhammad Usama Anjum, linux-kselftest, kunit-dev, linux-kernel
On 5/31/24 8:18 PM, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> '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.
>
> Remove it.
>
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> ---
> lib/list-test.c | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/lib/list-test.c b/lib/list-test.c
> index 0cc27de9cec8..383ee0ad582e 100644
> --- a/lib/list-test.c
> +++ b/lib/list-test.c
> @@ -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;
>
--
BR,
Muhammad Usama Anjum
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] list: test: remove unused struct 'klist_test_struct'
2024-05-31 18:19 ` Muhammad Usama Anjum
@ 2024-05-31 18:58 ` Dr. David Alan Gilbert
2024-05-31 19:13 ` Shuah Khan
0 siblings, 1 reply; 5+ messages in thread
From: Dr. David Alan Gilbert @ 2024-05-31 18:58 UTC (permalink / raw)
To: Muhammad Usama Anjum; +Cc: davidgow, linux-kselftest, kunit-dev, linux-kernel
* Muhammad Usama Anjum (usama.anjum@collabora.com) wrote:
> On 5/31/24 8:18 PM, linux@treblig.org wrote:
> > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> >
> > '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
> >
> > Remove it.
> >
> > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> > ---
> > lib/list-test.c | 6 ------
> > 1 file changed, 6 deletions(-)
> >
> > diff --git a/lib/list-test.c b/lib/list-test.c
> > index 0cc27de9cec8..383ee0ad582e 100644
> > --- a/lib/list-test.c
> > +++ b/lib/list-test.c
> > @@ -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;
> >
>
> --
> BR,
> Muhammad Usama Anjum
--
-----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 |_______/
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] list: test: remove unused struct 'klist_test_struct'
2024-05-31 18:58 ` Dr. David Alan Gilbert
@ 2024-05-31 19:13 ` Shuah Khan
0 siblings, 0 replies; 5+ messages in thread
From: Shuah Khan @ 2024-05-31 19:13 UTC (permalink / raw)
To: Dr. David Alan Gilbert, Muhammad Usama Anjum
Cc: davidgow, linux-kselftest, kunit-dev, linux-kernel, Shuah Khan
On 5/31/24 12:58, Dr. David Alan Gilbert wrote:
> * Muhammad Usama Anjum (usama.anjum@collabora.com) wrote:
>> On 5/31/24 8:18 PM, linux@treblig.org wrote:
>>> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>>>
>>> '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
+1 on using careful use of Fixes tag only on real fixes for the
reasons mentioned above.
thanks,
-- Shuah
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] list: test: remove unused struct 'klist_test_struct'
2024-05-31 15:18 [PATCH] list: test: remove unused struct 'klist_test_struct' linux
2024-05-31 18:19 ` Muhammad Usama Anjum
@ 2024-06-01 2:07 ` David Gow
1 sibling, 0 replies; 5+ messages in thread
From: David Gow @ 2024-06-01 2:07 UTC (permalink / raw)
To: linux; +Cc: linux-kselftest, kunit-dev, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1013 bytes --]
On Fri, 31 May 2024 at 23:18, <linux@treblig.org> wrote:
>
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
>
> 'klist_test_struct' has been unused since the original
> commit 57b4f760f94d ("list: test: Test the klist structure").
>
> Remove it.
>
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> ---
Nice catch, thanks! That's what I get for copy-patste, I guess! :-)
(I agree that this is better without the Fixes tag, too.)
Reviewed-by: David Gow <davidgow@google.com>
Cheers,
-- David
> lib/list-test.c | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/lib/list-test.c b/lib/list-test.c
> index 0cc27de9cec8..383ee0ad582e 100644
> --- a/lib/list-test.c
> +++ b/lib/list-test.c
> @@ -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
>
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4014 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-06-01 2:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-31 15:18 [PATCH] list: test: remove unused struct 'klist_test_struct' linux
2024-05-31 18:19 ` Muhammad Usama Anjum
2024-05-31 18:58 ` Dr. David Alan Gilbert
2024-05-31 19:13 ` Shuah Khan
2024-06-01 2:07 ` David Gow
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox