Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4422706ybg; Mon, 21 Oct 2019 08:47:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTXsehzpP7EhaZ9edHZL2gvJT+H3D0yWVEVXaqnqifjVHupzIMnZk/MVsO47uEhSDmf/sP X-Received: by 2002:a17:906:f15:: with SMTP id z21mr23017449eji.119.1571672820977; Mon, 21 Oct 2019 08:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571672820; cv=none; d=google.com; s=arc-20160816; b=NSHiWoQPgTKKkKH3uFwlm9la2cWHdhchoJ8w76bnNvBx+qjvedBIOLUkC/Dpy2+jQX fQAqOwdElDDNyotSkSQdhg0jnL7zxX83yMQGEcULv0D8zDS2/EIOFiEd41Yqc9aFZNUn pvjr9HFOUH9clRta1WfDXEPJk6mt+s1YA2+lHe/dSgorzxySwRHaiWSuB2NUJBQq7I4t pYDHPCv0S89An4i7tIJ+pKRHoYDdxXRsIxQxkqN1MJ18pr7UTivLjnxZzZ2YfpDtfWEf BNKQTvIz7WhlElxQ6PSqr0GuKD2UNMhObg6EAJN4gngtCUJFZw45PunSsW4X57lHweM6 9dfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=5xumHGkoGxhJj82Igq1XJGrkTrRxILYyVVKmYoy5yH4=; b=0g9B9ur3xYh4IjIhtVUjjtFCbUImJwvozBiNfMtD6bGF7AbfsvtouurfjMzp0KG8u1 mKUNu4TpujSvHUyJFREcGYNhIC9L60UUMlvQB5E13tSPzC7iKpTZQ6cBcrbyC4/BNXPF L0IBNTvSXrVrrjCcRU21qOqQA3MTSdzZO2di5Fh0n8QFzyde+kXA2P3YXWhrHw44p9Pr YU/cCBviQFVgfM1Xz3izgV2qW+M/J5mBzSIk8MtCWgRNwwZvA4FNF02aJj5nvEj+q496 8RK1450LpBsg1jXqbcRw2LIj2J9ngvYl75cuqD3WGH7rjOE/1S572V7gKZ+DXjO/xxT6 ROrA== 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 i10si10506170ede.101.2019.10.21.08.46.37; Mon, 21 Oct 2019 08:47:00 -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 S1729632AbfJUPoH (ORCPT + 99 others); Mon, 21 Oct 2019 11:44:07 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:49026 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726289AbfJUPoH (ORCPT ); Mon, 21 Oct 2019 11:44:07 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4C2A82344871C2782850; Mon, 21 Oct 2019 23:44:02 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Mon, 21 Oct 2019 23:43:53 +0800 From: zhong jiang To: CC: , , Subject: [PATCH] power: supply: cpcap-charger: Make cpcap_charger_voltage_to_regval static Date: Mon, 21 Oct 2019 23:40:07 +0800 Message-ID: <1571672407-58950-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 1.7.12.4