Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1275861lqp; Fri, 22 Mar 2024 10:05:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVrim2HD9tynenUDF+Q7d9xNI+O4jx7UbgVSzb8rFYB5M9CN5E32Kc8T+PAYTrer72T3znDKZrJLDJduJABAeVC6tyg+8Xqug1b9Rzb7g== X-Google-Smtp-Source: AGHT+IE3HK3SGxa5x/2g0JyoOa4aZBgY9Qacvfkv7N2wlVZIZ1l3p3kU4NGzf7B8rEyRUMRvMW2Y X-Received: by 2002:a05:6a00:3d02:b0:6ea:7b29:3ab7 with SMTP id lo2-20020a056a003d0200b006ea7b293ab7mr342936pfb.23.1711127101945; Fri, 22 Mar 2024 10:05:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711127101; cv=pass; d=google.com; s=arc-20160816; b=J7TN+MI9GC6sTKY0g8DkT68Dnt9rGpbpMO0Z5gOSL9GCmUynvLpleQzy4R00V0ZHKH GfdvkgIr90N/cQFYRRUP4DcVRqLTL/lSaVXZUEYDKOXgEYXMpnQfoKLLvIXQsr6tCcCF 0CPaI3ZTR3yKjuwvHafF5FJQnXxbBOYzbv85STJAudT11KUyl/DpKBoqLGI0At3VRMFN pdqzYZjm8LK/q/UdC+aEWvGcFYs3do2mvxRhIdo2/4kBemgw5qwFTPY3ggEU4NCGhuPT MUYIsNDqCkoM9Cw7HXPFA3PpsXRgTnqosZ+inpj+8w80EDwnSE6ycb3q1XxIblWGhXUx D6hA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=O62u5y0QOaRfHhYazQdNyLApTvQMwZDuLmZoNOwvWVE=; fh=IubvJUOyPsKC3NUMPPUTX0EoUx1NMFh73rZQIHuJ/YY=; b=VoJuyfGg/KAr3Y0K18lNndlrJXH2Q1x79ZLvJNgj19PmpSC26ISXtoyAWYYKABoMc+ w6qY8TGimrz7bltSTWWh5bApWvtt37YYbUQ3lhuPzuvXjHoIc9+yU+yi2s8ZbpLkkbaX kXuXr+q2OYL0nM2FJOWR7l8YKP8Kb7+K8/r+RZ1ou/ZZdbVemD/u8JHA1nyp72J5tmUz X55CcqDJltnb8RntRl9dA9QdEJBf6TxrgeqTUOvm4mI71XZI5G37mbLpJvzbHn+V1kJK RORPxemASTxtjcIyP7ZWutKmjpkLsZQbTvuyAw//KdzgfF4Ml0UxXceWATW8FaoGvL7c ReAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LFRF7fkq; 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-111828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111828-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 fd39-20020a056a002ea700b006e6b0e99fb6si2437116pfb.8.2024.03.22.10.05.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 10:05:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111828-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=LFRF7fkq; 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-111828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111828-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 47F6C28972C for ; Fri, 22 Mar 2024 16:57:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 044AB5FBB1; Fri, 22 Mar 2024 16:53:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LFRF7fkq" Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 3B6CD5FB9C for ; Fri, 22 Mar 2024 16:53:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711126400; cv=none; b=Euw8c9Z+QOWXo/PZnB+MoZoX6ajA1zoVrg60PFMcf6ctR6OfqTGMecdNkzGUp92aHBlZ/vktfc/7R92RTeqmOifKe9TXju5moMaFCApf2hvNzRkxTPlE4F75zt920gpa0CCEqIAk2s+A7N1dEI7BRkXNYK9ZWGdcsq0ReEdAlSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711126400; c=relaxed/simple; bh=vx3yN0guA2FOX3V5rAXL+YFNjYh0mI7bQ/JkBfHqFQs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JdhBKY/Fih45seROC30+bhORsjU6AOZs6gakNUtHAosaaBa8Li0syapLlMMeZx/bL/r67jXVrB3G65W4aed8GZvRr/SGsNB/JdXbNuv83JSWhiSmZNeIv8dCWPheMIGB5VzdJ9uY657ewOEcFE870V0OWfe60q2hdvSKceWOuLw= 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=LFRF7fkq; arc=none smtp.client-ip=209.85.218.47 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-ej1-f47.google.com with SMTP id a640c23a62f3a-a466fc8fcccso323780566b.1 for ; Fri, 22 Mar 2024 09:53:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711126396; x=1711731196; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=O62u5y0QOaRfHhYazQdNyLApTvQMwZDuLmZoNOwvWVE=; b=LFRF7fkqD/ICfxxJoN0Nom/2LKOUxwx9GbQCtiiXSeo0q4nAhqt9dAQdP8eIGMuX6f QzF9NX3V0oYu+3En9OamEe9EXTT63l8OToOSSWIlt5anOZU4983nFdY8vH5rLog+IZaR sT9apNbxrEiqn64Q2fXUnb+7c9iY510FxpXEz4srGuEnqFKUCkSmQ6qBVrSuCwTFU0ow +xkXZk6G6UGn4e7xbDvYCaMRv4sHoJGRtyoaNL+EciQ1KvU/3T4LpGJYvS36MyDrEae6 UPzzhZ0UDWFB1YgR+eZEyDZtcgGRra0O46ZOJGQOTD8p46tRuJEKgjW5C3L2WjwM5T3p 0LTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711126396; x=1711731196; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=O62u5y0QOaRfHhYazQdNyLApTvQMwZDuLmZoNOwvWVE=; b=EC1o+I4+jYdkSzNBa1XTcNg9DVZiINljuuabTahHLVLkl5UY/AlNmYdW99iSPJT1KB 72BA/by5neyVErjrsoB2jpAF475seL3o2O+Hoy47CzmAayadzfQQAKxBdW30KXXhsI11 7D8XeYypdQc929w4jsmTkUPkFdib0u2pDvL1Au7HspuoIcGoSCvmeVjJv6ydB78RzhHC 8j1IhTf2JpfeiNMFVMRIk+lL2zGiY9As9tpc7Z/p9Iuk0E5IGgy2E8CDdUZwYGCRlh0s kMcUVTnEnohV5h25bN0vLDxtejPJziqUK6s2f5I1n0oJviQUGsDjPLmot1ngKVcT7xMh plqw== X-Forwarded-Encrypted: i=1; AJvYcCXSt3bXJjZexRskh0N8AigIeEQJRolDzQReXdnjDBK5drNQBaD4PAqR9gS7oC0bcrKi4AFiqbZj60sohF66b3MTRbSktvQKDYeJegti X-Gm-Message-State: AOJu0YxHrFbyO9fSHYTIPsxTBsOtigw+yeeUVqApGM2iuEYP1zayDwjt VOZit7Fap4lo3oo/WhHY7P0Vyzzoe9VpH/FbFQdhjAjgcMvRZ8BCXBmqnuUxJ3c= X-Received: by 2002:a17:907:36a:b0:a47:3601:1884 with SMTP id rs10-20020a170907036a00b00a4736011884mr159337ejb.52.1711126396593; Fri, 22 Mar 2024 09:53:16 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id jy12-20020a170907762c00b00a46ab3adea5sm6903ejc.113.2024.03.22.09.53.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Mar 2024 09:53:16 -0700 (PDT) Message-ID: <6974777b-7809-420d-ac6e-7fa9660b1380@linaro.org> Date: Fri, 22 Mar 2024 17:53:14 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] gpiolib: Add stubs for GPIO lookup functions To: Mark Brown , Linus Walleij , Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240322-gpiolib-find-by-fwnode-stub-v1-1-05a0ceee2123@kernel.org> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09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GxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240322-gpiolib-find-by-fwnode-stub-v1-1-05a0ceee2123@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 22/03/2024 17:13, Mark Brown wrote: > The gpio_device_find_by_() functions do not have stubs which means that if > they are referenced from code with an optiona dependency on gpiolib then Maybe can be fixed while applying: s/optiona/optional/ > 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_reset_gpio_lookup': > /build/stage/linux/drivers/reset/core.c:861:(.text+0xccc): undefined reference to `gpio_device_find_by_fwnode' > > Signed-off-by: Mark Brown Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof