Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1915045rwd; Wed, 17 May 2023 03:14:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4toYThk64XEJy6iRoCSj66r5Sthd+JJUAgpbfEyU2tuZQXr/4qMPNBRIxIA+0w6jbrdCxY X-Received: by 2002:a05:6a20:2452:b0:103:558c:516 with SMTP id t18-20020a056a20245200b00103558c0516mr30026408pzc.55.1684318493021; Wed, 17 May 2023 03:14:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684318493; cv=none; d=google.com; s=arc-20160816; b=uSF3JzkzolX9SyM9WnAZbbwT/3kl9gsKiPHN+AgoJe2/OVu70qLAe7nHw5VsgswBVw yoSKXxvu41UaG3GU78JUK14LL5AGSux5mOtQ+Rm4l3zLY+lGMtMe/v426WQoT18uJzrd TyIIdaTAMFNLnygqLGT7CBRFs7tEY2aO5iUqatm27zFSaOINfBRMTRj4ywITwgxZpS77 XvXLG2uzJ/5syGUGEMn51smHi5HAIVFFZvz1NvYiWwvF71B1c/0MVOzm0HfpevdWSd1z M+8eL2nMPMjKDXhns5KEuDTQ2GUqlMjr+gXdTaAJGKUSjEaaJUAr13CitiViB46nANso NOTQ== 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=OJ/Q5RCyVio/JwsIyT5uB/8rGrohc2aBzch8GLwCQu0=; b=BeTuTixI7hzr66bpyKlF3THkyJWuW9X9PdOUh83ynyF9XgPMOWKk9xMLHe1EfVTQ2p Mg9NeDFbm2usfaBogYaQ4QZeNcouin02GaF8eaHpFKXfOUOUkN9qmnC1/CsZ/sjZU9Pl N5+TWAWB3OtwCeTEZaRF0o/5/6e6Eo9Uj3r6zKvanPL4OylgIKPo3Qw6UEZPUXDf0Tae L9wwyQDP131DmyEXhjYHSSzCHenihxuNXjj78HwOgROLOL8reKvYt0zECdHrVRLUgU6E GzzxxzzmKcUo9++T4X1K3qw7FcFaKfoDX9WjyAClesRX7ih15RRPKLX9dzFq9vVqJHwh FCOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="oFreSjh/"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bs184-20020a6328c1000000b0052c3f0ae398si19842531pgb.158.2023.05.17.03.14.38; Wed, 17 May 2023 03:14:52 -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="oFreSjh/"; 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 S229916AbjEQJxV (ORCPT + 99 others); Wed, 17 May 2023 05:53:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229936AbjEQJxT (ORCPT ); Wed, 17 May 2023 05:53:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B653420B; Wed, 17 May 2023 02:53:18 -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 AD5316397C; Wed, 17 May 2023 09:53:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB02DC433EF; Wed, 17 May 2023 09:53:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684317197; bh=1O71rnHUAVYOpai5MwI9FdkQjUuXGmcfH/UvyTLdUcM=; h=From:To:Cc:Subject:Date:From; b=oFreSjh/FO+Twy9XWAkOLaCUaI8lajqkYvSvf2X4l75qhDxHw6CyPuos1ysw7aJxu Djv9zGrLD+qvG0O5r9TDpFrGpxgrTvGOKAqB4ht9brZCoHAchGoUof6OurwyOghY1g 6g+nGeKRMhqr5LNfFTGIv8IxpRRc2dw9B6AY3L27oF5N6U3Mmb3wuSIETVLVwGvKMz mFgRl644I2B+ApLsZTtPWwaA5/N8W+6eAaMlbX/bdtLxdYmN/qJw8RFB378vcGAuox 1UZ/TR9j1y7ezCPJijypDzjTqXXn1hf3fqB7EtPUQqy+6C/ButzeoPGWzlGiZoTTeh ExE+q5aMGETEg== From: Arnd Bergmann To: Linus Walleij , Bartosz Golaszewski Cc: Arnd Bergmann , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] gpio: sa1100: include Date: Wed, 17 May 2023 11:52:53 +0200 Message-Id: <20230517095301.903567-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 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 --- v2: rebase back on mainline tree --- 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 edff5e81489f..242dad763ac4 100644 --- a/drivers/gpio/gpio-sa1100.c +++ b/drivers/gpio/gpio-sa1100.c @@ -12,6 +12,7 @@ #include #include #include +#include struct sa1100_gpio_chip { struct gpio_chip chip; -- 2.39.2