From patchwork Fri Aug 4 13:55:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 131197 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:44a:b0:3f2:4152:657d with SMTP id ez10csp298254vqb; Fri, 4 Aug 2023 07:23:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGvT++2yYt9N0KbOtL0BiCLRt64ZWzJmOSKUEM8W94cQB1h3iLe6stxeKTxaLv4QceWBXj0 X-Received: by 2002:aa7:c745:0:b0:51e:1040:adc3 with SMTP id c5-20020aa7c745000000b0051e1040adc3mr1513543eds.33.1691159012442; Fri, 04 Aug 2023 07:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691159012; cv=none; d=google.com; s=arc-20160816; b=CnEEX2Dhb4gKCN24E6UR3zVkLFwHbt6P+yrZzKUu0tthdDLkT/v42X3RbmMsVU3SWp WTiK0FSKikYbFhRlN91wAEXCtPNfrI7gG3Mv2Rqb+J/5ndJxY0tBPf+5VF+6ba6eN61L E1RTdXO33qdFIoWpbD+5edzI/S0T97Lv/THhWRHsyJnRobAB2n7Xq1yeM4CvXsCwQfSG +ep12hiyV6dE/qqtqWq8Yrju7jIUJJY5ArY+3Ji3CakL9iEJBfKyviOgm8tzF+xWjeQu RBtKmz+byQvcVqMxiz9JW9OG8nOLf0jRRaN3McQta69b56U+qWZW7Pz4dovuMXfy0XSd Eo4A== 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=DUg8Wh49D2wJIdjXg102V/GbvVxoASZZ1FffDsf9HAA=; fh=KciNfe8ENHCdkgcUrb4D/gjifrG6rWu2hKO3cHDaqz8=; b=JxJQitTKc5yIkVI71hVKEcSdlj5GPDjK5+qxkq2YmDSpXnTkytSE52LX98W5eS7i89 Agu94Am705bjPMT8+rENzUdtBSLdk1bp3MDrooDOQ5ZtjdNYZs0ZsB1x15EpPRsqHOzL LVKE1VQmTNW1r3WAv6UyiUPvRRnvv8blarXgWV23fTN1VoDkTxOl+I2RCHK/NvJaCyR0 zd3ggaraj78CuiL2GtzDUq+hcLEItYH0ji4oEoDv21CDmuCJmBaOzFEFoaBq4qqnkyGy eTO2rx6YxaGgr2xUAwPht7dtLa3oexN9yFVW8dKG78uG+41M4+D47T/x8bkqIDJv4mL7 GEhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r24-20020a056402035800b005230df1ba18si1670411edw.207.2023.08.04.07.22.48; Fri, 04 Aug 2023 07:23:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230104AbjHDNzk (ORCPT + 99 others); Fri, 4 Aug 2023 09:55:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbjHDNzi (ORCPT ); Fri, 4 Aug 2023 09:55:38 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BD0FCC; Fri, 4 Aug 2023 06:55:37 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RHRxG1MSSz1Z1S8; Fri, 4 Aug 2023 21:52:50 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 4 Aug 2023 21:55:34 +0800 From: Yue Haibing To: , CC: , , Subject: [PATCH -next] xhci: Remove unused function declarations Date: Fri, 4 Aug 2023 21:55:20 +0800 Message-ID: <20230804135520.20964-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773308752981548212 X-GMAIL-MSGID: 1773308752981548212 Commit 674f8438c121 ("xhci: split handling halted endpoints into two steps") remove xhci_cleanup_stalled_ring() but leave declaration. And commit 25355e046d29 ("xhci: use generic command timer for stop endpoint commands.") left behind xhci_stop_endpoint_command_watchdog(). Commit b17a57f89f69 ("xhci: Refactor interrupter code for initial multi interrupter support.") leave xhci_free_erst() declaration. Signed-off-by: Yue Haibing --- drivers/usb/host/xhci.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 7e282b4522c0..4cae1d4b7a86 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -2084,7 +2084,6 @@ int xhci_alloc_erst(struct xhci_hcd *xhci, gfp_t flags); void xhci_initialize_ring_info(struct xhci_ring *ring, unsigned int cycle_state); -void xhci_free_erst(struct xhci_hcd *xhci, struct xhci_erst *erst); void xhci_free_endpoint_ring(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev, unsigned int ep_index); @@ -2184,10 +2183,6 @@ int xhci_queue_reset_ep(struct xhci_hcd *xhci, struct xhci_command *cmd, enum xhci_ep_reset_type reset_type); int xhci_queue_reset_device(struct xhci_hcd *xhci, struct xhci_command *cmd, u32 slot_id); -void xhci_cleanup_stalled_ring(struct xhci_hcd *xhci, unsigned int slot_id, - unsigned int ep_index, unsigned int stream_id, - struct xhci_td *td); -void xhci_stop_endpoint_command_watchdog(struct timer_list *t); void xhci_handle_command_timeout(struct work_struct *work); void xhci_ring_ep_doorbell(struct xhci_hcd *xhci, unsigned int slot_id,