From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA2DFC433EF for ; Tue, 7 Jun 2022 21:33:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379776AbiFGVdK (ORCPT ); Tue, 7 Jun 2022 17:33:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380955AbiFGVb3 (ORCPT ); Tue, 7 Jun 2022 17:31:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C42C22C47B; Tue, 7 Jun 2022 12:03:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 441B6B8220B; Tue, 7 Jun 2022 19:03:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84085C385A2; Tue, 7 Jun 2022 19:03:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628620; bh=zvkWQXaxftvOIUbrHG5XsPOlAGPZGXkzs+x/ENuSNts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=be3jRuZuvF8dvYYaB3yifgK560hvfV4wgQjxkiYEQF1ZPEfELljvYCriyPj4CcVBB RzNmMEr9KOZh3rpGBOMdmA5dS4s/GWir4MEyge8bFMxoZiqYAyc3DHixkg3B6010HT uot4Nn9nvYi2FGJ6zuttr+YSzDqtCXRIYeQP7YaU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Ilkka Koskinen , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 5.18 395/879] ACPI: AGDI: Fix missing prototype warning for acpi_agdi_init() Date: Tue, 7 Jun 2022 18:58:33 +0200 Message-Id: <20220607165014.329272037@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Ilkka Koskinen [ Upstream commit 988d7a14408db4183202f16bb02b8149b9da3727 ] When building with W=1, we get the following warning: drivers/acpi/arm64/agdi.c:88:13: warning: no previous prototype for ‘acpi_agdi_init’ [-Wmissing-prototypes] void __init acpi_agdi_init(void) Include AGDI driver's header file to pull in the prototype definition for acpi_agdi_init() to get rid of the compiler warning Fixes: a2a591fb76e6 ("ACPI: AGDI: Add driver for Arm Generic Diagnostic Dump and Reset device") Reported-by: kernel test robot Signed-off-by: Ilkka Koskinen Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/arm64/agdi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/arm64/agdi.c b/drivers/acpi/arm64/agdi.c index 4df337d545b7..cf31abd0ed1b 100644 --- a/drivers/acpi/arm64/agdi.c +++ b/drivers/acpi/arm64/agdi.c @@ -9,6 +9,7 @@ #define pr_fmt(fmt) "ACPI: AGDI: " fmt #include +#include #include #include #include -- 2.35.1