Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1735280pxx; Fri, 30 Oct 2020 18:38:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAt6NGBi986xpXDNj7AyJF+1S9vGlQmtyB2nddp/AouNsG0fPy4yRngrgDAMhY86+711vU X-Received: by 2002:a17:906:512:: with SMTP id j18mr5412180eja.370.1604108299480; Fri, 30 Oct 2020 18:38:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604108299; cv=none; d=google.com; s=arc-20160816; b=GaVnyKFL1tvd+KfKSaLjrB76UA+H4ePBcjidOK+iIW91b0Q77olWzAkB0rxS1HvB+V VwU3UHi05zSoM0jxhmIwJR0EiqAuAOvI2imrj2+ciA8pb0FVcmJU1YQ0v0ZD/4YItVoC 9WT+iyh0Rb5oaYgBNhQPRF7Wq/Er4fXxsuYXHfmjLq60Hmm4U6voMM+8x5tMxH+Tyzq9 vqmDa1T4rpKoEM2hVYlFPHbI72y/0Jq1FzuN/zrAs81vBuotKtF0+DLEl/SO6EzxAGoj rrtRKy+CBtKcCr+JrF2AyVeeUg4Ha6TUjFj+2gbc9+CIc1B+aqxlK2hvcWnuCe43Ised MKaw== 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=Ji+vW1uIAC6My2AuiKNcsdLOmEnbKRu+rsJfOquLWak=; b=lJssLDNXtPOuSEdHU/MCRgyFnAWCthg5rcxGFQ0z5MTbsPJRBGUXiwVFGUercrX9vo hVLS1kKiJHMHviLXBgB2rML4urZRoYoxnCbKskpqnqwklIg5d74o9TxMgsxE+kQCnH5o EvC8FHtzVho5LkLEjwDmNQMReQp5wf/3ZcOKfYWa1XfumID8UQKw8ZZyte325j2xCYuH YRlCdctZfYf7x1e1buHSeYhp7Uv/XZO/eon11mObzknAnGCWYQVelCOt9Sy34LVTLNvv 273eiN3CAhQoK16/2TiV4TsWA5HY010yUCuuJS9mex+iWuGQt52hT1l6a59DfYUTHh8Z Md9w== 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 e10si5605924ejl.139.2020.10.30.18.37.54; Fri, 30 Oct 2020 18:38:19 -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 S1726099AbgJaBg0 (ORCPT + 99 others); Fri, 30 Oct 2020 21:36:26 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7012 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbgJaBgZ (ORCPT ); Fri, 30 Oct 2020 21:36:25 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CNMGH6WfMzhbs6; Sat, 31 Oct 2020 09:36:23 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Sat, 31 Oct 2020 09:36:15 +0800 From: Zou Wei To: , , , CC: , , , Zou Wei Subject: [PATCH -next v2] usb: Mark sync_all_pins() with static keyword Date: Sat, 31 Oct 2020 09:48:09 +0800 Message-ID: <1604108889-15205-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: ./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 Mark it static as suggested. 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 --- v2: - Make title more precise. - Shorten the warning path. - Add period. 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