Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Loongson] [Deepin Kernel SIG] Fix compile errors with clang-19 #502

Merged

Commits on Nov 28, 2024

  1. LoongArch: KVM: Fix unknown register name 'v0' in asm

    According to KVM documention for LoongArch, 'v0' should be 'a0'.
    And 'a0' has been there upstream.
    
    Fix follow compile errors with clang-19:
    
    In file included from ./include/uapi/linux/kvm_para.h:41:
    ./arch/loongarch/include/asm/kvm_para.h:44:24: error: unknown register name 'v0' in asm
       44 |         register long ret asm("v0");
          |                               ^
    ./arch/loongarch/include/asm/kvm_para.h:59:24: error: unknown register name 'v0' in asm
       59 |         register long ret asm("v0");
          |                               ^
    ./arch/loongarch/include/asm/kvm_para.h:76:24: error: unknown register name 'v0' in asm
       76 |         register long ret asm("v0");
          |                               ^
    ./arch/loongarch/include/asm/kvm_para.h:94:24: error: unknown register name 'v0' in asm
       94 |         register long ret asm("v0");
          |                               ^
    ./arch/loongarch/include/asm/kvm_para.h:114:24: error: unknown register name 'v0' in asm
      114 |         register long ret asm("v0");
          |                               ^
    ./arch/loongarch/include/asm/kvm_para.h:135:24: error: unknown register name 'v0' in asm
      135 |         register long ret asm("v0");
          |                               ^
    6 errors generated.
    
    Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e33bda7ee50c3c20d80f5ca6dc5ca2cd37863518
    Signed-off-by: Mingcong Bai <[email protected]>
    Signed-off-by: WangYuli <[email protected]>
    Avenger-285714 committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    a3e87c9 View commit details
    Browse the repository at this point in the history
  2. LoongArch: BPI: Declare acpi_arch_init with a void prototype

    Fix follow error with clang-19:
    
    arch/loongarch/kernel/legacy_boot.c:687:28: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
      687 | void __init acpi_arch_init (){
          |                            ^
          |                             void
    1 error generated.
    
    Signed-off-by: WangYuli <[email protected]>
    Avenger-285714 committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    1ed728e View commit details
    Browse the repository at this point in the history