From dc90b09c0702de7f10e4418e202d0257b5de41c3 Mon Sep 17 00:00:00 2001 From: WangYuli Date: Wed, 27 Nov 2024 18:21:33 +0800 Subject: [PATCH] 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 --- arch/loongarch/kernel/legacy_boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/loongarch/kernel/legacy_boot.c b/arch/loongarch/kernel/legacy_boot.c index 204b33109f37..3701bff3884f 100644 --- a/arch/loongarch/kernel/legacy_boot.c +++ b/arch/loongarch/kernel/legacy_boot.c @@ -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; }