Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3147750pxu; Tue, 8 Dec 2020 04:56:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJww/UtKl3Z2OLfSeCKI6pcZ2UR7uEK9g+nglsWy58GCQlCzVn35vW9Ar8EOcqTS3zU9ro7d X-Received: by 2002:a05:6402:1d15:: with SMTP id dg21mr24104275edb.280.1607432191625; Tue, 08 Dec 2020 04:56:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607432191; cv=none; d=google.com; s=arc-20160816; b=vnbBj2E5q77/ZqCDnzdPX7CNHR/I/nECNPOVS7n7wgZi6swApuIhwWw9qjGR8S7nyA 2acn1XxlhGnHlx/AsI5ZaTK8EXeAO4Ju3fXzYgj7wNxf8Em00dBKh+akKhMh+RhIFVxy 4igbVArw5VxgpOuzCbzGiV1CSM9Bb7GZ84Y+ShQpOjy/B1FDjiIKnJZ2uxaXrusRLvZP GoGMo5STu4/RsOPfCev8b6UpH4t21tiCR8WzXbfwIZTI0BBfXoRrobpBqAeF6tIOmW5j FoZRa2J2wowei+bci4Hka1aHeQ5tQzUSR6cNkQT5b9hcXE9p6yTGkPItRKHwrr5+6Gak KSJQ== 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=0mDqoRej90P01VJ5Ea1dFG/gAtmq/ZJvc6qkBax5hg0=; b=a2q6f1P5OZfv+MrmYmwIsjjADKIblmuw2AERqnJHba+BDimtsHx7sAo3jjri0epEBX +EAkddv0v2OXBkqbdXIJuWdM+hgcwTemKyYnID5aoqOUOm8HrT4wz6VopBXQ1FB5aEdJ 1f0I7dDe1yzPxHM3E2andI+OWQmG4RQ/S2Z7AO9/rty7su94L+6715NDGIJ5woJfvME+ 1zx8bCC3cUwVbnw8yq+GeYeT066prnnCzoXjLWlumMCuq2iOqaXR5KSqK97U3jU4IpBJ vXvfaUeh4Y6ZkEWaIpjM6g56uZplyqwcLX8ggQJMK7QhmlKTBsrh8yTfgEINF+qvDMni hApw== 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 h21si10212386edq.302.2020.12.08.04.56.08; Tue, 08 Dec 2020 04:56:31 -0800 (PST) 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 S1729334AbgLHMUJ (ORCPT + 99 others); Tue, 8 Dec 2020 07:20:09 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:8966 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725803AbgLHMUJ (ORCPT ); Tue, 8 Dec 2020 07:20:09 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4CqzkG5jBvzhpHD; Tue, 8 Dec 2020 20:19:02 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Tue, 8 Dec 2020 20:19:16 +0800 From: Zou Wei To: , CC: , , Zou Wei Subject: [PATCH -next] usb: cdnsp: Mark cdnsp_gadget_ops with static keyword Date: Tue, 8 Dec 2020 20:30:49 +0800 Message-ID: <1607430649-116383-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/cdns3/cdnsp-gadget.c:1546:29: warning: symbol 'cdnsp_gadget_ops' was not declared. Should it be static? Signed-off-by: Zou Wei --- drivers/usb/cdns3/cdnsp-gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/cdns3/cdnsp-gadget.c b/drivers/usb/cdns3/cdnsp-gadget.c index 9716273..c7c5d0a 100644 --- a/drivers/usb/cdns3/cdnsp-gadget.c +++ b/drivers/usb/cdns3/cdnsp-gadget.c @@ -1543,7 +1543,7 @@ static int cdnsp_gadget_pullup(struct usb_gadget *gadget, int is_on) return 0; } -const struct usb_gadget_ops cdnsp_gadget_ops = { +static const struct usb_gadget_ops cdnsp_gadget_ops = { .get_frame = cdnsp_gadget_get_frame, .wakeup = cdnsp_gadget_wakeup, .set_selfpowered = cdnsp_gadget_set_selfpowered, -- 2.6.2