Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3653221ybg; Mon, 28 Oct 2019 16:39:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXtZQ54T6P8iZFRrY6N5F7JuUY8uZMCuBWW/e+QMDQLfBsyfoat1l67rItlUrY8bkAGFGc X-Received: by 2002:aa7:da52:: with SMTP id w18mr11201434eds.205.1572305959693; Mon, 28 Oct 2019 16:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572305959; cv=none; d=google.com; s=arc-20160816; b=PzqXOCEdXo6vwOvSDfWx+zqtzaPNXPviLh7woAFIhgJtEw6+cHbfE4qHxBswWpucPf Z0r6Oc/fPFl0Kkmg6CRHMiVvDvQqfcgL6qAHj6++bbg4VvbvRj0KF5Am1iIaN719RQiT kkDoyyEKhERJFDi61hvzd8Je554KE+RzDWmnNBoZ12WopiFtxL174fUfJeZZ9IROOh17 OSTysk7Fjz61yxkbuhbX4148jnYBtojRR1RnH/ExpaSdBXqd8flODBJF7MHUneYcOBfx YA6X7jfVvGkEunr72rKfiK1RZegrp6RmxP7/SN4TyZaO8HR9/42XWpQHmjW5XL9RZVpz kq2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lUK3hZH3YWgrL85Xeg+G4CX2M4gTumoLZa+eHEQ6bHg=; b=fINF/E3cwaE+BV4/+/FxunGwAfdiJj0GNZd9wv5gBlkMtlC3fVuxzy3fWwJIwmhdJA w4eBXEbUuJgjswcbMmGms2pFpDBy1tLWnR0zLH+jrqA/mx2PmRXLB8tNMYvhgdhKNgQD iIMrJrKswGjllNzx0HDeLp5tUhjEJOcaok35TyTpyBWR6UcQ8HObK635WjJNNXihXneB ewjMYMnlAOwuL/jhGjc2qoBMddl9rdzwQqVpXFVbsgVdQ3s/tBQhPvqsjGLU2wf8xQTy /XVgSxTNyga8PQM0jIlTErWfNwoY78JDlXCvQva2nBmsxLnrCPp77BY8Pq26cq/rDXKd YUQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MVearnut; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3si7085815ejw.34.2019.10.28.16.38.56; Mon, 28 Oct 2019 16:39:19 -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=@kernel.org header.s=default header.b=MVearnut; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733277AbfJ1V40 (ORCPT + 99 others); Mon, 28 Oct 2019 17:56:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:56884 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729738AbfJ1V40 (ORCPT ); Mon, 28 Oct 2019 17:56:26 -0400 Received: from earth.universe (tmo-096-224.customers.d1-online.com [80.187.96.224]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8B46121479; Mon, 28 Oct 2019 21:56:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572299785; bh=8z6cLakerOz4WB/lec4BSVSyFlt8nfGEwkqPr1hMtkU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MVearnut9RaAziRb0P2YELOLgsjrczgHMXYyaqfgG2xOu/NR9DtEtGIjy3jKwL6G3 A+JfyyXKZVOMfCNj9G3krwujddqTbl7+H9P2Wnor+PEW2PBmER9xZFybzigrM5SsyS 6GReker5+FrR86XgsovxdbhCRIhUL4ZO0TOeA4dg= Received: by earth.universe (Postfix, from userid 1000) id D7E863C09B2; Mon, 28 Oct 2019 22:56:15 +0100 (CET) Date: Mon, 28 Oct 2019 22:56:15 +0100 From: Sebastian Reichel To: zhong jiang Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] power: supply: cpcap-charger: Make cpcap_charger_voltage_to_regval static Message-ID: <20191028215615.3efezzsc5gji722q@earth.universe> References: <1571672407-58950-1-git-send-email-zhongjiang@huawei.com> <5DB71465.6050203@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nnsnvouks6a7nqnj" Content-Disposition: inline In-Reply-To: <5DB71465.6050203@huawei.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nnsnvouks6a7nqnj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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_char= ger_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/suppl= y/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); > > } > > =20 > > -int cpcap_charger_voltage_to_regval(int voltage) > > +static int cpcap_charger_voltage_to_regval(int voltage) > > { > > int offset; > > =20 >=20 >=20 --nnsnvouks6a7nqnj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAl23Y/wACgkQ2O7X88g7 +prsiA/8CFPmGfF8s7d5QI8hJ1R1KnjkOc5kHSIx954UNaHfA/gdjA3jy4oqjDDM t6nIZUWphJerbqGPfOZIwOQdOhAmjTV5LAtRLkg+IVxEvF2jQXYMaM9Ip5Nke35a pULPnkSeWARvMFZZYKnxG6OPe6AL8eqRaHBXRWC/Gd0XL5ndqW5SWgDeNOubmJtj lRmJcVh8s5IB3FafOTlTGA5GQosqrxIa5fWrXL3d/bC0gE9WXa5BKw0XAgv9OSr2 dDJBpMemDCtQmXcmEN7LFg5OD4PUChdL2L60FOPpJnlpcktqNMUdUJ3S9dGuG9RZ QmYnv2zyC9PRWf0pH0K6ovLsqQrIx0SQm9+PK6jSTyJH/KFuaeHCsdO17wq/BetW VBZ00Bh+1hXovCQ3lwb6cIqh22hddY0KJiABOfd2kG6cw7tphLyYK8s4YQYYOBrh GmHU2iLak+inpvB9IX/EtbCwWgahRnI2Hxp9LS15nxt4pyg1Pj+A1264IzPE6EMl t43BGPt3MSjDIXlUDaR+MV3ibyCzwiq6j3tfihvNWcEiDQgdGSBANAvAXduo8po7 MtgkWlgBvnGSrfcdP60aKblFEqUXQUFCCzTx59j1h6Z6WUckHfZYN55BOsh9LkwW VNAuWqJDP9iaCNz49ove8YjDuuCq6T5JH+jCPusa6Pg1obbvbYw= =NLra -----END PGP SIGNATURE----- --nnsnvouks6a7nqnj--