From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [182.253.183.184]) by gnuweeb.org (Postfix) with ESMTPSA id 95EA27E2BE; Fri, 23 Dec 2022 14:24:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1671805491; bh=oWmzG5ovwki5HhFnqDbqYkTDAdh4eDUJl7OeVnUrGBs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e8mFEf26Gx1RBt4uZi7mowHRQxlD8plFc+63Y7K8VG1D0+145z3LEXfvZ9c11us/m pCzvfidENFn5qmD+4SA3QDoXtmAqA2PaEiaHR/zF3E3Om0N6hNca44Quh7tMUBpSpl 1E2gt1BzwL0zAo3YLuAQF0wFgZ+Dw/m2mnolWnwE/qv7L4LnLGszr1vQMcEAHxvMIM 0ZvpcQXzESrBi6GEiJkPoCun5DpxlTxa9PEaugFsNCUMZ4wt7YrauZlXVcO2LHBD7W Ue6OlKQlGQamHoX2QIGGdyfyAMtZSUIZTyhx9pY1wNOyHhd4Ay4HGsagdPYn941bjI bYKuPUbpa1gUw== From: Ammar Faizi To: Robert Moore , "Rafael J. Wysocki" Cc: Ammar Faizi , Len Brown , Nick Desaulniers , Tom Rix , Nathan Chancellor , Linux ACPI Mailing List , Linux Kernel Mailing List , ACPICA Mailing List , LLVM Mailing List , GNU/Weeb Mailing List Subject: [PATCH v1 1/2] ACPI: Silence missing prototype warnings Date: Fri, 23 Dec 2022 21:24:18 +0700 Message-Id: <20221223142419.3781410-2-ammar.faizi@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221223142419.3781410-1-ammar.faizi@intel.com> References: <20221223142419.3781410-1-ammar.faizi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: From: Ammar Faizi Compiling with clang-16: drivers/acpi/acpi_lpit.c:142:6: error: no previous prototype \ for function 'acpi_init_lpit' [-Werror,-Wmissing-prototypes] drivers/acpi/ioapic.c:212:6: error: no previous prototype \ for function 'pci_ioapic_remove' [-Werror,-Wmissing-prototypes] drivers/acpi/ioapic.c:229:5: error: no previous prototype \ for function 'acpi_ioapic_remove' [-Werror,-Wmissing-prototypes] Include "internal.h" to silence them. Cc: LLVM Mailing List Signed-off-by: Ammar Faizi --- drivers/acpi/acpi_lpit.c | 1 + drivers/acpi/ioapic.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/acpi/acpi_lpit.c b/drivers/acpi/acpi_lpit.c index 50540d4d4948..3843d2576d3f 100644 --- a/drivers/acpi/acpi_lpit.c +++ b/drivers/acpi/acpi_lpit.c @@ -10,6 +10,7 @@ #include #include #include +#include "internal.h" struct lpit_residency_info { struct acpi_generic_address gaddr; diff --git a/drivers/acpi/ioapic.c b/drivers/acpi/ioapic.c index a690c7b18623..6677955b4a8e 100644 --- a/drivers/acpi/ioapic.c +++ b/drivers/acpi/ioapic.c @@ -24,6 +24,7 @@ #include #include #include +#include "internal.h" struct acpi_pci_ioapic { acpi_handle root_handle; -- Ammar Faizi