Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1778200ybk; Mon, 11 May 2020 04:08:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDSg39N08+400xaY3eQbpZeOh5IGMswAQ5DHxCq9YJRj9guhUpHXjsKov4T6wr2eiTlSs5 X-Received: by 2002:a50:d715:: with SMTP id t21mr4180494edi.194.1589195336302; Mon, 11 May 2020 04:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589195336; cv=none; d=google.com; s=arc-20160816; b=b1ms58WRtkjTIjn/kL6qa+zVj181xzpznoBlOf1ghJ72FuHi4X3RcEdpB+ZpJz4vBt Xf4zM7Yn9IeXHDRe/D6BY+HcZLaF+H9c7iZLM5lsZCSXRZqxFxH3EyAHkso/ZpBeB0Vs n8rYdxas5iBJbdUdf8Turmyf0s1QlKOoGp1HWjXaOEFETEVS672YmKxXZf2cFTLkynJf /ilGet/3eRYHVgvXF5l7lh4VgKdqPllraguHtu4xkg0op9wonhXaeTaseOexJ/6A20CD wWzQFIWaZECNty/5VA0uLbzk4ZdPbR8lCfWDLTkkOyZ3R5/qjByfk/myJqliO97mT/8B QaMA== 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=BlbRDDHuDDkFIIa8Uxa/gjFTDOzs9TflQdI8Y1JJh9Q=; b=oSikaQfHjV7CPFXdx5iVHraUVI7XEfpDSYFIEm9MwurYKH+kVm0/PQMWsgL5sz3Vmq G0MAXsXYPKMKw7ql4qF8sBZkUVbj2LotG3W3boc9iIzDzFEzuDk4cfUdb+2rJaYJm5u8 0cE+l9MY9L/ddM2bVJ3VimHbbQ1N2aqwDQj7EcfomLPQ3RQ39vBcXfO4EOlFoGI3uBuZ +EyjDY7GgU0F1bsAtNGrvx9g7NZTklpczfv0Mwx+j+MgsK0uLVejXmQCNN6HabQxtTHt V4/UpsS7ZeKaJzpL4hBt5/SE9icuAPkdQuF1nDSk/Z+GHCODrPRGK4NppA1cvEMciuhQ l6Sg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n8si5924946edb.372.2020.05.11.04.08.33; Mon, 11 May 2020 04:08:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729441AbgEKLHJ (ORCPT + 99 others); Mon, 11 May 2020 07:07:09 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:35180 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728638AbgEKLHJ (ORCPT ); Mon, 11 May 2020 07:07:09 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id D74FF84D37ED8A17CD91; Mon, 11 May 2020 19:07:03 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Mon, 11 May 2020 19:06:55 +0800 From: Samuel Zou To: CC: , , , , Samuel Zou Subject: [PATCH -next] power: supply: Make bd9995x_chip_reset static Date: Mon, 11 May 2020 19:12:57 +0800 Message-ID: <1589195577-8723-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: drivers/power/supply/bd99954-charger.c:1028:6: warning: symbol 'bd9995x_chip_reset' was not declared. The bd9995x_chip_reset() has only one call site within bd99954-charger.c It should be static Fixes: 0902f8366491 ("power: supply: Support ROHM bd99954 charger") Reported-by: Hulk Robot Signed-off-by: Samuel Zou --- drivers/power/supply/bd99954-charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/bd99954-charger.c b/drivers/power/supply/bd99954-charger.c index 3da39c7..ffd8bfa 100644 --- a/drivers/power/supply/bd99954-charger.c +++ b/drivers/power/supply/bd99954-charger.c @@ -1025,7 +1025,7 @@ static int bd9995x_fw_probe(struct bd9995x_device *bd) return 0; } -void bd9995x_chip_reset(void *bd) +static void bd9995x_chip_reset(void *bd) { __bd9995x_chip_reset(bd); } -- 2.6.2