Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3519341ybg; Mon, 28 Oct 2019 14:14:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAjoSEvz+jwTmijpfq67GriJI84BqsCYrTGeQyMISZVFrLfN6zv6uT602FfcdL5DE2Ks6E X-Received: by 2002:a17:906:218a:: with SMTP id 10mr18680200eju.38.1572297265449; Mon, 28 Oct 2019 14:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572297265; cv=none; d=google.com; s=arc-20160816; b=Vf0LVvGZECCuGcGKpOqNNUIPHRXTPSXH9Pz2hZ5Vdon66mdcujwOSa4OCAxX+8j4SG TecowS5A4tB91uVUPnvS//e/4c7ifhyRVxUgA5mSGdpPmA2i0P45Gb51ihxReMA+R3og L4SYJNwwOMs9IbYjVfTKMudVjRssGZSQvwX1dc77UihSGMaYOqYF6JyHh2Uvxnl202ii QAHYzPzLZc4Gpg96qCX0MtfPXcL9eHAjObe9fZmrQy+uirOh6NY1stkMwhxNXG5I7QAm xhCPADKLgXjVFvfFUIYfvw8iRYa4R5PsS7WbxJH/D8gixdfWLJeM1WWioSHVO1Sc0x1i oFrw== 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:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id; bh=+Z18Ztgyi0Ne0qq1arhpM8fAB2xg5zmilHR2BEkU4Vk=; b=WXWHxYjpHCNXjiurLNQIkEAfc7ks8Q5AynHM9HjmpO3aRWV8eLDyQ5bLrEF7jBQDCr /Bq6sYNC0l/7AoWnAkLrkbYbKUv/xG4gAQtHK47pLX+R2S3klCmLAm/i0eXDpRMhzINf we8Wxo8Nv9+w92Yl2aPDEYYO9m4gAxmbuoA8S/L0OJBhZghXXXKnL07RMAqwWIr02eRa uGAB63iEir4aK6JOohU7tSwV+X6L8gCosJ9a8blatRyQZsWs4MdMgVxFcBC0tt/pYcrS rtNULsnHD+5QfVZs2zaoy/wIfjaeKqEW5DlpJ7YSscyGtNKLzM5VvPpTzRm02/HLG/sH 3E/A== ARC-Authentication-Results: i=1; mx.google.com; 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 x25si6968110eju.357.2019.10.28.14.14.01; Mon, 28 Oct 2019 14:14:25 -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; 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 S1732021AbfJ1QQq (ORCPT + 99 others); Mon, 28 Oct 2019 12:16:46 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:39848 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729798AbfJ1QQq (ORCPT ); Mon, 28 Oct 2019 12:16:46 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id CFDE98331184E8A44F8D; Tue, 29 Oct 2019 00:16:44 +0800 (CST) Received: from [127.0.0.1] (10.133.219.218) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Tue, 29 Oct 2019 00:16:37 +0800 Message-ID: <5DB71465.6050203@huawei.com> Date: Tue, 29 Oct 2019 00:16:37 +0800 From: zhong jiang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: zhong jiang CC: , , Subject: Re: [PATCH] power: supply: cpcap-charger: Make cpcap_charger_voltage_to_regval static References: <1571672407-58950-1-git-send-email-zhongjiang@huawei.com> In-Reply-To: <1571672407-58950-1-git-send-email-zhongjiang@huawei.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.133.219.218] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ping. On 2019/10/21 23:40, zhong jiang wrote: > The GCC complains the following case when compiling kernel. > > drivers/power/supply/cpcap-charger.c:563:5: warning: symbol 'cpcap_charger_voltage_to_regval' was not declared. Should it be static? > > Signed-off-by: zhong jiang > --- > drivers/power/supply/cpcap-charger.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/power/supply/cpcap-charger.c b/drivers/power/supply/cpcap-charger.c > index 40d96b8..c0d452e 100644 > --- a/drivers/power/supply/cpcap-charger.c > +++ b/drivers/power/supply/cpcap-charger.c > @@ -560,7 +560,7 @@ static void cpcap_charger_update_state(struct cpcap_charger_ddata *ddata, > dev_dbg(ddata->dev, "state: %s\n", status); > } > > -int cpcap_charger_voltage_to_regval(int voltage) > +static int cpcap_charger_voltage_to_regval(int voltage) > { > int offset; >