2023-02-01 09:29:53

by Jinyang He

[permalink] [raw]
Subject: [PATCH] LoongArch: Fix Chinese comma

Fix Chinese comma in cpu.h.

Signed-off-by: Jinyang He <[email protected]>
---
arch/loongarch/include/asm/cpu.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/loongarch/include/asm/cpu.h b/arch/loongarch/include/asm/cpu.h
index 754f28506791..c3da91759472 100644
--- a/arch/loongarch/include/asm/cpu.h
+++ b/arch/loongarch/include/asm/cpu.h
@@ -36,7 +36,7 @@

#define PRID_SERIES_LA132 0x8000 /* Loongson 32bit */
#define PRID_SERIES_LA264 0xa000 /* Loongson 64bit, 2-issue */
-#define PRID_SERIES_LA364 0xb000 /* Loongson 64bit,3-issue */
+#define PRID_SERIES_LA364 0xb000 /* Loongson 64bit, 3-issue */
#define PRID_SERIES_LA464 0xc000 /* Loongson 64bit, 4-issue */
#define PRID_SERIES_LA664 0xd000 /* Loongson 64bit, 6-issue */

--
2.34.3



2023-02-01 11:09:20

by Xi Ruoyao

[permalink] [raw]
Subject: Re: [PATCH] LoongArch: Fix Chinese comma

On Wed, 2023-02-01 at 17:29 +0800, Jinyang He wrote:
> Fix Chinese comma in cpu.h.
>
> Signed-off-by: Jinyang He <[email protected]>

This is obvious, while I'm wondering if we have a "-Werror=something"
compiler option which can catch non-ASCII characters immediately.

> ---
>  arch/loongarch/include/asm/cpu.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/loongarch/include/asm/cpu.h
> b/arch/loongarch/include/asm/cpu.h
> index 754f28506791..c3da91759472 100644
> --- a/arch/loongarch/include/asm/cpu.h
> +++ b/arch/loongarch/include/asm/cpu.h
> @@ -36,7 +36,7 @@
>  
>  #define PRID_SERIES_LA132      0x8000  /* Loongson 32bit */
>  #define PRID_SERIES_LA264      0xa000  /* Loongson 64bit, 2-issue */
> -#define PRID_SERIES_LA364      0xb000  /* Loongson 64bit,3-issue */
> +#define PRID_SERIES_LA364      0xb000  /* Loongson 64bit, 3-issue */
>  #define PRID_SERIES_LA464      0xc000  /* Loongson 64bit, 4-issue */
>  #define PRID_SERIES_LA664      0xd000  /* Loongson 64bit, 6-issue */
>  

--
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University

2023-02-02 09:22:48

by Huacai Chen

[permalink] [raw]
Subject: Re: [PATCH] LoongArch: Fix Chinese comma

Queued, thanks.

Huacai

On Wed, Feb 1, 2023 at 7:09 PM Xi Ruoyao <[email protected]> wrote:
>
> On Wed, 2023-02-01 at 17:29 +0800, Jinyang He wrote:
> > Fix Chinese comma in cpu.h.
> >
> > Signed-off-by: Jinyang He <[email protected]>
>
> This is obvious, while I'm wondering if we have a "-Werror=something"
> compiler option which can catch non-ASCII characters immediately.
>
> > ---
> > arch/loongarch/include/asm/cpu.h | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/arch/loongarch/include/asm/cpu.h
> > b/arch/loongarch/include/asm/cpu.h
> > index 754f28506791..c3da91759472 100644
> > --- a/arch/loongarch/include/asm/cpu.h
> > +++ b/arch/loongarch/include/asm/cpu.h
> > @@ -36,7 +36,7 @@
> >
> > #define PRID_SERIES_LA132 0x8000 /* Loongson 32bit */
> > #define PRID_SERIES_LA264 0xa000 /* Loongson 64bit, 2-issue */
> > -#define PRID_SERIES_LA364 0xb000 /* Loongson 64bit,3-issue */
> > +#define PRID_SERIES_LA364 0xb000 /* Loongson 64bit, 3-issue */
> > #define PRID_SERIES_LA464 0xc000 /* Loongson 64bit, 4-issue */
> > #define PRID_SERIES_LA664 0xd000 /* Loongson 64bit, 6-issue */
> >
>
> --
> Xi Ruoyao <[email protected]>
> School of Aerospace Science and Technology, Xidian University