linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/1] x86/early_printk: Fix comment for "pciserial" case
@ 2025-04-07 17:26 Andy Shevchenko
  2025-04-08 21:26 ` Denis Mukhin
  2025-04-09 10:28 ` Ingo Molnar
  0 siblings, 2 replies; 4+ messages in thread
From: Andy Shevchenko @ 2025-04-07 17:26 UTC (permalink / raw)
  To: Andy Shevchenko, linux-kernel
  Cc: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, x86,
	H. Peter Anvin

The comment seem contains the copy'n'paste error when mentioning "serial"
instead of "pciserial" (with double quotes). Fix this. With that, move
it upper, so we don't calculate buf twice.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 arch/x86/kernel/early_printk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/early_printk.c b/arch/x86/kernel/early_printk.c
index dc053641698c..4a9ba7cb7e5a 100644
--- a/arch/x86/kernel/early_printk.c
+++ b/arch/x86/kernel/early_printk.c
@@ -442,9 +442,9 @@ static int __init setup_early_printk(char *buf)
 		}
 #ifdef CONFIG_PCI
 		if (!strncmp(buf, "pciserial", 9)) {
-			early_pci_serial_init(buf + 9);
+			buf += 9; /* Keep from match the above "pciserial" */
+			early_pci_serial_init(buf);
 			early_console_register(&early_serial_console, keep);
-			buf += 9; /* Keep from match the above "serial" */
 		}
 #endif
 		if (!strncmp(buf, "vga", 3) &&
-- 
2.47.2


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

* Re: [PATCH v1 1/1] x86/early_printk: Fix comment for "pciserial" case
  2025-04-07 17:26 [PATCH v1 1/1] x86/early_printk: Fix comment for "pciserial" case Andy Shevchenko
@ 2025-04-08 21:26 ` Denis Mukhin
  2025-04-09 10:28 ` Ingo Molnar
  1 sibling, 0 replies; 4+ messages in thread
From: Denis Mukhin @ 2025-04-08 21:26 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: linux-kernel, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	Dave Hansen, x86, H. Peter Anvin, Denis Mukhin

On Monday, April 7th, 2025 at 10:26 AM, Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:

> 
> 
> The comment seem contains the copy'n'paste error when mentioning "serial"
> instead of "pciserial" (with double quotes). Fix this. With that, move
> it upper, so we don't calculate buf twice.
> 
> Signed-off-by: Andy Shevchenko andriy.shevchenko@linux.intel.com

The change looks good to me, just in case:

Reviewed-by: Denis Mukhin <dmukhin@ford.com>

> 
> ---
> arch/x86/kernel/early_printk.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/x86/kernel/early_printk.c b/arch/x86/kernel/early_printk.c
> index dc053641698c..4a9ba7cb7e5a 100644
> --- a/arch/x86/kernel/early_printk.c
> +++ b/arch/x86/kernel/early_printk.c
> @@ -442,9 +442,9 @@ static int __init setup_early_printk(char buf)
> }
> #ifdef CONFIG_PCI
> if (!strncmp(buf, "pciserial", 9)) {
> - early_pci_serial_init(buf + 9);
> + buf += 9; / Keep from match the above "pciserial" /
> + early_pci_serial_init(buf);
> early_console_register(&early_serial_console, keep);
> - buf += 9; / Keep from match the above "serial" */
> }
> #endif
> if (!strncmp(buf, "vga", 3) &&
> --
> 2.47.2

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

* Re: [PATCH v1 1/1] x86/early_printk: Fix comment for "pciserial" case
  2025-04-07 17:26 [PATCH v1 1/1] x86/early_printk: Fix comment for "pciserial" case Andy Shevchenko
  2025-04-08 21:26 ` Denis Mukhin
@ 2025-04-09 10:28 ` Ingo Molnar
  2025-04-09 11:07   ` Andy Shevchenko
  1 sibling, 1 reply; 4+ messages in thread
From: Ingo Molnar @ 2025-04-09 10:28 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: linux-kernel, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	Dave Hansen, x86, H. Peter Anvin


* Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:

> The comment seem contains the copy'n'paste error when mentioning "serial"
> instead of "pciserial" (with double quotes). Fix this. With that, move
> it upper, so we don't calculate buf twice.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  arch/x86/kernel/early_printk.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/x86/kernel/early_printk.c b/arch/x86/kernel/early_printk.c
> index dc053641698c..4a9ba7cb7e5a 100644
> --- a/arch/x86/kernel/early_printk.c
> +++ b/arch/x86/kernel/early_printk.c
> @@ -442,9 +442,9 @@ static int __init setup_early_printk(char *buf)
>  		}
>  #ifdef CONFIG_PCI
>  		if (!strncmp(buf, "pciserial", 9)) {
> -			early_pci_serial_init(buf + 9);
> +			buf += 9; /* Keep from match the above "pciserial" */
> +			early_pci_serial_init(buf);
>  			early_console_register(&early_serial_console, keep);
> -			buf += 9; /* Keep from match the above "serial" */

Note that I merged this into the other fix, in part because the title 
isn't accurate anymore, this patch isn't purely fixing the comment.

Thanks,

	Ingo

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

* Re: [PATCH v1 1/1] x86/early_printk: Fix comment for "pciserial" case
  2025-04-09 10:28 ` Ingo Molnar
@ 2025-04-09 11:07   ` Andy Shevchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2025-04-09 11:07 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: linux-kernel, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	Dave Hansen, x86, H. Peter Anvin

On Wed, Apr 09, 2025 at 12:28:35PM +0200, Ingo Molnar wrote:
> * Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
> 
> Note that I merged this into the other fix, in part because the title 
> isn't accurate anymore, this patch isn't purely fixing the comment.

Thank you for prompt act on this!

-- 
With Best Regards,
Andy Shevchenko



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

end of thread, other threads:[~2025-04-09 11:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-07 17:26 [PATCH v1 1/1] x86/early_printk: Fix comment for "pciserial" case Andy Shevchenko
2025-04-08 21:26 ` Denis Mukhin
2025-04-09 10:28 ` Ingo Molnar
2025-04-09 11:07   ` Andy Shevchenko

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