Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp440616ybl; Thu, 23 Jan 2020 01:22:59 -0800 (PST) X-Google-Smtp-Source: APXvYqy1BuCpU0G52ujaJahIoEeubXWHpt9tj7WufB+89HufFDLr95SglbuBLClhAfH25jN5NEmv X-Received: by 2002:a9d:3676:: with SMTP id w109mr11152878otb.35.1579771379371; Thu, 23 Jan 2020 01:22:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579771379; cv=none; d=google.com; s=arc-20160816; b=AfEHWI2uDbSDJsLp+lviVIAoMl3rV6V2iH3zP8B3MG7a6Wu8rWeXq63h9o88089FQX 06q4fzankvNOBE6HcUzM6nadQqobUelHD0UOoF0zsfqksJbq1Rb7tBSAgwMzAW8ahT+N /BuJ97nb6XwbAnDifNdqvRbnT5e9ZvjffiZJlQpN78SF4oXFsNwcufeLxbNeqD9ihrDI ylR5V2l/VGbkX5zlv5gms75M5+o4sj8tOHpUrT5C2QJkL95MstzLMSCOCN+Q47kpw8T8 966dLMXq+FNFEAX2oHxnULwoQjfoNuwFBZmj9BV2ookZFV8IeYmDkFUS2oftswgudUOU fjZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:date:message-id:autocrypt :openpgp:from:references:cc:to:subject:dkim-signature; bh=xV3Uvkw8+OKQ7AftPuv/zmhYvZIHcGHcet0EaY1PAMc=; b=aTweNDXvDhJ37CKq8mGuu3IiqpqelUZtvHk9AU+upeJIFS4kX1YESYDB5sLP9O9koJ 77s2moj8KFdJFR2Ye7OVW1Ae7LYwSlD6TGkPQaCM1Ie3TDHdDGqNsqzXg+I5eq5hGOrl tpxZs23hzLMqal2mPBE3Y2+++58aFweqWIAy1s6okMVxscMyiNRw9QH40KQLgN/3cjYB HpmBWk680sKnoM3CCOtaaxba/90x7U7ZhaGmzza9BCCtjHnekKCZGyJYES/B7hYJIrxx 1Fon9SJHPbbQJhhbGt6wPiPJr1bugML52b2OOiziCaZVoD3C0u95vWDPYEvuhk5f16L+ jqBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aJkEKjQE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s3si604579oic.108.2020.01.23.01.22.47; Thu, 23 Jan 2020 01:22:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aJkEKjQE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726584AbgAWJVT (ORCPT + 99 others); Thu, 23 Jan 2020 04:21:19 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:55606 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726099AbgAWJVT (ORCPT ); Thu, 23 Jan 2020 04:21:19 -0500 Received: by mail-wm1-f68.google.com with SMTP id q9so1727784wmj.5 for ; Thu, 23 Jan 2020 01:21:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=xV3Uvkw8+OKQ7AftPuv/zmhYvZIHcGHcet0EaY1PAMc=; b=aJkEKjQE3/f/64n6gImLdzT+UNKKttZ48omBh4KiBPym3GoXm8GSuH6mE22tAdBcGt fuKc3sUcl6XicHo5fuIj6mBUcCYcT9xb3zmk3gh/AqpX7Bz8Am/n8Zg3N5YqqijEm4r3 3Gh5c4uAX1iWP83gsm+R4YH8IroSTl5LU1KciYpYAkCTgYrXiJydcrspHreSQ3rvPAEu LTFBgVjaEX5MuhS0pM1rhr4seoyLYYDEyg/vYhpHSztOw9c/wevwr5AVb3FflLItnJPi Fio1TVhDnVFjN1sibND3AWJbdWCZgfifdPWp7haO4tXLOq7GuMbU14zrsE+mfu6qO1lE jHLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=xV3Uvkw8+OKQ7AftPuv/zmhYvZIHcGHcet0EaY1PAMc=; b=gwhWKQAqtcGzL95Pn7m0SYaUgQyqCQjm0EOmB3m7W1N2Ka1R88yInnv2VOH4wkIAXI PEszDfrrog/PuJAigD7CF/X8Mc2uVMRq4y9flL3vADbKrQmvnshdND/azTouQmxzhMT5 2KJi3WMkotEIQ/ynrjUuVf2LZvM0Piyr7kGFTQr3Lzy9f5Y4CWEp+LcyAvVLhMwQzrJ7 AsMpWbGkpqWMnLFMFfzWV04v3NJSbdA+AdJDm+BCGrHvlpsdry08JHz6f2tv6kAl+y83 Mnt4D5GiWcuDQXOuVumvpBf8SZOHJlIXZdd4p02Pv4n7+kscf1gySNv0k34V2IAIe+wk OF8Q== X-Gm-Message-State: APjAAAWPrEXoQCsAaBLNyhymULoDYiMYDcwBEkSyM2nFaOeD4DctfjSl p0nJ+U34s6F+HdJTLKMvMANMUQ== X-Received: by 2002:a1c:964f:: with SMTP id y76mr3044669wmd.62.1579771276425; Thu, 23 Jan 2020 01:21:16 -0800 (PST) Received: from [10.44.66.8] ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id i11sm2316949wrs.10.2020.01.23.01.21.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jan 2020 01:21:15 -0800 (PST) Subject: Re: [PATCH v4 1/3] interconnect: Export of_icc_get_from_provider() To: =?UTF-8?B?QXJ0dXIgxZp3aWdvxYQ=?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: cw00.choi@samsung.com, b.zolnierkie@samsung.com, m.szyprowski@samsung.com, krzk@kernel.org References: <20200116144202.12116-1-a.swigon@samsung.com> <20200116144202.12116-2-a.swigon@samsung.com> From: Georgi Djakov Openpgp: preference=signencrypt Autocrypt: addr=georgi.djakov@linaro.org; prefer-encrypt=mutual; keydata= mQINBFjTuRcBEACyAOVzghvyN19Sa/Nit4LPBWkICi5W20p6bwiZvdjhtuh50H5q4ktyxJtp 1+s8dMSa/j58hAWhrc2SNL3fttOCo+MM1bQWwe8uMBQJP4swgXf5ZUYkSssQlXxGKqBSbWLB uFHOOBTzaQBaNgsdXo+mQ1h8UCgM0zQOmbs2ort8aHnH2i65oLs5/Xgv/Qivde/FcFtvEFaL 0TZ7odM67u+M32VetH5nBVPESmnEDjRBPw/DOPhFBPXtal53ZFiiRr6Bm1qKVu3dOEYXHHDt nF13gB+vBZ6x5pjl02NUEucSHQiuCc2Aaavo6xnuBc3lnd4z/xk6GLBqFP3P/eJ56eJv4d0B 0LLgQ7c1T3fU4/5NDRRCnyk6HJ5+HSxD4KVuluj0jnXW4CKzFkKaTxOp7jE6ZD/9Sh74DM8v etN8uwDjtYsM07I3Szlh/I+iThxe/4zVtUQsvgXjwuoOOBWWc4m4KKg+W4zm8bSCqrd1DUgL f67WiEZgvN7tPXEzi84zT1PiUOM98dOnmREIamSpKOKFereIrKX2IcnZn8jyycE12zMkk+Sc ASMfXhfywB0tXRNmzsywdxQFcJ6jblPNxscnGMh2VlY2rezmqJdcK4G4Lprkc0jOHotV/6oJ mj9h95Ouvbq5T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cMAIO89wZmj 7ayYJIXFqjl/X0KBcCbiAl4vbdBw1bqFnO4zd1lMXKVoa29UHqby4MPbQhjWNVv9kqp8A39+ E9xw890l1xdERkjVKX6IEJu2hf7X3MMl9tOjBK6MvdOUxvh1bNNmXh7OlBL1MpJYY/ydIm3B KEmKjLDvB0pePJkdTw== Message-ID: <45e28d51-27db-2faa-d633-3a3d857ecdc9@linaro.org> Date: Thu, 23 Jan 2020 11:21:13 +0200 MIME-Version: 1.0 In-Reply-To: <20200116144202.12116-2-a.swigon@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Artur, On 1/16/20 16:42, Artur Świgoń wrote: > This patch makes the above function public (for use in exynos-bus devfreq > driver). > > Signed-off-by: Artur Świgoń > Reviewed-by: Krzysztof Kozlowski > Reviewed-by: Chanwoo Choi > --- > drivers/interconnect/core.c | 3 ++- > include/linux/interconnect-provider.h | 6 ++++++ > 2 files changed, 8 insertions(+), 1 deletion(-) > > diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c > index f277e467156f..0be1764d3528 100644 > --- a/drivers/interconnect/core.c > +++ b/drivers/interconnect/core.c > @@ -330,7 +330,7 @@ EXPORT_SYMBOL_GPL(of_icc_xlate_onecell); > * Returns a valid pointer to struct icc_node on success or ERR_PTR() > * on failure. > */ > -static struct icc_node *of_icc_get_from_provider(struct of_phandle_args *spec) > +struct icc_node *of_icc_get_from_provider(struct of_phandle_args *spec) > { > struct icc_node *node = ERR_PTR(-EPROBE_DEFER); > struct icc_provider *provider; > @@ -349,6 +349,7 @@ static struct icc_node *of_icc_get_from_provider(struct of_phandle_args *spec) > > return node; > } > +EXPORT_SYMBOL_GPL(of_icc_get_from_provider); > > /** > * of_icc_get() - get a path handle from a DT node based on name > diff --git a/include/linux/interconnect-provider.h b/include/linux/interconnect-provider.h > index 0c494534b4d3..cc965b8fab53 100644 > --- a/include/linux/interconnect-provider.h > +++ b/include/linux/interconnect-provider.h > @@ -103,6 +103,7 @@ void icc_node_del(struct icc_node *node); > int icc_nodes_remove(struct icc_provider *provider); > int icc_provider_add(struct icc_provider *provider); > int icc_provider_del(struct icc_provider *provider); > +struct icc_node *of_icc_get_from_provider(struct of_phandle_args *spec); > > #else > > @@ -154,6 +155,11 @@ static inline int icc_provider_del(struct icc_provider *provider) > return -ENOTSUPP; > } > > +struct icc_node *of_icc_get_from_provider(struct of_phandle_args *spec) Please make this static inline, as we may see a warning in some configurations: In file included from drivers/devfreq/exynos-bus.c:18: ./include/linux/interconnect-provider.h:160:18: warning: no previous prototype for ‘of_icc_get_from_provider’ [-Wmissing-prototypes] 160 | struct icc_node *of_icc_get_from_provider(struct of_phandle_args *spec) | ^~~~~~~~~~~~~~~~~~~~~~~~ > +{ > + return ERR_PTR(-ENOTSUPP); > +} > + > #endif /* CONFIG_INTERCONNECT */ > > #endif /* __LINUX_INTERCONNECT_PROVIDER_H */ > Thanks, Georgi