Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4012942ybg; Tue, 29 Oct 2019 00:26:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUgTsaynPPJS/Knor/uUd9LOT1e4UqHcSHUQ+ZigC5hAgkJpth5dR+MpQKbki6HawIlF9M X-Received: by 2002:a17:906:29ce:: with SMTP id y14mr1758633eje.271.1572333975745; Tue, 29 Oct 2019 00:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572333975; cv=none; d=google.com; s=arc-20160816; b=fdDEIEZoKQRoepTGwleDkX7QvyWoOtgLb4oW2R7vgLvFpczTXyQuKNocHD0mx+ShFD 0Wywt6LgsCk6Nt22+6QT9UmUuLPnTH+EumBDQs67wjLL0+32SKMwkm0x0Ez5xZLdraWE bE3QBfPFGvIP10duXD8/jNrVFZMHBhkk4IIxHTrNlQ1tqrfoZk4oRbuvU0xsKT4JiOnJ 2cbYLRkOhefbJMx95ud37BUDG/VI1A1gRlHSkP1bwYjHp+UMBSyrMT5IlUB4zdq5mlUm WSITlLDKb6Z57P3hqKsJh9j6rcP20CwFQIDe87p15qHrWlPE6VUp8XxjYrjw6L6K6c8K B74g== 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=kZ7uQAqKWoRzMHf//yPZpEhJJTEy/9be21CMh1SrFB0=; b=K0a7VOq5HxIF1QA3TMdE4PBwkeNbbvNW2Rdeem5up+Er4jmDj0XadcPw87jQrumqCo Jm58QC+X4LE4EML+ocECJJCyoQpZgRIUCH2N9nfb0XJayxlkRRkG96jVQtjUBFpWi2yz tzY91jPB2rjS0HnGvREzesk/Gt5q32MmTERIMAY6bHiSNSQo9sHIzMXbHW/yRUdPDg6O jWc2qM5BoSWQfFKdVHuP4wv6UhPEd2T+VnDE8W9f806JCuc9Olue1Px2LJi4xb5VOq8A cKvYj0tqQAZMl5McjNjBAUYksKvZSVU7YgzmCZ9gBjqmlcGZWS2w9LZBaF3EhzGuTwlB 04uQ== 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 e50si9609438ede.59.2019.10.29.00.25.52; Tue, 29 Oct 2019 00:26:15 -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 S1731229AbfJ2DJM (ORCPT + 99 others); Mon, 28 Oct 2019 23:09:12 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:58184 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730831AbfJ2DJL (ORCPT ); Mon, 28 Oct 2019 23:09:11 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id BFB39DF489B2BDBFAD2F; Tue, 29 Oct 2019 11:09:08 +0800 (CST) Received: from [127.0.0.1] (10.133.219.218) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Tue, 29 Oct 2019 11:09:07 +0800 Message-ID: <5DB7AD52.7090104@huawei.com> Date: Tue, 29 Oct 2019 11:09:06 +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: Sebastian Reichel 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> <5DB71465.6050203@huawei.com> <20191028215615.3efezzsc5gji722q@earth.universe> In-Reply-To: <20191028215615.3efezzsc5gji722q@earth.universe> 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 Sorry, I forget that. Thanks, zhogn jiang On 2019/10/29 5:56, Sebastian Reichel wrote: > Hi, > > https://lkml.org/lkml/2019/10/21/1018 > > That's e3da2ce04e12 to be specific. > > -- Sebastian > > On Tue, Oct 29, 2019 at 12:16:37AM +0800, zhong jiang wrote: >> 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; >>> >>