Skip to content

Commit

Permalink
LoongArch: BPI: Declare acpi_arch_init with a void prototype
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Avenger-285714 committed Nov 27, 2024
1 parent ad1b9eb commit dc90b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/loongarch/kernel/legacy_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ static __initconst const struct {
},
};

void __init acpi_arch_init (){
void __init acpi_arch_init (void){
if (bpi_version == BPI_VERSION_NONE) {
return;
}
Expand Down

0 comments on commit dc90b09

Please sign in to comment.