Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp416102imm; Thu, 14 Jun 2018 23:24:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK2ZgIb4Prrak8Nupzzolhf4XHL0t6VF7/iBnkiSwvKrwCAMB4GExXG/mfvqfC/nH64jtRY X-Received: by 2002:a17:902:7202:: with SMTP id ba2-v6mr450142plb.119.1529043858888; Thu, 14 Jun 2018 23:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529043858; cv=none; d=google.com; s=arc-20160816; b=0/WHaXLhbKWcxYmiLErRm+aUiGwSjXPOD/Xxw1VvvtB8cz6FQ5H7zdWKPkvMtyZeGH vjg52jkyOzTHFeDasRDFlx5VV/B5PO2AjHGw7bMnenqhjY0xz6sabS21PDRmWozjA7Iv EbphmDIym5UFJ/aUU6uCe+RTa/3ZBO6fJig6eX96S94MzuROCBje2E/55+FPr51LyJlV xEbgmX1AqY8guYxAyO2weQbuu2uVBhiuH9VrMhH7PP4GlSy+i/1YoXMQZiD5sCsnjJva doJk9cQG6XYGhelMRR3wDDcYfRHaHjp3MthylY8AYn8WBIlZkCCgYAWbAwxsoYXmylq+ ruuQ== 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:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=pLLdgwRwolsLF312Ev3Xvvbh0FRqfAkBA9wYqGUEqNY=; b=nYJ8hPDzZseOPRZjq7oJ4eSibxz9KzZe2HAsEoI9tdZiFdlzKJM4xgfJz5ve2gX2bK 3OCkg4bZyp7RJMWM6fxxCeX1YBbSWP9lQ8BWrBIB7XEx81/fdGYLLy+slkIgJhHJ3/1F a32Bs/cKRid8myfg0nbBVFQu1wV3d5mW2ao8tL2JA89O1XGiod/M1Yf8n95MjA0IyUzY bG9rIcRjY1Br8fcVKQ++tAzRRMUDaqMJ5HlfjrfG39jhImRYFw54DmtIMIoMQRBSgETi 9KJQfYAy77BmueAyQVLUOu5wdNcvc/gSbCKwwhUwbZbvTdTiI3TENQakXQru5/IdORn7 eEIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=JnqL0L58; dkim=pass header.i=@codeaurora.org header.s=default header.b=oPMeGcq9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17-v6si5851906pgf.352.2018.06.14.23.24.03; Thu, 14 Jun 2018 23:24:18 -0700 (PDT) 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=@codeaurora.org header.s=default header.b=JnqL0L58; dkim=pass header.i=@codeaurora.org header.s=default header.b=oPMeGcq9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755823AbeFOGXj (ORCPT + 99 others); Fri, 15 Jun 2018 02:23:39 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45238 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755727AbeFOGXg (ORCPT ); Fri, 15 Jun 2018 02:23:36 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 29ED9607E4; Fri, 15 Jun 2018 06:23:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529043816; bh=YhzXb8vRHTNLHIlLoUp39CIBw9MyapYUW+ARof+gYMU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=JnqL0L585BBoCloFKDVLzIIwvI+C1SCA6eYTP1B5yN3Xm3fXaqdW0O5mP5EFBDpdm WQfoeWEdtMZ7KxoLvfo2rGJzZV5Ynbn0xhE/hRtU6SPsDKZytxcAxFUvLbgyS0mG4J zJccTdzrC7MMgOmxKZVrsxo04y8OKqZhgzO3DNHA= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,FROM_LOCAL_NOVOWEL,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.206.16.80] (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rplsssn@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1D942606DB; Fri, 15 Jun 2018 06:23:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529043815; bh=YhzXb8vRHTNLHIlLoUp39CIBw9MyapYUW+ARof+gYMU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=oPMeGcq9UbERjT+KZpjZvWN/IhCXu+PhdAOyFJFEgCQhj1CRaQwNoatbTHPyBRsM4 OaE4XnuFlD7MC+2s1FSgU3MIL55ijXLB9BHjVCVTPHfwdYPWFFTzxreK7PZLgMZF0Q x4o5iA++vmpJuyjooio6SFPTY2c95eNJqhSsomb0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1D942606DB Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=rplsssn@codeaurora.org Subject: Re: [PATCH v10 04/10] drivers: qcom: rpmh: add RPMH helper functions 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 References: <1528737949-17495-1-git-send-email-rplsssn@codeaurora.org> <1528737949-17495-5-git-send-email-rplsssn@codeaurora.org> From: Raju P L S S S N Message-ID: Date: Fri, 15 Jun 2018 11:53:28 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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.