From patchwork Thu Aug 17 11:41:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 136290 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp2592344vqi; Sun, 20 Aug 2023 11:07:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF7Ll5MgbODJ2uiSA2oauD6YkE9J5UNW5P4eUpZzLzIGHgCerHEr9yOwHFSnbmjCoBxYMhE X-Received: by 2002:a05:6a20:dd97:b0:134:dc23:2994 with SMTP id kw23-20020a056a20dd9700b00134dc232994mr5136647pzb.31.1692554868908; Sun, 20 Aug 2023 11:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692554868; cv=none; d=google.com; s=arc-20160816; b=Orrw+oo7x2dLynaQk5CHjWtABeFk2BE4EYI17YuI63mW++M6hMjqujhoGEBAnB+c7S 9JxqHuOa+5ICQ84APfn2DJ2uDbQMpBQlnYRvpU/gKAcfeGHBL4kz5uGm73D5L2FaOyE+ s8IxGyImyLQGLF9yyH+eMCRnoxbsigtRPgZiF9kmExipwwXbbdRioe1vzL1yHsTz4Rps sDV56BGptoFo+qcfj+Bf2Q4u3CaJ89PbtH4A3vwOPLwXbJX1T16FcrskURsUmIwx7Xin TMlNgff26P0KDVXAmqjI2xrwPUrVIIUjtSBWFf+fjMbG9w7tainhnTcVP19ipd74VgWs Z03A== 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=nNwCciKdNJa1jh7UeOPHjaQsb9c08VkF9GBCJCW2xx0=; fh=Kshc8fh+nAbbeGIrcHL93b1gGL2VnmO/J5jfGkZ/DQc=; b=G9M20kBIwvszIiCzz5lhTxuH3pyWXeyIBgqraLU3r6QlwQJfi+thhtLHwpGNJpBnQO EBIQ249JWuk01hO4vklOKyyQsfnwR0iumUuEADk8JyRMWBGt0+DG28nMh21gQVyZXora xaVHbvSoDnqOzfp2tASXx5cAuJeiLrRYA6IeaTjFgVeihS3RjSu21yA3KP2MckrWC253 hhNGeRQgFKptqr8pN3kOOKC3YsEdX20X1rg9coUFV9LlOOceY0kWGai6+rfRsr/yF3Ks UQsEf3cYa0+eV2BSUGS3hChBCazuU/X2wrvViGvtK8E0zblNS22c+/42KOcpjuMIVkS9 MuNA== 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:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id cm21-20020a056a00339500b00688bd8e5335si5525693pfb.285.2023.08.20.11.07.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 11:07:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5C006422710; Sat, 19 Aug 2023 12:28:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350403AbjHQLmi (ORCPT + 99 others); Thu, 17 Aug 2023 07:42:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350441AbjHQLmT (ORCPT ); Thu, 17 Aug 2023 07:42:19 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EE8310C0; Thu, 17 Aug 2023 04:42:18 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RRNLx0KyWzFqZR; Thu, 17 Aug 2023 19:39:05 +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; Thu, 17 Aug 2023 19:42:03 +0800 From: Yue Haibing To: , , , CC: , Subject: [PATCH v3] dmaengine: idxd: Remove unused declarations Date: Thu, 17 Aug 2023 19:41:35 +0800 Message-ID: <20230817114135.50264-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: dggems704-chm.china.huawei.com (10.3.19.181) 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, 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: 1774461173662094402 X-GMAIL-MSGID: 1774772414237754804 Commit c05257b5600b ("dmanegine: idxd: open code the dsa_drv registration") removed idxd_{un}register_driver() definitions but not the declarations. Commit 034b3290ba25 ("dmaengine: idxd: create idxd_device sub-driver") declared idxd_{un}register_idxd_drv() but never implemented it. Commit 8f47d1a5e545 ("dmaengine: idxd: connect idxd to dmaengine subsystem") declared idxd_parse_completion_status() but never implemented it. Signed-off-by: Yue Haibing Reviewed-by: Dave Jiang --- v3: fix checkpatch warning v2: minor commit message changes --- 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 502be9db63f4..e269ca1f4862 100644 --- a/drivers/dma/idxd/idxd.h +++ b/drivers/dma/idxd/idxd.h @@ -660,8 +660,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); @@ -673,8 +671,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); @@ -719,7 +715,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);