Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2964841pxb; Mon, 18 Oct 2021 05:42:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKMF3njrxS9ZRgckbTK3BFHloIUt0tPFm3Zeepd94bIQZ44A0FXrjYafkhitiQHFX/44Y/ X-Received: by 2002:a17:90b:251:: with SMTP id fz17mr46554539pjb.52.1634560970882; Mon, 18 Oct 2021 05:42:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634560970; cv=none; d=google.com; s=arc-20160816; b=XhfRdx1DGvns+VulAH/0di0aIGEYrze41OQJDolpP7FTlER8LKpLxRTMBiTQ3wirwl 4CZJMuyQc/wEkIoyVN3ECGRvqXpGDcOm3g8RAHAnmmyddhsaNKgpCsKxDKFhXTS/tFCA v/zaNPqib88CJdoYhAmqpCBfj5f9Lv7tx+YBLiIXJ+iapxM49iGMU8Vv/uZSzG8nEEh8 t4oYc9KFPJGXzeBWW3MJ80a8JK5mqz7FIJWWNbfKVkgsAG1lo1h5rlh3DYTgI8ppeBv7 mmujUI6SiBWpTR1+BF64j9wRO16NwnSvmTQMfx2Uq2dMA2onH4hIuvnQ+xEU1bp4YdGP zo1g== 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=n3pAQJZp3731jpByNTj7X71C8RH33P07OEO5k2E72rw=; b=NMhv6Xh8Q5XdWfgQMbIyNSiDON8dbm+3o27dohFo0unDl7aPYh2TMVgnuXEMzltK5X BejchWYBUsnQgSnISfzRSj/5JxqnC/CNDBE5EMhNuqOK3YGuNpBdmQr0+RUWExvJ5bGl w/FFD+oS+epjHphGyhzpOY974PPBerqRM5oJb0GMOZup27S1kZ+EUB9OhuBwRA+DBKOy 1+L+P7t2zejNSL81ZFcrHN83h4tdbjddUpBPzrA35iNTLLwu5Setu/bMpkqGR4icslNv 7Qgoi8gxdciXkJlJdI1+0Fdd1y18JUlo11l2rxx/WJ2T7t6tfDmIDSr1L+FT8OUn2VQh 5+WQ== 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 k3si1313779pfu.66.2021.10.18.05.42.38; Mon, 18 Oct 2021 05:42:50 -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 S231773AbhJRMnc (ORCPT + 99 others); Mon, 18 Oct 2021 08:43:32 -0400 Received: from mx24.baidu.com ([111.206.215.185]:54154 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231601AbhJRMna (ORCPT ); Mon, 18 Oct 2021 08:43:30 -0400 Received: from BJHW-Mail-Ex07.internal.baidu.com (unknown [10.127.64.17]) by Forcepoint Email with ESMTPS id 10DF484695B7C702BF99; Mon, 18 Oct 2021 20:41:12 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BJHW-Mail-Ex07.internal.baidu.com (10.127.64.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 18 Oct 2021 20:41:11 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 18 Oct 2021 20:41:11 +0800 From: Cai Huoqing To: CC: Cai Huoqing , Bjorn Helgaas , , Subject: [PATCH v2] PCI: Remove the unused pci wrappers pci_pool_xxx() Date: Mon, 18 Oct 2021 20:41:09 +0800 Message-ID: <20211018124110.214-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BJHW-Mail-Ex15.internal.baidu.com (10.127.64.38) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) X-Baidu-BdMsfe-DateCheck: 1_BJHW-Mail-Ex07_2021-10-18 20:41:11:925 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The wrappers around dma_pool_xxx should go away, so remove the unused pci wrappers. Prefer using dma_pool_xxx() instead of the pci wrappers pci_pool_xxx(), and the use of pci_pool_xxx was already removed. Signed-off-by: Cai Huoqing --- v1->v2: *Revert the implicit inclusion of dma_pool.h include/linux/pci.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index 94c75f3a4a19..74529d0388de 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1500,19 +1500,8 @@ int pci_set_vga_state(struct pci_dev *pdev, bool decode, #define PCI_IRQ_ALL_TYPES \ (PCI_IRQ_LEGACY | PCI_IRQ_MSI | PCI_IRQ_MSIX) -/* kmem_cache style wrapper around pci_alloc_consistent() */ - #include -#define pci_pool dma_pool -#define pci_pool_create(name, pdev, size, align, allocation) \ - dma_pool_create(name, &pdev->dev, size, align, allocation) -#define pci_pool_destroy(pool) dma_pool_destroy(pool) -#define pci_pool_alloc(pool, flags, handle) dma_pool_alloc(pool, flags, handle) -#define pci_pool_zalloc(pool, flags, handle) \ - dma_pool_zalloc(pool, flags, handle) -#define pci_pool_free(pool, vaddr, addr) dma_pool_free(pool, vaddr, addr) - struct msix_entry { u32 vector; /* Kernel uses to write allocated vector */ u16 entry; /* Driver uses to specify entry, OS writes */ -- 2.25.1