From patchwork Tue May 16 20:16:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 682755 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 054B6C7EE24 for ; Tue, 16 May 2023 20:17:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229869AbjEPUQ7 (ORCPT ); Tue, 16 May 2023 16:16:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbjEPUQ5 (ORCPT ); Tue, 16 May 2023 16:16:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9862A1FD2; Tue, 16 May 2023 13:16:49 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 3536063D91; Tue, 16 May 2023 20:16:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53D28C433D2; Tue, 16 May 2023 20:16:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684268208; bh=nwuUIGOWUcyru2cJZhxAASyVX+0szuVB4QpiMMyDwy0=; h=From:To:Cc:Subject:Date:From; b=aiuPGr37GHn7v7lQutPMbULOj5wIlEdPI/UZl8dkl0MxZKN8/08dyvpp1h4IZMHID s14pxVMJgYPDaOFhRuy/VVsvFCAGQcyaKKvOXgL8RyMLwksksgt3sM7aZX6I8Cuoj+ 4qqk7bwh2CzoptzhNEfaRegvK6dz/ZF/b32Tq2xDQ9xkFQPND7AQNpXLWP9Jj2DD9k 8g/E0rac5i+HQZcbpDaZTWxyqcPD0zHO/9llCY9+D37Aoj5QHFsGfJU3wwILvkZrEp 9pQVqdqTSWB7+cB+V8nGukbfGSZH6rCs8wLAnVwysMQBA2EkRJXw/JBrSG9yGApKjU wRc2+mcNf0rYw== From: Arnd Bergmann To: Linus Walleij , Bartosz Golaszewski Cc: Arnd Bergmann , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] gpio: sa1100: include Date: Tue, 16 May 2023 22:16:37 +0200 Message-Id: <20230516201642.557733-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Arnd Bergmann sa1100_init_gpio() is declared in a machine specific header so it can be called from platform code, but the definition is in the device driver, which causes a warning: drivers/gpio/gpio-sa1100.c:310:13: error: no previous prototype for 'sa1100_init_gpio' [-Werror=missing-prototypes] It's already possible to include mach/generic.h from drivers, so add this one here as well. Signed-off-by: Arnd Bergmann --- drivers/gpio/gpio-sa1100.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-sa1100.c b/drivers/gpio/gpio-sa1100.c index 342a59ea489a..3b1cc8462fcb 100644 --- a/drivers/gpio/gpio-sa1100.c +++ b/drivers/gpio/gpio-sa1100.c @@ -13,6 +13,7 @@ #include #include #include +#include struct sa1100_gpio_chip { struct gpio_chip chip;