From mboxrd@z Thu Jan 1 00:00:00 1970 From: Raju P L S S S N Subject: Re: [PATCH v10 04/10] drivers: qcom: rpmh: add RPMH helper functions Date: Fri, 15 Jun 2018 11:53:28 +0530 Message-ID: References: <1528737949-17495-1-git-send-email-rplsssn@codeaurora.org> <1528737949-17495-5-git-send-email-rplsssn@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Doug Anderson Cc: Andy Gross , David Brown , linux-arm-msm@vger.kernel.org, "open list:ARM/QUALCOMM SUPPORT" , Rajendra Nayak , Bjorn Andersson , LKML , Stephen Boyd , Evan Green , Matthias Kaehlcke , Lina Iyer List-Id: linux-arm-msm@vger.kernel.org Hi, On 6/14/2018 2:39 AM, Doug Anderson wrote: > Hi, > > On Mon, Jun 11, 2018 at 10:25 AM, Raju P L S S S N > wrote: >> +void rpmh_tx_done(const struct tcs_request *msg, int r) >> +{ >> + struct rpmh_request *rpm_msg = container_of(msg, struct rpmh_request, >> + msg); >> + struct completion *compl = rpm_msg->completion; >> + >> + rpm_msg->err = r; >> + >> + if (r) >> + dev_err(rpm_msg->dev, "RPMH TX fail in msg addr=%#x, err=%d\n", >> + rpm_msg->msg.cmds[0].addr, r); >> + >> + /* Signal the blocking thread we are done */ >> + if (compl) >> + complete(compl); >> +} >> +EXPORT_SYMBOL(rpmh_tx_done); > > You're back to too many EXPORT_SYMBOL's again. Just use this rule of thumb: > > * If it's static, no EXPORT_SYMBOL. > > * If the prototype is in "rpmh-internal.h", no EXPORT_SYMBOL. > > * If the prototype is in "rpmh.h", then yes EXPORT_SYMBOL. > > In the case of rpmh_tx_done: the protype is in rpmh-internal.h > > > To fix, squash in crosreview.com/1099841 > > > -Doug > Sure. Thanks for review.