Message ID | 20220919094426.860040-1-zengheng4@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [-next] riscv: errata: fix ‘riscv_cbom_block_size’ variable undeclared | expand |
On 19 September 2022 10:44:25 IST, Zeng Heng <zengheng4@huawei.com> wrote: >arch/riscv/errata/thead/errata.c: In function ‘errata_probe_cmo’: >arch/riscv/errata/thead/errata.c:40:2: error: ‘riscv_cbom_block_size’ undeclared (first use in this function); did you mean ‘riscv_init_cbom_blocksize’? > 40 | riscv_cbom_block_size = L1_CACHE_BYTES; > | ^~~~~~~~~~~~~~~~~~~~~ > | riscv_init_cbom_blocksize > >'riscv_cbom_block_size' variable should be declared >without the limitation whether CONFIG_RISCV_ISA_ZICBOM >is enabled or not. > >Signed-off-by: Zeng Heng <zengheng4@huawei.com> This should already be fixed in next, no? https://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git/commit/?h=fixes >--- > arch/riscv/include/asm/cacheflush.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/arch/riscv/include/asm/cacheflush.h b/arch/riscv/include/asm/cacheflush.h >index a89c005b4bbf..7ec600a71634 100644 >--- a/arch/riscv/include/asm/cacheflush.h >+++ b/arch/riscv/include/asm/cacheflush.h >@@ -42,8 +42,8 @@ void flush_icache_mm(struct mm_struct *mm, bool local); > > #endif /* CONFIG_SMP */ > >-#ifdef CONFIG_RISCV_ISA_ZICBOM > extern unsigned int riscv_cbom_block_size; >+#ifdef CONFIG_RISCV_ISA_ZICBOM > void riscv_init_cbom_blocksize(void); > #else > static inline void riscv_init_cbom_blocksize(void) { } >-- >2.25.1 > > >_______________________________________________ >linux-riscv mailing list >linux-riscv@lists.infradead.org >http://lists.infradead.org/mailman/listinfo/linux-riscv
Oops, got it. I would take a look in riscv/linux.git when the patch concerns about riscv arch afterwards. So just pass the patch. 在 2022/9/19 17:45, Conor Dooley 写道: > > On 19 September 2022 10:44:25 IST, Zeng Heng <zengheng4@huawei.com> wrote: >> arch/riscv/errata/thead/errata.c: In function ‘errata_probe_cmo’: >> arch/riscv/errata/thead/errata.c:40:2: error: ‘riscv_cbom_block_size’ undeclared (first use in this function); did you mean ‘riscv_init_cbom_blocksize’? >> 40 | riscv_cbom_block_size = L1_CACHE_BYTES; >> | ^~~~~~~~~~~~~~~~~~~~~ >> | riscv_init_cbom_blocksize >> >> 'riscv_cbom_block_size' variable should be declared >> without the limitation whether CONFIG_RISCV_ISA_ZICBOM >> is enabled or not. >> >> Signed-off-by: Zeng Heng <zengheng4@huawei.com> > This should already be fixed in next, no? > > https://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git/commit/?h=fixes > >> --- >> arch/riscv/include/asm/cacheflush.h | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/riscv/include/asm/cacheflush.h b/arch/riscv/include/asm/cacheflush.h >> index a89c005b4bbf..7ec600a71634 100644 >> --- a/arch/riscv/include/asm/cacheflush.h >> +++ b/arch/riscv/include/asm/cacheflush.h >> @@ -42,8 +42,8 @@ void flush_icache_mm(struct mm_struct *mm, bool local); >> >> #endif /* CONFIG_SMP */ >> >> -#ifdef CONFIG_RISCV_ISA_ZICBOM >> extern unsigned int riscv_cbom_block_size; >> +#ifdef CONFIG_RISCV_ISA_ZICBOM >> void riscv_init_cbom_blocksize(void); >> #else >> static inline void riscv_init_cbom_blocksize(void) { } >> -- >> 2.25.1 >> >> >> _______________________________________________ >> linux-riscv mailing list >> linux-riscv@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-riscv
On Mon, 19 Sep 2022 02:44:25 PDT (-0700), zengheng4@huawei.com wrote: > arch/riscv/errata/thead/errata.c: In function ‘errata_probe_cmo’: > arch/riscv/errata/thead/errata.c:40:2: error: ‘riscv_cbom_block_size’ undeclared (first use in this function); did you mean ‘riscv_init_cbom_blocksize’? > 40 | riscv_cbom_block_size = L1_CACHE_BYTES; > | ^~~~~~~~~~~~~~~~~~~~~ > | riscv_init_cbom_blocksize > > 'riscv_cbom_block_size' variable should be declared > without the limitation whether CONFIG_RISCV_ISA_ZICBOM > is enabled or not. Thanks, but another version of this is already on fixes. > > Signed-off-by: Zeng Heng <zengheng4@huawei.com> > --- > arch/riscv/include/asm/cacheflush.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/riscv/include/asm/cacheflush.h b/arch/riscv/include/asm/cacheflush.h > index a89c005b4bbf..7ec600a71634 100644 > --- a/arch/riscv/include/asm/cacheflush.h > +++ b/arch/riscv/include/asm/cacheflush.h > @@ -42,8 +42,8 @@ void flush_icache_mm(struct mm_struct *mm, bool local); > > #endif /* CONFIG_SMP */ > > -#ifdef CONFIG_RISCV_ISA_ZICBOM > extern unsigned int riscv_cbom_block_size; > +#ifdef CONFIG_RISCV_ISA_ZICBOM > void riscv_init_cbom_blocksize(void); > #else > static inline void riscv_init_cbom_blocksize(void) { }
diff --git a/arch/riscv/include/asm/cacheflush.h b/arch/riscv/include/asm/cacheflush.h index a89c005b4bbf..7ec600a71634 100644 --- a/arch/riscv/include/asm/cacheflush.h +++ b/arch/riscv/include/asm/cacheflush.h @@ -42,8 +42,8 @@ void flush_icache_mm(struct mm_struct *mm, bool local); #endif /* CONFIG_SMP */ -#ifdef CONFIG_RISCV_ISA_ZICBOM extern unsigned int riscv_cbom_block_size; +#ifdef CONFIG_RISCV_ISA_ZICBOM void riscv_init_cbom_blocksize(void); #else static inline void riscv_init_cbom_blocksize(void) { }
arch/riscv/errata/thead/errata.c: In function ‘errata_probe_cmo’: arch/riscv/errata/thead/errata.c:40:2: error: ‘riscv_cbom_block_size’ undeclared (first use in this function); did you mean ‘riscv_init_cbom_blocksize’? 40 | riscv_cbom_block_size = L1_CACHE_BYTES; | ^~~~~~~~~~~~~~~~~~~~~ | riscv_init_cbom_blocksize 'riscv_cbom_block_size' variable should be declared without the limitation whether CONFIG_RISCV_ISA_ZICBOM is enabled or not. Signed-off-by: Zeng Heng <zengheng4@huawei.com> --- arch/riscv/include/asm/cacheflush.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)