Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1113449pxx; Fri, 30 Oct 2020 02:20:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzT49wfxZ92GyoixT8//XNWFeSbaIYyRwn1yv0AI8CCxG/ah5hNKK4EfmoSLwd+N49K4eKU X-Received: by 2002:a17:906:389b:: with SMTP id q27mr610739ejd.386.1604049617196; Fri, 30 Oct 2020 02:20:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604049617; cv=none; d=google.com; s=arc-20160816; b=A9tDkXJBc+snUaaO652u+ztq9S+9oa6erDFipvg3UKP3MsvBs8O7rSDYeW7f7M/5hI 5uvP+A0+Eb48YugLe2Uh0XO0N8N1NcHEoUqObYzM6F8rpBGSU9jZtoBxSDTg7YXNLLmA 3I2rfdYpOU5GgLUCwFZC2j7PgNl87+/g3jMZKN76ARW/dWwFrjoqC4BM5Sb8BasAPPVZ 6IeKE0ED9UjrJkDbnUzhyUrXvMXhq3bWRxJguJhrm8G2d8BnUd+Tvz9mW/tYNi8/Xb0W hBAmdph5qDFRHYEIQzutshaIxfhJbxEXZ/VUmyqrwkc7uUsp/rpR1mVIux6KxhZ8ncx2 TIyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=5Bf6XOPwEan5Zm3qB8Rcsma4tlucOKon9K30V+AIvFM=; b=uvKrGTA1+Gg8v6FG7eRaLh1gFehOvKh1cXdFQxpLjoqQe5d27DX1/IROW7bsEj0LdN k5jKlhnMaFtCy4c6pJzVOP29jUinvpCdYhDi14hRtIMTLT/Z5vLTMVhDcY8YzYZCIitA DhDrCWUjPQpgHA0T95B8MUg2OLY5AozQdwOAiVjX6u4k+3JWHMkGN7tuq/MRxLltF+9A 5TVfCo/KKPJfMdt58GiUQrjEXP7qGwlX6CeaR3kpZcFb3DZW9BhHEePDvoPW8G2VpIXb dyVS14BLAl8xtiZxQ9IZ7LU8DMxjBM9niBdq5baJduIZbW0MhfZxURhSUcs71bZHAX7h CDhw== 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 b22si4169389edr.294.2020.10.30.02.19.54; Fri, 30 Oct 2020 02:20:17 -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 S1726212AbgJ3JQf (ORCPT + 99 others); Fri, 30 Oct 2020 05:16:35 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7105 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbgJ3JQf (ORCPT ); Fri, 30 Oct 2020 05:16:35 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CMxWg5XM4zLrQN; Fri, 30 Oct 2020 17:16:31 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Fri, 30 Oct 2020 17:16:21 +0800 From: Zou Wei To: , , , CC: , , , Zou Wei Subject: [PATCH -next] usb: Make sync_all_pins static Date: Fri, 30 Oct 2020 17:28:17 +0800 Message-ID: <1604050097-91302-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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: drivers/usb/misc/brcmstb-usb-pinmap.c:219:6: warning: symbol 'sync_all_pins' was not declared. Should it be static? The sync_all_pins has only call site within brcmstb-usb-pinmap.c It should be static Fixes: 517c4c44b323 ("usb: Add driver to allow any GPIO to be used for 7211 USB signals") Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/usb/misc/brcmstb-usb-pinmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/misc/brcmstb-usb-pinmap.c b/drivers/usb/misc/brcmstb-usb-pinmap.c index 02144c3..cc9618d 100644 --- a/drivers/usb/misc/brcmstb-usb-pinmap.c +++ b/drivers/usb/misc/brcmstb-usb-pinmap.c @@ -216,7 +216,7 @@ static int parse_pins(struct device *dev, struct device_node *dn, return 0; } -void sync_all_pins(struct brcmstb_usb_pinmap_data *pdata) +static void sync_all_pins(struct brcmstb_usb_pinmap_data *pdata) { struct out_pin *pout; struct in_pin *pin; -- 2.6.2