Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2030390lqz; Tue, 2 Apr 2024 05:30:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXng+mbBghmhTFKOs7MF2EVGFc1ED7rENYtQTnF65QKASCrbtRe06T5MEUYPkmT7DRqRtBtNLHCqtUiviaRtxS4QlF1p5Vsp8dWQmKxZw== X-Google-Smtp-Source: AGHT+IHx/b3V+7HfjZT6hLg8E6YHXGPqM85rzObtlcsgt+NYigdsKIVVzFA4B5maDbo+3JDyQSaa X-Received: by 2002:a05:6a20:2594:b0:1a7:23ae:ce3b with SMTP id k20-20020a056a20259400b001a723aece3bmr1157304pzd.56.1712061025869; Tue, 02 Apr 2024 05:30:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712061025; cv=pass; d=google.com; s=arc-20160816; b=sSo57uO7exMN1RKKpJQPP1H0Bre0qm/ySr7moBh1VWrWmkqcgRHAKRb+GGPyDspeL2 NreXWJGxZhcOKt1dFTn1Xy6ympBMowM6qs+3dJ7XlphL04EImne6k9Ke2e5T14hBg4bw Gufv4YHOoOGRvE+s9DHEt9OJtgll4IlNP/tH5p/eOiuxVdXIEH9xq6s6ypMeOh3MfcWd GYp4V9eED7tkusfeCGoc2isp58yG5U95f83vw721Q9yheejoxFWWHzkCXn226fEXP9De wXF4jm5ZmaKMzTqlBBq8sIdTTPCM1ylhBg5uuZHA1U0A8rFuZDqdNNyIXwWZD/88/Lp8 WQGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=mIcPIkXXOlhDttAffO2gh5drI+8AQ9cgDL80itbQeww=; fh=2u0b+onE92nIanB+AEoGRcWPSL/YQt6K6zn2Hiv+pDE=; b=KyzCdb9rN9d7hRNh13oL2BO8NKHPjAKCHh/5AczMOlLsNb5I+GQVhxOWadJ67XCKRv vaXmvNUjLrs2ivDNkcC+f+aN59qqDTnHLDo8t+Uf0zhOBYMNTJXNhU/qPyXg/XWnR3RN UQurLS0mLfnP++jIvrYyjAhe1zgPZzoN+27plAI3/2r3E4C0P8d696zRxOFjE3x9hT1+ SbzuRqJKnJ31ZZCubNJi22xsTbm6mRpfBFgpPzdJevPAx7oWJNdB2Z8WRXts38M7E69r 6IzayPuihGaZ2hXDkkemdKzR5o03Fia3fXlFx9TWmTsk1gxYi+C21Bdan/GqdO4nj6eb 2UMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mc3r2EQe; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-127935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127935-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x18-20020a656ab2000000b005e44b47f272si11179994pgu.410.2024.04.02.05.30.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 05:30:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mc3r2EQe; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-127935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127935-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D880C28474C for ; Tue, 2 Apr 2024 12:30:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 958DC77F1B; Tue, 2 Apr 2024 12:30:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Mc3r2EQe" Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 393D91EB37 for ; Tue, 2 Apr 2024 12:30:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712061018; cv=none; b=SpYlPdBL8HWX6fy7ddpHSXeg9/YfPVVFF5fm0r4rEYgo4nSV8gDKJVg7p0VTyhKXb7+MphtGTt0Fnh3WEWMwVLy1ilyvHocS64V1id3Be/lpM33UdGcqwqWon7mPU04sEcOvKEkCjPLVgQlqJg2vBRIszR1R5p8wA5d96LuRRW8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712061018; c=relaxed/simple; bh=Zs7RYzJuxbghkdLPqGTx29qLDxS9pI02mK9pwl5L2Vc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=DFyfteqtt+ZIf4BCLZJUSn6FEj27hc2grQEj95VX4DB9Jp7w2iTwf+wX6lGvJnmVgW7mAexWW34B6VI7O54Z1AfibqCzfb9SivRZA7xJgDLdOVbis28foWxTkm/Z3EtKUqKTOi57U5UX8mYwI41H7AMwojvOgW0akpsLSoLCRus= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Mc3r2EQe; arc=none smtp.client-ip=209.85.219.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f171.google.com with SMTP id 3f1490d57ef6-dcc4de7d901so4051371276.0 for ; Tue, 02 Apr 2024 05:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712061016; x=1712665816; 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=mIcPIkXXOlhDttAffO2gh5drI+8AQ9cgDL80itbQeww=; b=Mc3r2EQef3j/j0PJ/EZzAut1j/h+so5o6H2qGqCvmQ9aDQody/BCsAQjCJhBOnUe6M wIDXLuZcHFW4IHuhdHEL5uBbHM3RcvQqd1RGxD1qUwAa+3c2sOHpn713S0D8DwCMhhmK nqfVaYTcbW+T3VGDELI/a0BAPdPB7ApZr8m6a6k/Sto7kJvZMh9Uw7Jkm5HVhW4gWZWS 5OwVvoYdi9/rGZYHT8dIvOIg8/KINo8b8GG54u1tgZvqyzwJEngCRYJKBBxBPLkwcDxp Q/N7+2D+PuIMgqmGdnViYq0phkFdTSVkePeFodMIovaYkUc/6jCUmn43nNy8yyIhb8A7 PWpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712061016; x=1712665816; 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=mIcPIkXXOlhDttAffO2gh5drI+8AQ9cgDL80itbQeww=; b=ibXRgBi6wBO/mGiOA5JtXWSh/lS76KQ6v1grDAQWXw8ilyW2DjQrKFYir8vcTm9+b4 xg83LIfVoqnGkeg76gVTc5aQNDoLPLzZEZnE6f4SdPHXrJfPbj5MGH9NXFqguUmemQIE n/6doNWJ+kShLUXRuQN3tV4GF6wtowdxrT4L3+tIPy4wzpK+9HFEUU7oFcRgGfmNgrqO 51udVpZOo8YfQG703kIA+gHqs/igA7BfSECzbYX5fDiInxNVmV3NWAPIB5mc0j2KENIX P4vjba/ktPEkRdjuaykAJ7f7Ok1Xdn236zz1gFb+9rG8vAsn0uOk6uJdZIMJMN6Ex+QN As8w== X-Forwarded-Encrypted: i=1; AJvYcCWYUWxNL+MemkIrMmppW0OZg6yW54EpwLMtIidBo+vJzEwt9HMKa8JzTUep8Dvl+Gi/ikDqCx43XGb/Sd2t56XYOLZoAC6pANOeSnJw X-Gm-Message-State: AOJu0YxEneGEqUZxf1HZ7+U33V30nM1j2XJhIa6Pvgi3w0RYPSkvCJhN WnjQYT3V02dlm4Gasxb6hs9HMX/PAttqmzqeixwPpPEdXrViuAzHgHjYOztQiPpxW+H+qqcrvNG JEJBNchh+7ugFnPxZy6rt2SuHGNzhm5SqaoT2cA== X-Received: by 2002:a25:807:0:b0:dcc:a446:553 with SMTP id 7-20020a250807000000b00dcca4460553mr9476757ybi.57.1712061016321; Tue, 02 Apr 2024 05:30:16 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240322-gpiolib-find-by-fwnode-stub-v1-1-05a0ceee2123@kernel.org> In-Reply-To: <20240322-gpiolib-find-by-fwnode-stub-v1-1-05a0ceee2123@kernel.org> From: Linus Walleij Date: Tue, 2 Apr 2024 14:30:05 +0200 Message-ID: Subject: Re: [PATCH] gpiolib: Add stubs for GPIO lookup functions To: Mark Brown Cc: Bartosz Golaszewski , Krzysztof Kozlowski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Mar 22, 2024 at 5:14=E2=80=AFPM Mark Brown wro= te: > The gpio_device_find_by_() functions do not have stubs which means that i= f > they are referenced from code with an optiona dependency on gpiolib then > the code will fail to link. Add stubs for lookups via fwnode and label. I > have not added a stub for plain gpio_device_find() since it seems harder = to > see a use case for that which does not depend on gpiolib. > > With the addition of the GPIO reset controller (which lacks a gpiolib > dependency) to the arm64 defconfig this is causing build breaks for arm64 > virtconfig in -next: > > aarch64-linux-gnu-ld: drivers/reset/core.o: in function `__reset_add_rese= t_gpio_lookup': > /build/stage/linux/drivers/reset/core.c:861:(.text+0xccc): undefined ref= erence to `gpio_device_find_by_fwnode' > > Signed-off-by: Mark Brown Since we have already exposed the innards of gpiolib as much as we have I guess it's a must: Acked-by: Linus Walleij Yours, Linus Walleij