[PATCH -next] riscv/mm/fault: fix old-style-declaration warning
Pekka Enberg
penberg at gmail.com
Wed Sep 9 08:00:42 EDT 2020
Hi,
On Wed, Sep 9, 2020 at 2:20 PM Wei Yongjun <weiyongjun1 at huawei.com> wrote:
>
> gcc report build warning as follows:
>
> arch/riscv/mm/fault.c:81:1: warning:
> 'inline' is not at beginning of declaration [-Wold-style-declaration]
> 81 | static void inline vmalloc_fault(struct pt_regs *regs, int code, unsigned long addr)
> | ^~~~~~
>
> This commit fix it by moving 'inline' after 'static'.
>
> Signed-off-by: Wei Yongjun <weiyongjun1 at huawei.com>
Thanks for the fix, but Palmer committed similar fix from me to for-next:
https://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git/commit/?h=for-next&id=6f36a9635082e1d6910bc7853d0c9fd12d7890b5
- Pekka
More information about the linux-riscv
mailing list