[PATCH] list: test: remove unused struct 'klist_test_struct'

0 views
Skip to first unread message

li...@treblig.org

unread,
May 31, 2024, 11:18:06 AMMay 31
to davi...@google.com, linux-k...@vger.kernel.org, kuni...@googlegroups.com, linux-...@vger.kernel.org, Dr. David Alan Gilbert
From: "Dr. David Alan Gilbert" <li...@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 <li...@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

Muhammad Usama Anjum

unread,
May 31, 2024, 2:20:38 PMMay 31
to li...@treblig.org, davi...@google.com, Muhammad Usama Anjum, linux-k...@vger.kernel.org, kuni...@googlegroups.com, linux-...@vger.kernel.org
On 5/31/24 8:18 PM, li...@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <li...@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 <li...@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

Dr. David Alan Gilbert

unread,
May 31, 2024, 2:58:50 PMMay 31
to Muhammad Usama Anjum, davi...@google.com, linux-k...@vger.kernel.org, kuni...@googlegroups.com, linux-...@vger.kernel.org
* Muhammad Usama Anjum (usama...@collabora.com) wrote:
> On 5/31/24 8:18 PM, li...@treblig.org wrote:
> > From: "Dr. David Alan Gilbert" <li...@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 <li...@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 |_______/

Shuah Khan

unread,
May 31, 2024, 3:13:29 PMMay 31
to Dr. David Alan Gilbert, Muhammad Usama Anjum, davi...@google.com, linux-k...@vger.kernel.org, kuni...@googlegroups.com, linux-...@vger.kernel.org, Shuah Khan
On 5/31/24 12:58, Dr. David Alan Gilbert wrote:
> * Muhammad Usama Anjum (usama...@collabora.com) wrote:
>> On 5/31/24 8:18 PM, li...@treblig.org wrote:
>>> From: "Dr. David Alan Gilbert" <li...@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

David Gow

unread,
May 31, 2024, 10:07:58 PMMay 31
to li...@treblig.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, linux-...@vger.kernel.org
On Fri, 31 May 2024 at 23:18, <li...@treblig.org> wrote:
>
> From: "Dr. David Alan Gilbert" <li...@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 <li...@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 <davi...@google.com>

Cheers,
-- David
Reply all
Reply to author
Forward
0 new messages