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

Conversation

Avenger-285714
Copy link
Collaborator

No description provided.

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]>
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 Avenger-285714 merged commit 7d1da77 into deepin-community:linux-6.6.y Nov 28, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant