Re: [PATCH 5.15.110 v2] RISC-V: Fix up a cherry-pick warning in setup_vm_final()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 09, 2023 at 02:51:41PM +0200, Alexandre Ghiti wrote:
> This triggers a -Wdeclaration-after-statement as the code has changed a
> bit since upstream.  It might be better to hoist the whole block up, but
> this is a smaller change so I went with it.
> 
> arch/riscv/mm/init.c:755:16: warning: mixing declarations and code is a C99 extension [-Wdeclaration-after-statement]
>              unsigned long idx = pgd_index(__fix_to_virt(FIX_FDT));
>                            ^
>      1 warning generated.
> 
> Fixes: bbf94b042155 ("riscv: Move early dtb mapping into the fixmap region")
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Link: https://lore.kernel.org/oe-kbuild-all/202304300429.SXZOA5up-lkp@xxxxxxxxx/
> Signed-off-by: Palmer Dabbelt <palmer@xxxxxxxxxxxx>
> Signed-off-by: Alexandre Ghiti <alexghiti@xxxxxxxxxxxx>
> ---
> 
> v2:
> - Fix rv64 warning introduced by the v1
> - Add Fixes tag

Now queued up, thanks.

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux