From patchwork Mon Aug 14 13:59:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 135480 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2792921vqi; Mon, 14 Aug 2023 07:47:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGIYYFEeU5x8uGd2XUGD41KPSjrT3KdoCaC6Ce52qwcT2lwARu8WravEX3pIWRqMkTEbEy/ X-Received: by 2002:a17:906:76d3:b0:994:5577:aeed with SMTP id q19-20020a17090676d300b009945577aeedmr7458703ejn.5.1692024454389; Mon, 14 Aug 2023 07:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692024454; cv=none; d=google.com; s=arc-20160816; b=XE02vFhjUS3OfkPSMZCfl3y2K3jE3SH6VK/+q19JeOJU97zHr+RRdbdMSg57FoIdiD WFc1ixmxd5P8mzvY/yQU9RLBzjhADXUNkn69myB1MBXrd73f6HyovIYMhsHmkXPsiXCi Rgtz5/wmr7jgFVGCX/+ndHI1te/OE6MIAFLCp5D4PDgwD1KT9FY5kb0yDGlXVYO33by+ rDascJPB5R3Egl4nQPxiwyNJcXTjb7Ca30DPPT8ZpWgnSwtsodXWChB8CevDG2TNelV6 BA+Q9zqiFCd7l5ZcJOkONc7ZEkptiYRpX/nclzpgFT2VMiGE5l4E9NUsqmZRdw5GbbiZ uT+g== 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=IN0EKClvHRqD5oRtUXToQC/m1EE4NDpg9hW53Da1K8I=; fh=Kshc8fh+nAbbeGIrcHL93b1gGL2VnmO/J5jfGkZ/DQc=; b=VWOmRW7bBHQmgaY1aXIG/9JSctUOYctyk1D0BzCyv1CagIFfDkHqRXr9i/l3juMc5c EvFgSlT1Ars6BBga0sUCgYVEqqvYRCnPjHVQUXcBc0pL2UmlbAvFga7HzWaoZb67O3hL EwgbYE0IMdrBQGKXZsCHuoqOpRha2IVxavTvKJUvmQlWb5/BtHBKlz05HdlrYFRf9Woy /zfXooSqEyys5OQ2KJXjSC5UQxjuD/M4nInJgejgNEiYVsJkgm/G1N6NV3S7So3LLXbd 2WDtGrF0b1TuZuWn6Bz9EYynn4AWTxHU4qUtQYB8qGx0m9L0AuTB06EbqpBrIZjpopSB W6vQ== 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 i18-20020a170906115200b0099cb00485b0si7372005eja.498.2023.08.14.07.47.08; Mon, 14 Aug 2023 07:47:34 -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 S229903AbjHNOAd (ORCPT + 99 others); Mon, 14 Aug 2023 10:00:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232060AbjHNOAS (ORCPT ); Mon, 14 Aug 2023 10:00:18 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B30110FA; Mon, 14 Aug 2023 07:00:05 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RPbbN5ZSgzrSKX; Mon, 14 Aug 2023 21:58:40 +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.31; Mon, 14 Aug 2023 21:59:59 +0800 From: Yue Haibing To: , , , CC: , Subject: [PATCH -next] dmaengine: idxd: Remove unused declarations Date: Mon, 14 Aug 2023 21:59:52 +0800 Message-ID: <20230814135952.12892-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_H5,RCVD_IN_MSPIKE_WL,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: 1774216234441310693 X-GMAIL-MSGID: 1774216234441310693 Commit c05257b5600b ("dmanegine: idxd: open code the dsa_drv registration") removed idxd_{un}register_driver() but not the declarations. Commit 034b3290ba25 ("dmaengine: idxd: create idxd_device sub-driver") declared idxd_{un}register_idxd_drv() but never implemented. Commit 8f47d1a5e545 ("dmaengine: idxd: connect idxd to dmaengine subsystem") declared idxd_parse_completion_status() but never implemented. Signed-off-by: Yue Haibing Reviewed-by: Dave Jiang --- drivers/dma/idxd/idxd.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/dma/idxd/idxd.h b/drivers/dma/idxd/idxd.h index 5428a2e1b1ec..05a83359def9 100644 --- a/drivers/dma/idxd/idxd.h +++ b/drivers/dma/idxd/idxd.h @@ -651,8 +651,6 @@ int idxd_register_bus_type(void); void idxd_unregister_bus_type(void); int idxd_register_devices(struct idxd_device *idxd); void idxd_unregister_devices(struct idxd_device *idxd); -int idxd_register_driver(void); -void idxd_unregister_driver(void); void idxd_wqs_quiesce(struct idxd_device *idxd); bool idxd_queue_int_handle_resubmit(struct idxd_desc *desc); void multi_u64_to_bmap(unsigned long *bmap, u64 *val, int count); @@ -664,8 +662,6 @@ void idxd_mask_error_interrupts(struct idxd_device *idxd); void idxd_unmask_error_interrupts(struct idxd_device *idxd); /* device control */ -int idxd_register_idxd_drv(void); -void idxd_unregister_idxd_drv(void); int idxd_device_drv_probe(struct idxd_dev *idxd_dev); void idxd_device_drv_remove(struct idxd_dev *idxd_dev); int drv_enable_wq(struct idxd_wq *wq); @@ -710,7 +706,6 @@ int idxd_enqcmds(struct idxd_wq *wq, void __iomem *portal, const void *desc); /* dmaengine */ int idxd_register_dma_device(struct idxd_device *idxd); void idxd_unregister_dma_device(struct idxd_device *idxd); -void idxd_parse_completion_status(u8 status, enum dmaengine_tx_result *res); void idxd_dma_complete_txd(struct idxd_desc *desc, enum idxd_complete_type comp_type, bool free_desc);