Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2776894pxb; Mon, 18 Oct 2021 01:21:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwXW7KifWRPeOjJ93NUxdGZb3zgxnwh31yqUgvtue4sD4z7/h7y7rAqYeO184thUh3Mgfg X-Received: by 2002:a50:e14a:: with SMTP id i10mr42481397edl.73.1634545301770; Mon, 18 Oct 2021 01:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634545301; cv=none; d=google.com; s=arc-20160816; b=wWPIEQKV43pImLrponRnZlgw/rs0lBnFIU28oR/5tl0lpVyN3ozq7cPCuGL74oX8hj XHK/VHUsyt3gcIllknfC1aV31exoaZfOS75Y2E+6wirPbOxrQjt7oandGHVxoTRihgMq VuoAJNd+5ToEONCPhKuCGtClbHYaa3s0mzzBCfZfOOCll8unC8nj2HiUWaNzQIRw/Aq8 ZYbxtLGSF/ZNALPxu8Zb+9sgrHOxswzz1Tk1TvVguLYqeq+EJ6NbUlWEiO88bpHetmjD XYhWP8eNP1Qkt9CpAS/EhAtKJDwEleWjmvdjkMGgD1ppDczWfshGPHlvIp6+kxEzZFbP jHlw== 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=Klh9SYCrzdPMsyUVXixDVcwpGYSMjp2T3g30E2yZCBs=; b=pY/dTgNXvlEOKs4bZoXXusyjL2gQ6LKtn6pHKRyJ0dAgsc5DtJEpuo8Lo0dhPo2W09 kflxtLzPgKGOgeBqCQIVUD2rmRSO46AK1AnJOgVXjMgMiPBwXKMnKwf65bI76DnpSRKV NjGbHiQz7vAid9j7K/01rJuyckqGNUmgHANz7tKaE5fC9vMPDzBRmKEtjvURF0UV7GeG tIoNNYMFHQayvrvi8IjPowd5Pla0gLbOfAzBDU35+NrsB/OBuJGC/6PMGE8K5Fd6e5tB fwYTrp/0KaIm+Tu9N9NGFomNiAR6p8jUjIzpQyBFumpJHZcyjV7uPEFHGGVhUVenHFJC N9Wg== 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 2si20868765ejl.511.2021.10.18.01.21.18; Mon, 18 Oct 2021 01:21:41 -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 S231216AbhJRIS7 (ORCPT + 99 others); Mon, 18 Oct 2021 04:18:59 -0400 Received: from mx24.baidu.com ([111.206.215.185]:43294 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230469AbhJRISy (ORCPT ); Mon, 18 Oct 2021 04:18:54 -0400 Received: from BC-Mail-Ex11.internal.baidu.com (unknown [172.31.51.51]) by Forcepoint Email with ESMTPS id 70BFE1012CB84C20ABCE; Mon, 18 Oct 2021 16:16:36 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex11.internal.baidu.com (172.31.51.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Mon, 18 Oct 2021 16:16:35 +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 16:16:35 +0800 From: Cai Huoqing To: CC: Bjorn Helgaas , , Subject: [PATCH] PCI: Remove the unused pci wrappers pci_pool_xxx() Date: Mon, 18 Oct 2021 16:16:28 +0800 Message-ID: <20211018081629.151-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-Ex01.internal.baidu.com (10.127.64.11) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) 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 --- include/linux/pci.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index 7e0ce3a4d5a1..98fc67ceb582 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1498,19 +1498,6 @@ 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