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: 94921 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp681677vqo; Tue, 16 May 2023 13:25:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6iswu7YO+T8JH4lQtVfMBadwrun2F3tml67/P/J56TrKQfKsA8QX4uRZH5uv76stFXQw5D X-Received: by 2002:a17:903:338e:b0:1a6:6fe3:df8d with SMTP id kb14-20020a170903338e00b001a66fe3df8dmr31709551plb.8.1684268735598; Tue, 16 May 2023 13:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684268735; cv=none; d=google.com; s=arc-20160816; b=FOOWdDBDqWe56AMmouHnSy/CMX6lHMsI5cu46SyfBKOzvOxW+WcbW2jAoLcHqpKWfy SzcdVcm51oU6is8CXGZn3lDP3HBb1fRPgn7HWVvmLQgRteNxJwhRj7Lojpn9JdwPUiAd bDirJtkVCL3kbiIhYu6xKQ6O3euqi1it1MH4Y4bfAcMVZMYHLReIkZCWBEaz+e3dSOZx ywhgU9R41Ox50AU8h89BQ5TnHBCXkFXFCMF7qxVbGqMrza/l5UpvkvimUfX3aFjF/gCw QIoOrU7e+ijV6/7RziyQXqEhPjqztWkpz98x1Q8lwJZb7H+B646Cqc34+dM/zNObfOnP UrOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=rW6m6y6qtmrDeJODZue++AXvDT74+2KND4ZVhMs4EQE=; b=DjdXKbnlH9ScgLzJmI3iIIZ4T+AB7m3HsZYJC8f6nAfwvpWjXaZCKStB0m70Z5D2Sa RSDWD+IJrrJ6CBZjpXEUOkqJdgUU1laciDb1eU3cBWUaeR8lSDZ0LjLs5VCwK2RYTpKg PBK4edu/Q3ELgVPdXM9b2BlahU3K63g68gTojrQiBORTMM1mwATFkP+n1JceFrrPa0u0 Ev2sNDTENrnK1pRSEn+gPm3NB1LcR2ksUNB/ZUaX5V0yiuGn3Eb6hkEMM+RlvBxwfBxo nrhLUsmTNKPV1XjRTc5Y6t5tDT2ZIpldadTc595S7iQXj/LAr5ZG56yhvLGJOlByT3XO Pg1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aiuPGr37; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l8-20020a170903244800b001a1b0a828a8si20395583pls.621.2023.05.16.13.25.19; Tue, 16 May 2023 13:25:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aiuPGr37; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230363AbjEPURA (ORCPT + 99 others); Tue, 16 May 2023 16:17:00 -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 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766083773849805686?= X-GMAIL-MSGID: =?utf-8?q?1766083773849805686?= 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;