Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp822361ybl; Fri, 24 Jan 2020 10:08:40 -0800 (PST) X-Google-Smtp-Source: APXvYqxLxjMjLYFkD2GtZuwgOgadeklQizmpDQyWW7YuhZkghChDEZSsCKCjxSCSOzl03Ak6yJSZ X-Received: by 2002:aca:53c6:: with SMTP id h189mr40266oib.11.1579889320450; Fri, 24 Jan 2020 10:08:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579889320; cv=none; d=google.com; s=arc-20160816; b=GmHmixLJDulUNp9KQ4dexNEM+nZiMshh8c4J+PJwvS2qsk8kBUpb4wMnuTNi66rTxc 8Ci//aQUH9lHkwyHzqRcE3IHFPB/q1yRA+EY3dggY4j2XvhBqPjrBN0wLEgqSJyirzko d569T/PQhbKP/GcTMXu1f4L5IxqjYwcPFx/pf7vVJHHTMC7Y0e/nLmQ27DpvBvtPI+qq 7yanTCRPtqA0j6JrdXfxXpDBcnVUB5jPde76zM62iKjL6TPmUlQWDSMxwwAcwf0ptred zgH4kUIaF31xu/Dux9p9e+eKCmyjGu24Jl6CNOgQhZEiSSqPbIQCEbGRAgU8AS/941pL yEJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:mime-version:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature:dkim-filter; bh=gH8EIJeJlCpXZLUo9SizzuGQeQgKu9yKoahR+VdzaC0=; b=N32tYoFt8bi1fnE4HCwTZ8VdMehaHAwgQWoeTQMO28f1QraShy+OMKQyCQcKcuHYIr QXxazTHK6GaoWsF0XbnlGjsB8JaSBQTrkkZwauOhdSmwmayS4I6V/oX3gpbUUuEIfBov kFqZ5F0308/qhBEpMQplvaxCr5SvLF1ZFWsakIgT7FMgnjPBXoQnyxtiggo1/54iMcuK 0Fk7fFTvR+oDjmcN9FH8x0FTMPjHzduYzFG0IEzsCQoXY7PbyXJW0bg2PyyZ3hBltUaE kuYdB9k+OauVuXcYrs9QV2dtzH623cxwrK4Mnq9TbqDuciuUWJeh2RupQ+kja2ihAonB rH3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="ZUsjU/sn"; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11si3320292otc.105.2020.01.24.10.08.27; Fri, 24 Jan 2020 10:08:40 -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=@samsung.com header.s=mail20170921 header.b="ZUsjU/sn"; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391215AbgAXLWh (ORCPT + 99 others); Fri, 24 Jan 2020 06:22:37 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:52873 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391217AbgAXLWc (ORCPT ); Fri, 24 Jan 2020 06:22:32 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200124112231euoutp02bec6b79d424790710f845023d90a3da2~szs2REXOh1664216642euoutp02m for ; Fri, 24 Jan 2020 11:22:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200124112231euoutp02bec6b79d424790710f845023d90a3da2~szs2REXOh1664216642euoutp02m DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1579864951; bh=gH8EIJeJlCpXZLUo9SizzuGQeQgKu9yKoahR+VdzaC0=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=ZUsjU/snKJDoLgpzOZzP4YhLLm5qsWkOK/QVKyREP34CAeJgq+1kqqUmh8E5h15dh y8932klgGlKlSJUWGLHNxebDDo6A9UHu0BkEknDleHa2NEZ9JkzHk/5K92kKM3HEi1 riMifFVq3XjCgkztweXYam7w/lbC8f/NF401Tbg8= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200124112230eucas1p16d9ec921d759632091731778cb04cd6e~szs1nHtSe2709327093eucas1p11; Fri, 24 Jan 2020 11:22:30 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id CD.A8.60698.673DA2E5; Fri, 24 Jan 2020 11:22:30 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200124112230eucas1p291726bf7d38e291fba61b48f61eee9fe~szs1Sbhr02304223042eucas1p2w; Fri, 24 Jan 2020 11:22:30 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200124112230eusmtrp1437ace3339b579ec0f61a6988674b2e2~szs1R3yFr0086800868eusmtrp14; Fri, 24 Jan 2020 11:22:30 +0000 (GMT) X-AuditID: cbfec7f5-a0fff7000001ed1a-b0-5e2ad3761941 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 4B.FC.08375.673DA2E5; Fri, 24 Jan 2020 11:22:30 +0000 (GMT) Received: from AMDC3555 (unknown [106.120.51.67]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200124112230eusmtip23eb7cec6c530209891158808b8cd0899~szs0yYZFW1635916359eusmtip2Q; Fri, 24 Jan 2020 11:22:29 +0000 (GMT) Message-ID: <6c41f75456d4c9347414b94215162d81acf4b84a.camel@samsung.com> Subject: Re: [PATCH v4 1/3] interconnect: Export of_icc_get_from_provider() From: Artur =?UTF-8?Q?=C5=9Awigo=C5=84?= To: Georgi Djakov , 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 Date: Fri, 24 Jan 2020 12:22:29 +0100 In-Reply-To: <45e28d51-27db-2faa-d633-3a3d857ecdc9@linaro.org> X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFKsWRmVeSWpSXmKPExsWy7djP87pll7XiDGZPMrTYOGM9q8X1L89Z Labv3cRmcf78BnaLy7vmsFl87j3CaDHj/D4mi7VH7rI7cHhsWtXJ5nHn2h42j74tqxg9Pm+S C2CJ4rJJSc3JLEst0rdL4Mpobu1kLJguXnHx5hO2Bsb3Ql2MnBwSAiYSby51sYDYQgIrGCXO 37bvYuQCsr8wSky7PJ0ZIvGZUeLa2wqYhk9Nx5khipYzShx4vIoRwnnGKDFxfyMrSBWvgIfE tk8z2UFsYQFvicevLjCC2GwC9hJnb39jAmkQEehklFg36SFYglkgUeL75GawBhYBVYnrhy+C 2ZwCdhIvvyxhhFitI/H2VB/QrRxACwQl/u4QhmiVl2jeOpsZomQRu8SCJ0YQtovEk0VrmSBs YYlXx7ewQ9gyEqcn97BA2MUST3feZwW5R0KggVFi07IjUIOsJe6c+8UGsotZQFNi/S59iLCj xNMTN8HCEgJ8EjfeCkKcwCcxaRsosEDCvBIdbUIQppLErpl8EI0SEk2rr0HN9pCY/3sv+wRG xVkIr8xC8soshK0LGJl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/Fak6/Yk2XuXWitSE2K6nTpmN5 3Z03X4v3/G7o/X1H0XtuVrFZI2fY88QZun/XK1xqsA7O/T9txeptvk2xHq8XSh8y33wmgVd5 y/2LC/b5Oj8XceHJX/jsI+93P+t2iwtaLGL/J8y1XHZxV+f95RFlSizFGYmGWsxFxYkA+gX1 k7gCAAA= X-CMS-MailID: 20200124112230eucas1p291726bf7d38e291fba61b48f61eee9fe X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200116144241eucas1p18dcf099873015e955d71d90712bbe9e0 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200116144241eucas1p18dcf099873015e955d71d90712bbe9e0 References: <20200116144202.12116-1-a.swigon@samsung.com> <20200116144202.12116-2-a.swigon@samsung.com> <45e28d51-27db-2faa-d633-3a3d857ecdc9@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, 2020-01-23 at 11:21 +0200, Georgi Djakov wrote: > 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: Sure, will fix. > 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 */ > > -- Artur Świgoń Samsung R&D Institute Poland Samsung Electronics