Skip to contentSkip to conversation

riscv: fix typo in init.c

PATCH Superseded Vitaly Wool 3 participants 3 messages May 30, 2021 – Jun 8, 2021 RISC-V

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: fix typo in init.c

Commit 010623568222 introduced a typo in "__initdata" spelling which led to build breakage for XIP. Fix that.

Fixes 010623568222bd144eb73aa9f3b46c79b63d7676
---
 arch/riscv/mm/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/mm/init.c +1 -1
index ae32f78207f0..e7b136abf90c 100644
@@ -451,7 +451,7 @@ static uintptr_t load_sz __initdata;
 #endif
 
 #ifdef CONFIG_XIP_KERNEL
-static uintptr_t xiprom __inidata;
+static uintptr_t xiprom __initdata;
 static uintptr_t xiprom_sz __initdata;
 #define xiprom_sz      (*((uintptr_t *)XIP_FIXUP(&xiprom_sz)))
 #define xiprom         (*((uintptr_t *)XIP_FIXUP(&xiprom)))
Signature · 7 lines
2.29.2


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · On Sun, 30 May 2021 16:22:17 +0300 Vitaly Wool <[email protected]> wrote:

Commit 010623568222 introduced a typo in "__initdata" spelling which led to build breakage for XIP. Fix that.

oops, nice catch! Sorry for that.

Quoted 2 lines
Fixes 010623568222bd144eb73aa9f3b46c79b63d7676

This "Fixes" tag seems not correct.Should be

Fixes 010623568222 ("riscv: mm: init: Consolidate vars, functions")

After this change,

Quoted 10 lines
---
 arch/riscv/mm/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/mm/init.c +0 -0
index ae32f78207f0..e7b136abf90c 100644

arch/riscv/mm/init.c static uintptr_t load_sz __initdata; · line 457

Quoted 8 lines
arch/riscv/mm/init.c +1 -1
@@ -451,7 +451,7 @@ static uintptr_t load_sz __initdata;
 #endif
 
 #ifdef CONFIG_XIP_KERNEL
-static uintptr_t xiprom __inidata;
+static uintptr_t xiprom __initdata;
 static uintptr_t xiprom_sz __initdata;
 #define xiprom_sz      (*((uintptr_t *)XIP_FIXUP(&xiprom_sz)))
 #define xiprom         (*((uintptr_t *)XIP_FIXUP(&xiprom)))

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

#2 lore raw
Quoted 8 lines · On Mon, 31 May 2021 08:11:40 +0800 Jisheng Zhang <[email protected]>…
Quoted 2 lines · On Sun, 30 May 2021 16:22:17 +0300 Vitaly Wool <[email protected]> wrote:

Commit 010623568222 introduced a typo in "__initdata" spelling which led to build breakage for XIP. Fix that.

Quoted 7 lines

oops, nice catch! Sorry for that.

Quoted 2 lines
Fixes 010623568222bd144eb73aa9f3b46c79b63d7676

This "Fixes" tag seems not correct.Should be

Fixes 010623568222 ("riscv: mm: init: Consolidate vars, functions")

Hi Vitaly,

Could you plz send a v2 for this?

Regards

Quoted 16 lines

After this change,

Quoted 12 lines
---
 arch/riscv/mm/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/mm/init.c +0 -0
index ae32f78207f0..e7b136abf90c 100644
@@ -451,7 +451,7 @@ static uintptr_t load_sz __initdata;
 #endif
 
Quoted 13 lines

arch/riscv/mm/init.c static uintptr_t load_sz __initdata; · line 457

Quoted 6 lines
arch/riscv/mm/init.c +1 -1
 #ifdef CONFIG_XIP_KERNEL
-static uintptr_t xiprom __inidata;
+static uintptr_t xiprom __initdata;
 static uintptr_t xiprom_sz __initdata;
 #define xiprom_sz      (*((uintptr_t *)XIP_FIXUP(&xiprom_sz)))
 #define xiprom         (*((uintptr_t *)XIP_FIXUP(&xiprom)))  

_______________________________________________
linux-riscv mailing list
[email protected]

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv