From patchwork Thu Aug 17 01:55:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 135856 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp524261vqi; Thu, 17 Aug 2023 00:40:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEsaK63Fr3MuJhwc/e2co6jfE45sqJHodtqBWY7rjRvw/UWMbCQA6CFNVlXMmFAk/Psgd1L X-Received: by 2002:a05:6830:13c3:b0:6ba:a812:9e0e with SMTP id e3-20020a05683013c300b006baa8129e0emr4460063otq.20.1692258046847; Thu, 17 Aug 2023 00:40:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692258046; cv=none; d=google.com; s=arc-20160816; b=H9IxEkvrEDw6wJmbhwHC4EcCZ+YVwDMgheJOWTbt3gEIsx5yJkKypvv3r/aeH37qS7 BW/AhChM1/i/g2Bbr7b6aVxHhvVpn0XRr8zxoMmK6i2QdSvUyN4GqJvbnBExU1Bp481O MGDbC5Vo/o0KFcabZessuTiIHZOVJ/4yUgIqoAU9AmaRk5Wl7JWKx0yqRPiXzIYQej9h Q1lcAXCTK55Oae2mzLAc40gL53KR/VsfAmrZUYNnvspSgM4U0nermOhcHjyVMaRn0exD tDNDAmMxGC8aKOrS+OWeCJ35gtAUPEHLRtx0VOM+z6PUlcjJWWrlslUG5PjO1BXYTsEX UheA== 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=6qtBA5vW/DXkacoSO7W4e0DORRyGrc4UvlAoxsaxWpo=; fh=Kshc8fh+nAbbeGIrcHL93b1gGL2VnmO/J5jfGkZ/DQc=; b=g9D7hkLyyEGN+JQhIQCBXt9koBL7pw7Oy4cIUpl8UeojVy0Ou0uyQ66goQYufu+XIQ j1qSTlBbeSrkr/SDffQ8eqJg4CB+UH+feXFVUaGy5YI95nIsS0Be7ySlMMLB/Swdwod8 Oda4DI4wcmPO20pIue9vIGH6mRDoPvrBi7vgZA4MsSBj0KHxx2+xzV0c+lRf28SC1s8x FWNGj0+RvcUsCtXX3QPVCnKBpWyokfrwk4JjdDZ3i7b/Mp9VH1Gi+e6p/Eg8pULAlFfB eFl9nGHSA0WxU5A7iOWdCB+x/IS54S2rN5/xn5pe/ZA8l9E1fQ1YBFqAVBV+xcK0fzST korA== 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 n6-20020a6563c6000000b005501b28fc02si13030119pgv.50.2023.08.17.00.40.32; Thu, 17 Aug 2023 00:40:46 -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 S1347578AbjHQB4H (ORCPT + 99 others); Wed, 16 Aug 2023 21:56:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347491AbjHQB4D (ORCPT ); Wed, 16 Aug 2023 21:56:03 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C3EAE48; Wed, 16 Aug 2023 18:56:02 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RR7Lk0k9NzFqhP; Thu, 17 Aug 2023 09:53:02 +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 09:56:00 +0800 From: Yue Haibing To: , , , CC: , Subject: [PATCH v2 -next] dmaengine: idxd: Remove unused declarations Date: Thu, 17 Aug 2023 09:55:50 +0800 Message-ID: <20230817015550.18624-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: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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: 1774461173662094402 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 --- 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);