Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2336295ybk; Mon, 11 May 2020 18:58:29 -0700 (PDT) X-Google-Smtp-Source: APiQypJAuXwLkLJdFgYarX4lZp/gLJDEpDJAK1rg+Q0oYbSA3ke8B5UvmbV4dxM7x9QuWPOWJCiG X-Received: by 2002:a17:906:ce49:: with SMTP id se9mr16052115ejb.345.1589248709521; Mon, 11 May 2020 18:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589248709; cv=none; d=google.com; s=arc-20160816; b=emJNiBlTRkIo1SozgCVgn4g9PRJiDozhVlbMh3J4aX+RKWVclxMYkVxpQPSl0RRRai dEgyZ6759O0egdJGlFfCK/eyWjboann2YaJigzY6O0dDd3fTMT/0KP/B0Zil+S4W5Csb dysa+tvtISGQzpqiqUkvM99z7bXOIjQ789OQwPkCupLiyA+nnUqkUBfb3hosMA+AxbsT yZNxx3tHkgGkBetkDeRnl8d+r/HirBm6MMzzUezHANUtbsltiEwJeEIoI6bNPAHmReHS u3+o86J8NJlu55mUj2S2HlqTQtcUNBMA1HTnro8mW/330QgVByJhPWaaT6Dl2nE2C4C5 Rw/A== 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=NW7O3yyN0E3NbEP5p3afm56B4MdXYXVkc9Ijzg+o78A=; b=c5Z1cKWA9n0sfX4DtZndtgdq9lgfjsL8x7h0agjS1McZOKUSGsztCf+Hr3NL46+wzn YK3WozJXExW/L121mVg0njy71TmZbdDQMptXN32laBzzH168Z11eXBEa1Gfe4PssnzPX fvpM2PApeNMAD18Lks3lU+Wx7FjYMFBSXSiUsCyMnI5SjkdNmY8GeYan4abWtNherWRX HWOYv6uvr8U33yGNjNjLFxfCUOCX27aq2ku6Ssh14slmL/OQh9si960yZdmT9eejTmw+ LzY5varOHeaRqT7MQjxXI56DSeP7s6GOuAcKa1bI87NvgxjrYIr+zQ3zdjyvcjBSK2wu RHAA== 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 f12si6725078ejq.227.2020.05.11.18.58.06; Mon, 11 May 2020 18:58:29 -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 S1728525AbgELByS (ORCPT + 99 others); Mon, 11 May 2020 21:54:18 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:53312 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726874AbgELByR (ORCPT ); Mon, 11 May 2020 21:54:17 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id E8BA2F1F82839A34A387; Tue, 12 May 2020 09:54:15 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Tue, 12 May 2020 09:54:07 +0800 From: Samuel Zou To: , , , , , CC: , , , Samuel Zou Subject: [PATCH -next] usb: gadget: udc: atmel: Make some symbols static Date: Tue, 12 May 2020 10:00:13 +0800 Message-ID: <1589248813-105323-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 warnings: drivers/usb/gadget/udc/atmel_usba_udc.c:188:30: warning: symbol 'queue_dbg_fops' was not declared. drivers/usb/gadget/udc/atmel_usba_udc.c:196:30: warning: symbol 'regs_dbg_fops' was not declared. queue_dbg_fops and regs_dbg_fops have only call within atmel_usba_udc.c They should be static Fixes: 914a3f3b3754 ("USB: add atmel_usba_udc driver") Reported-by: Hulk Robot Signed-off-by: Samuel Zou --- drivers/usb/gadget/udc/atmel_usba_udc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index 2220034..b771a85 100644 --- a/drivers/usb/gadget/udc/atmel_usba_udc.c +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c @@ -185,7 +185,7 @@ static int regs_dbg_release(struct inode *inode, struct file *file) return 0; } -const struct file_operations queue_dbg_fops = { +static const struct file_operations queue_dbg_fops = { .owner = THIS_MODULE, .open = queue_dbg_open, .llseek = no_llseek, @@ -193,7 +193,7 @@ const struct file_operations queue_dbg_fops = { .release = queue_dbg_release, }; -const struct file_operations regs_dbg_fops = { +static const struct file_operations regs_dbg_fops = { .owner = THIS_MODULE, .open = regs_dbg_open, .llseek = generic_file_llseek, -- 2.6.2