Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1166074rda; Mon, 23 Oct 2023 04:57:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE6Rw+G41J+/7NbHMGXtOH0pXAo52nSzjwJxTzxQl1fLcxSzXei/axU3tfV1NnCwL3U/VTN X-Received: by 2002:a05:6a00:2d91:b0:690:d4fa:d43d with SMTP id fb17-20020a056a002d9100b00690d4fad43dmr6617899pfb.6.1698062228985; Mon, 23 Oct 2023 04:57:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698062228; cv=none; d=google.com; s=arc-20160816; b=uXHBUv6xzOQ64G7yfAC20DENRpCh99Y1/coRbYnKgmuc9JAy2Tp9iJEruOMlPisbI2 jUY9TAQaErCiU6pLz56HmzoH7kfLR2v2tmxSpUA1o5C0qB3SO4/SXWLsziT9rNFKvHEA o6SgS0zPWCeqcCLVKfqeuDbzfNfhgl4btDdbwZ9ajCUIqgemSnkm0dAmWZTE9ZrA84fT aew5MomR944UHiCdmYnUd5gNRuvaIxCj16vgpxWlCTs1wkyuebmNIXPYKCA0MVhFDV/6 2rVRGUgGECBNmfoiCYSoh1mTmkEqijYrGGg0Pme7WGnO/EjjWhE0hkcGIvYtkMnEEEEm Athw== 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=qCC6yRbttH19yhNL3yXy+lrgBsGCphxxIl9H1f3ZBWE=; fh=WXTD5vrpDYH3gGNuRQWr6oN2LREFUWjf3TjIzBHpFlY=; b=w1cB0HNZ0smnBQrBduYknye0vylFH3hGG+4vx3uzyxC/O12PxHeOBBOKOon7CekIq2 Wn+U62ExK/ps1To5CgobxzHQ9LoqE7a3GM0e/+jC6+9yPtMOuJSTMqpdTLF3cZRno/ML 9RO9QIzke0/BOb78skjBUNoIugnuOrVbOIWryXeHZ4REAud7FQkon3pLIzO7kbP3v0Uk Hc18RDgahweEk+kNNqV2ADLrykLqkzr6KMCOzEqzo2GQfcvp05U1/KqHx3qPbMaqTh7u 5il3i3n1rNZ+33sLfsBbCzMOv5nOYY64v+2n8ZI2lsRMAOg0JvBhKqp7gYZl3L1PYApg C3sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mn5kib3B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bq2-20020a056a02044200b005ab11ef76a4si6644019pgb.682.2023.10.23.04.57.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 04:57:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mn5kib3B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2146980B1837; Mon, 23 Oct 2023 04:57:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234518AbjJWL47 (ORCPT + 99 others); Mon, 23 Oct 2023 07:56:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234521AbjJWL44 (ORCPT ); Mon, 23 Oct 2023 07:56:56 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D43310EB for ; Mon, 23 Oct 2023 04:56:53 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10AA5C433C7; Mon, 23 Oct 2023 11:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698062212; bh=bJRfXy2TRIDrKcAouw/75Fhv7CzjeSwcjJuB4GB6vlU=; h=From:To:Cc:Subject:Date:From; b=Mn5kib3BI3Gy5PE0SXj5IdYJs0wnU7kITW871Jj8vLdJmT2LGr2tOiqQa76DwNmi6 1XOj9sUw7IYJa3/r0DzX2Co2JHDaw1J4JDlItVZQGRMNLEp/AQ+SpHni+2OCfvX769 OIBxqx+53J5hl2qsEFPnCdk3L7rp0JFRfPXLjdF7UfXdXptDwyXXcB3biQRAaZuSKT Heh7ippAW/AN5okuoG1+BfX/9T8E2qSGCCbtpb3ARSzN3MKbLQG8Uw+9ifgZUB/KCt AAx6U0dYzE7zSiPy0x4fITSAHy3lQ4cLcZIbTLy4YhA96634LhF6BdrmHoIy9ZffZe +TfNqzT14RhkQ== From: Arnd Bergmann To: Dipen Patel , Andy Shevchenko , Bartosz Golaszewski , Linus Walleij Cc: Arnd Bergmann , timestamp@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] hte: tegra194: add GPIOLIB dependency Date: Mon, 23 Oct 2023 13:56:41 +0200 Message-Id: <20231023115646.3573494-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=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 23 Oct 2023 04:57:06 -0700 (PDT) From: Arnd Bergmann The driver started calling into a few interfaces that are part of GPIOLIB and don't have stub implementations otherwise: drivers/hte/hte-tegra194.c: In function 'tegra_hte_line_xlate': drivers/hte/hte-tegra194.c:424:48: error: implicit declaration of function 'gpio_device_get_base'; did you mean 'gpio_device_get_desc'? [-Werror=implicit-function-declaration] 424 | line_id = desc->attr.line_id - gpio_device_get_base(gs->gdev); | ^~~~~~~~~~~~~~~~~~~~ | gpio_device_get_desc Add a Kconfig dependency to only allow building when this is defined. Fixes: dc850faa28ee0 ("hte: tegra194: don't access struct gpio_chip") Signed-off-by: Arnd Bergmann --- drivers/hte/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hte/Kconfig b/drivers/hte/Kconfig index 083e67492bf2e..641af722b555d 100644 --- a/drivers/hte/Kconfig +++ b/drivers/hte/Kconfig @@ -17,6 +17,7 @@ if HTE config HTE_TEGRA194 tristate "NVIDIA Tegra194 HTE Support" depends on (ARCH_TEGRA_194_SOC || COMPILE_TEST) + depends on GPIOLIB help Enable this option for integrated hardware timestamping engine also known as generic timestamping engine (GTE) support on NVIDIA Tegra194 -- 2.39.2