From patchwork Wed May 17 09:52:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 95136 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1008366vqo; Wed, 17 May 2023 02:59:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7IVNXyOkFdidzsIQgwVdxoxi6XS7p22YlPgC3i9jZBuFqsCXLKCxLS6dUyqa8IsMGYGYXl X-Received: by 2002:a05:6a20:8e07:b0:101:8f00:595f with SMTP id y7-20020a056a208e0700b001018f00595fmr32844270pzj.44.1684317585894; Wed, 17 May 2023 02:59:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684317585; cv=none; d=google.com; s=arc-20160816; b=nXEGYLedxkIyQqog/LFDig8WwoT9qkwSE2Oc/fbXfoEma3MQKaV6wfFvk3j6NAnNbW qiUQiT3rWReuoW2VlTLOdQrNQTr6q9Z/YcJcf1k80F3RNuk4lg2LXccM9aJQQnxNXlgL Uq8A0YWIW75cxVLZ2gGszjoUzSHt97nHnGuRgfiZ03DbXl/oeGrLFPYzwoUcJE67ev63 74KLUyQvN2LnGQ7YwcmdLXzVqxUO/fy+fJETEbxhuEXOfVdyJ7AwUIUv2WZGy3VhDmFS i1oGPiCqISVOrf5QWQWizo41L8BC+vMF/BAlCp3A6GqvpW7eIx+eR5Y7KR3NGubEW09H uetA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o1-20020a17090a420100b00252b6276bc2si1388537pjg.109.2023.05.17.02.59.31; Wed, 17 May 2023 02:59:45 -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 S229626AbjEQJxV (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766134996661745626?= X-GMAIL-MSGID: =?utf-8?q?1766134996661745626?= 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;