Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1168482rda; Mon, 23 Oct 2023 05:01:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFbpTx0XD95t5P1rAbTAgp5Am3LsT3mBJkDMGwl487IooqtbRMaCLbUCL6mRvxQ1EBf+YIV X-Received: by 2002:a05:6a21:8191:b0:171:4f38:b475 with SMTP id pd17-20020a056a21819100b001714f38b475mr6267756pzb.58.1698062479617; Mon, 23 Oct 2023 05:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698062479; cv=none; d=google.com; s=arc-20160816; b=o6FsmnoluxRuhvS/8wj92g4/dOOQS9Bs1LUavcS0/3m514ceWcEI4P/9b2+zKFzUvN UP3N7at6TTXMpyZQsdeSvdiXDVkYV6+oEF29yi09gvD30jdy00qYPfQffbP43zYcGElX NvtXS4ZTGYVk5E8sOu6HGTVycMoy7Y9IErfBc4bEQq4FFt3Vn+Q7VkasQ+AeJUTz+Zg3 xVPabBQ3dbaAbDnqH/u65iXRo2nbCAPRvj6vfiCgv8SaOIUEZT9emaImY/dlzaN3nXvV B/TXG9sPJJHXxaPKg63JqT9+MwkIiWtRHe3nV6ZquwDa5oYOEWQ2uzqUXQMQ1KWyckot i0JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=DXG6D39H/bG+JdWvKirNbcyn6AT+8IVB18CJ9gYiVCs=; fh=EJl2Jspcdr0LccnUN2ftXzJHlzW0/iu8WePVcQw4JgY=; b=0trvP/BrEz61hRneY/OowHyVQeJS1mo0hvBoVR4pAmh+8Au/Ddb7KiTyPdKdoCeKJ0 EaWyRdwXdngk8xhc1qK663b30WYsm3IbIc8XQND86biJekTyDI2IDjr+ZrX3anQvOVIK HHeM4RCoIqHY4OOxaW4jP7NQUWiiHcaHO7xgca5lysILxKYN5S4En+nxuWFQIcvhHS73 guMX/cGYWYlR+XynF7qS0lw4bmQngY8xb8MmEkm/GTN/9X4OtefqCeHne4ZXd0aucOKc SeGxMW9LhLzWVXjQRXq5glApmRJHWCjmpcH/pZNzSRLDwP9SG1lGXB2IsWXCrBXUmZeL kCMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=egqY1ped; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id b19-20020a656693000000b00584a4a5be67si6248292pgw.520.2023.10.23.05.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 05:01:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=egqY1ped; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 96CA68074CE6; Mon, 23 Oct 2023 05:01:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234489AbjJWMA6 (ORCPT + 99 others); Mon, 23 Oct 2023 08:00:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233398AbjJWMA4 (ORCPT ); Mon, 23 Oct 2023 08:00:56 -0400 Received: from mail-vk1-xa36.google.com (mail-vk1-xa36.google.com [IPv6:2607:f8b0:4864:20::a36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 295D5FF for ; Mon, 23 Oct 2023 05:00:54 -0700 (PDT) Received: by mail-vk1-xa36.google.com with SMTP id 71dfb90a1353d-49d39f07066so1420248e0c.0 for ; Mon, 23 Oct 2023 05:00:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1698062453; x=1698667253; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DXG6D39H/bG+JdWvKirNbcyn6AT+8IVB18CJ9gYiVCs=; b=egqY1pedlC9mH+z3URUaxgggJM1qw406AQh1dW8If1gx4Yw+kHP5TuaY8BVH4gEfwy 561BReRAmDTmgk9Q4vlA30tdmiUcQNUcCwAOCSF0cO7QIP8YlIC0QsprYIxGmIrz24vK Z/R8VoitMd0LJo/QgZQ3YZjjD9jc3U4hxJUvkWGL13GYq5NDv1jsvb6Ab9/GJ8d0l3wl xFIoU9iT55Ng8DsJMNFaeSPrObyOlKCfYSC0hW920ImDLCNVWZd/GYe3FsVUCArScPGj z7TVPkO8b+vdPk8JINO9qpfkPdlLzyyKutPqkTGtR5nikL+YB2QvTnuyyj4ae0Fs7KYz wB4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698062453; x=1698667253; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DXG6D39H/bG+JdWvKirNbcyn6AT+8IVB18CJ9gYiVCs=; b=oEnKmhZzjlPgMMPcAkR3gPZNZ9Eg8OKPWlZZzf6bHpnt5/ALGwOwcKu85pXd0PUClm tFoobeCf2uAyCRe5Lt2kroEtA08aPn8ntSVB0VYanlJAKeyGdG/FD+3hSPc3bJAgwKMP VxuaJ3TvjXkCsp+Vq/IpPyGTzpvvnDIACtujwbxDLT0V1WiTATCBQLvAUbIP24xmyqfA xd/6j8OM4Hmz8lWO3ld8PasEbsVPKKLr/yUY7wINvu+4vUEOrIMN+DcoOmCNwBNxfF6n Rhvd1OsGcfaPktOa9V3jRbkjJiVBSFeNJm7QCancOjaIBiXO+uZ/kn6wZZmIrrWyAek4 B46g== X-Gm-Message-State: AOJu0YydUEPepJMRNOWaayJpDJ7Hgrk0n/m3zhTGOmO3ssAmZOLIf5Za eWEQBINVeiEevCny63VSrilUMJ7oaB/YMCfz971EYw== X-Received: by 2002:a05:6122:12f4:b0:49d:10ce:9a8b with SMTP id k20-20020a05612212f400b0049d10ce9a8bmr7783435vkp.15.1698062453198; Mon, 23 Oct 2023 05:00:53 -0700 (PDT) MIME-Version: 1.0 References: <20231023115646.3573494-1-arnd@kernel.org> In-Reply-To: <20231023115646.3573494-1-arnd@kernel.org> From: Bartosz Golaszewski Date: Mon, 23 Oct 2023 14:00:42 +0200 Message-ID: Subject: Re: [PATCH] hte: tegra194: add GPIOLIB dependency To: Arnd Bergmann Cc: Dipen Patel , Andy Shevchenko , Bartosz Golaszewski , Linus Walleij , Arnd Bergmann , timestamp@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 23 Oct 2023 05:01:14 -0700 (PDT) On Mon, Oct 23, 2023 at 1:57=E2=80=AFPM Arnd Bergmann wro= te: > > 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 functio= n 'gpio_device_get_base'; did you mean 'gpio_device_get_desc'? [-Werror=3Di= mplicit-function-declaration] > 424 | line_id =3D desc->attr.line_id - gpio_device_get_= base(gs->gdev); > | ^~~~~~~~~~~~~~~~~~= ~~ > | gpio_device_get_de= sc > > 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 Te= gra194 > -- > 2.39.2 > Thanks. None of the new interfaces are "consumer" APIs and are not meant to have stubs so depending on GPIOLIB is correct here. Reviewed-by: Bartosz Golaszewski