Re: [PATCH] riscv: Fixup compile error BUILD_BUG_ON failed

2020-06-28 Thread Guo Ren
On Sun, Jun 28, 2020 at 10:52 PM Masami Hiramatsu wrote: > > On Sun, 28 Jun 2020 14:12:07 +0800 > Guo Ren wrote: > > > On Sun, Jun 28, 2020 at 10:59 AM Masami Hiramatsu > > wrote: > > > > > > On Sat, 27 Jun 2020 16:20:02 + > > > guo...@kernel.org wrote: > > > > > > > From: Guo Ren > > > >

Re: [PATCH] riscv: Fixup compile error BUILD_BUG_ON failed

2020-06-28 Thread Masami Hiramatsu
On Sun, 28 Jun 2020 14:12:07 +0800 Guo Ren wrote: > On Sun, Jun 28, 2020 at 10:59 AM Masami Hiramatsu wrote: > > > > On Sat, 27 Jun 2020 16:20:02 + > > guo...@kernel.org wrote: > > > > > From: Guo Ren > > > > > > Unfortunately, the current code couldn't be compiled, because > > >

Re: [PATCH] riscv: Fixup compile error BUILD_BUG_ON failed

2020-06-28 Thread Guo Ren
On Sun, Jun 28, 2020 at 10:59 AM Masami Hiramatsu wrote: > > On Sat, 27 Jun 2020 16:20:02 + > guo...@kernel.org wrote: > > > From: Guo Ren > > > > Unfortunately, the current code couldn't be compiled, because > > BUILD_BUG_ON needs a static defined value, not a dynamic > > variable with a0

Re: [PATCH] riscv: Fixup compile error BUILD_BUG_ON failed

2020-06-27 Thread Masami Hiramatsu
On Sat, 27 Jun 2020 16:20:02 + guo...@kernel.org wrote: > From: Guo Ren > > Unfortunately, the current code couldn't be compiled, because > BUILD_BUG_ON needs a static defined value, not a dynamic > variable with a0 regs. Just use it inline as a solution. > > CC

[PATCH] riscv: Fixup compile error BUILD_BUG_ON failed

2020-06-27 Thread guoren
From: Guo Ren Unfortunately, the current code couldn't be compiled, because BUILD_BUG_ON needs a static defined value, not a dynamic variable with a0 regs. Just use it inline as a solution. CC arch/riscv/kernel/patch.o In file included from ./include/linux/kernel.h:11,