linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] lib/vsprintf: remove redundant header files
@ 2025-08-19 13:13 Liao Yuanhong
  2025-08-19 13:37 ` Miguel Ojeda
  2025-08-19 15:38 ` Markus Elfring
  0 siblings, 2 replies; 6+ messages in thread
From: Liao Yuanhong @ 2025-08-19 13:13 UTC (permalink / raw)
  To: Petr Mladek, Harry Yoo, Kees Cook, Sergio Perez Gonzalez,
	Miguel Ojeda, Stephen Rothwell, Alice Ryhl, Dmitry Torokhov,
	Andrew Morton, open list
  Cc: Liao Yuanhong

The header file <linux/stdarg.h> is already included on line 6. Remove the
redundant include.

Fixes: 0dec7201788b9 ("sprintf.h requires stdarg.h")
Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
---
 include/linux/sprintf.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/linux/sprintf.h b/include/linux/sprintf.h
index 8cb32b777d0b..e57a6d6fbd93 100644
--- a/include/linux/sprintf.h
+++ b/include/linux/sprintf.h
@@ -5,7 +5,6 @@
 #include <linux/compiler_attributes.h>
 #include <linux/stdarg.h>
 #include <linux/types.h>
-#include <linux/stdarg.h>
 
 int num_to_str(char *buf, int size, unsigned long long num, unsigned int width);
 
-- 
2.34.1


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

* Re: [PATCH] lib/vsprintf: remove redundant header files
  2025-08-19 13:13 [PATCH] lib/vsprintf: remove redundant header files Liao Yuanhong
@ 2025-08-19 13:37 ` Miguel Ojeda
  2025-08-19 14:18   ` Liao Yuanhong
  2025-08-20  1:36   ` Stephen Rothwell
  2025-08-19 15:38 ` Markus Elfring
  1 sibling, 2 replies; 6+ messages in thread
From: Miguel Ojeda @ 2025-08-19 13:37 UTC (permalink / raw)
  To: Liao Yuanhong, Stephen Rothwell, Dmitry Torokhov
  Cc: Petr Mladek, Harry Yoo, Kees Cook, Sergio Perez Gonzalez,
	Miguel Ojeda, Alice Ryhl, Andrew Morton, open list

On Tue, Aug 19, 2025 at 3:13 PM Liao Yuanhong <liaoyuanhong@vivo.com> wrote:
>
> The header file <linux/stdarg.h> is already included on line 6. Remove the
> redundant include.
>
> Fixes: 0dec7201788b9 ("sprintf.h requires stdarg.h")

I don't think this fixes that commit -- `stdarg.h` was not there back then.

Instead, this commit

    be06b53d3af0 ("lib/vsprintf: include stdarg.h from sprintf.h to
provide va_list")

also added the line, and I assume Stephen only needs to drop one of
the lines in this merge resolution next time:

    3f413b9a3770 ("Merge branch 'next' of
https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git")

Thanks!

Cheers,
Miguel

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

* Re: [PATCH] lib/vsprintf: remove redundant header files
  2025-08-19 13:37 ` Miguel Ojeda
@ 2025-08-19 14:18   ` Liao Yuanhong
  2025-08-19 14:40     ` Miguel Ojeda
  2025-08-20  1:36   ` Stephen Rothwell
  1 sibling, 1 reply; 6+ messages in thread
From: Liao Yuanhong @ 2025-08-19 14:18 UTC (permalink / raw)
  To: Miguel Ojeda
  Cc: Petr Mladek, Harry Yoo, Kees Cook, Sergio Perez Gonzalez,
	Miguel Ojeda, Alice Ryhl, Andrew Morton, open list,
	Stephen Rothwell, Dmitry Torokhov


On 8/19/2025 9:37 PM, Miguel Ojeda wrote:
> [You don't often get email from miguel.ojeda.sandonis@gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> On Tue, Aug 19, 2025 at 3:13 PM Liao Yuanhong <liaoyuanhong@vivo.com> wrote:
>> The header file <linux/stdarg.h> is already included on line 6. Remove the
>> redundant include.
>>
>> Fixes: 0dec7201788b9 ("sprintf.h requires stdarg.h")
> I don't think this fixes that commit -- `stdarg.h` was not there back then.
>
> Instead, this commit
>
>      be06b53d3af0 ("lib/vsprintf: include stdarg.h from sprintf.h to
> provide va_list")
>
> also added the line, and I assume Stephen only needs to drop one of
> the lines in this merge resolution next time:
>
>      3f413b9a3770 ("Merge branch 'next' of
> https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git")
>
> Thanks!
>
> Cheers,
> Miguel

Thank you for your feedback. Do I need to submit the v2 version without 
fixes?


Regards,

Liao



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

* Re: [PATCH] lib/vsprintf: remove redundant header files
  2025-08-19 14:18   ` Liao Yuanhong
@ 2025-08-19 14:40     ` Miguel Ojeda
  0 siblings, 0 replies; 6+ messages in thread
From: Miguel Ojeda @ 2025-08-19 14:40 UTC (permalink / raw)
  To: Liao Yuanhong
  Cc: Petr Mladek, Harry Yoo, Kees Cook, Sergio Perez Gonzalez,
	Miguel Ojeda, Alice Ryhl, Andrew Morton, open list,
	Stephen Rothwell, Dmitry Torokhov

On Tue, Aug 19, 2025 at 4:18 PM Liao Yuanhong <liaoyuanhong@vivo.com> wrote:
>
> Thank you for your feedback. Do I need to submit the v2 version without
> fixes?

You're welcome!

No, I don't think there is a need for a patch for this, since the
issue was in a test merge, not in any particular branch or patch, as
far as I can see. So I assume Stephen will simply fix at merge
tomorrow.

However, if this slips and lands e.g. in Linus' tree, then yes, a
patch would be needed. Maintainers may mention it to Linus to try to
avoid the same issue again in the "real" merge into mainline.

I hope that helps!

Cheers,
Miguel

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

* Re: [PATCH] lib/vsprintf: remove redundant header files
  2025-08-19 13:13 [PATCH] lib/vsprintf: remove redundant header files Liao Yuanhong
  2025-08-19 13:37 ` Miguel Ojeda
@ 2025-08-19 15:38 ` Markus Elfring
  1 sibling, 0 replies; 6+ messages in thread
From: Markus Elfring @ 2025-08-19 15:38 UTC (permalink / raw)
  To: Liao Yuanhong
  Cc: LKML, kernel-janitors, Alice Ryhl, Andrew Morton, Dmitry Torokhov,
	Harry Yoo, Kees Cook, Miguel Ojeda, Petr Mladek,
	Sergio Perez Gonzalez, Stephen Rothwell

> The header file <linux/stdarg.h> is already included on line 6. Remove the
> redundant include.

You would like to omit a duplicate #include directive, don't you?
Will a corresponding refinement become helpful for the summary phrase?

Regards,
Markus

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

* Re: [PATCH] lib/vsprintf: remove redundant header files
  2025-08-19 13:37 ` Miguel Ojeda
  2025-08-19 14:18   ` Liao Yuanhong
@ 2025-08-20  1:36   ` Stephen Rothwell
  1 sibling, 0 replies; 6+ messages in thread
From: Stephen Rothwell @ 2025-08-20  1:36 UTC (permalink / raw)
  To: Miguel Ojeda
  Cc: Liao Yuanhong, Dmitry Torokhov, Petr Mladek, Harry Yoo, Kees Cook,
	Sergio Perez Gonzalez, Miguel Ojeda, Alice Ryhl, Andrew Morton,
	open list

[-- Attachment #1: Type: text/plain, Size: 869 bytes --]

Hi all,

On Tue, 19 Aug 2025 15:37:20 +0200 Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> wrote:
>
> On Tue, Aug 19, 2025 at 3:13 PM Liao Yuanhong <liaoyuanhong@vivo.com> wrote:
> >
> > The header file <linux/stdarg.h> is already included on line 6. Remove the
> > redundant include.
> >
> > Fixes: 0dec7201788b9 ("sprintf.h requires stdarg.h")  
> 
> I don't think this fixes that commit -- `stdarg.h` was not there back then.
> 
> Instead, this commit
> 
>     be06b53d3af0 ("lib/vsprintf: include stdarg.h from sprintf.h to
> provide va_list")
> 
> also added the line, and I assume Stephen only needs to drop one of
> the lines in this merge resolution next time:
> 
>     3f413b9a3770 ("Merge branch 'next' of
> https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git")

I have done that today.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2025-08-20  1:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-19 13:13 [PATCH] lib/vsprintf: remove redundant header files Liao Yuanhong
2025-08-19 13:37 ` Miguel Ojeda
2025-08-19 14:18   ` Liao Yuanhong
2025-08-19 14:40     ` Miguel Ojeda
2025-08-20  1:36   ` Stephen Rothwell
2025-08-19 15:38 ` Markus Elfring

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).