Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2435707pxb; Sat, 25 Sep 2021 07:15:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyklBzDH+ZX3RyP5HNqV8yfglTZyH/1Gs7fwICfQTZUB44sY9d3yXCooVaLmc6LRaj5CuxW X-Received: by 2002:a50:e10c:: with SMTP id h12mr11196155edl.299.1632579301361; Sat, 25 Sep 2021 07:15:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632579301; cv=none; d=google.com; s=arc-20160816; b=t+OTNx9jZYq58tUgD69AEU0FkeGPHg/uPD1/+epLfgCLJD9gGE09RldaVZjl0APxQw cZOxWj4QrHBRHsxXJzlTKCnA2j5NJY8SvkHgaAnKsXySYhgG45G/7DxyzVUvuAVBrkwU HDoTDzgBAxlM+jHDmomK5/pZvZqwND95aEMGYRnQmZuI1t5/WdMwf8HFBEiZRyBa0Wh4 L7sZAkP3l/5lb+NGRzcBlh2uBUO974rq6VzWYum0TkMevUyCY4hPGcNpC4OArz3etFLV rjKAF1zYv9XO1AWvD83mQIwOO2qriKMAR4iHXdny4Tkiv7FBsAK+1KzhgEE8mPQPgEF8 AXDQ== 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=oVf1/dImJAvoBqxOpsN497GrBAq8ZPS6OYzw/GLrLII=; b=BUTUgyBzgQW6UgpiiJx0A8/Ra637aoRVWKSG98n+yd47Mwt/B3Av2U7o3ZYPXOqepv nd/unX1JmIbfNgzRCIVXTECxvRb1aCUNuQDr2VaFTJVQ8+uyMnzUtEBPegOC/k5lTSVr XMPkBkWm36BbPR97eO+bgq5V7yaCTiWTc+iHk4cBkJ72C4KoI3uysepPHLDZvbwBWeEk xml6qjShLkyWQCK5k9E9r6fxYFrYL//J0qNDaQQQydFwPtybeIOwAXsqdCkPohBrVS9U ttlf+IRYJVu7uZwuJjbV7/AwT7MHmSw0uYzHeQxqxggAwvon71XsfsFhTyQXhrbM5a7v 7MIA== 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 n18si11398392eda.528.2021.09.25.07.14.14; Sat, 25 Sep 2021 07:15:01 -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 S238275AbhIYOK5 (ORCPT + 99 others); Sat, 25 Sep 2021 10:10:57 -0400 Received: from mx24.baidu.com ([111.206.215.185]:42324 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233738AbhIYOK4 (ORCPT ); Sat, 25 Sep 2021 10:10:56 -0400 Received: from BC-Mail-HQEX01.internal.baidu.com (unknown [172.31.51.57]) by Forcepoint Email with ESMTPS id B930C88C7835BA9E5ECE; Sat, 25 Sep 2021 21:53:01 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-HQEX01.internal.baidu.com (172.31.51.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Sat, 25 Sep 2021 21:53:01 +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; Sat, 25 Sep 2021 21:53:01 +0800 From: Cai Huoqing To: CC: Bjorn Helgaas , , Subject: [PATCH] PCI: Remove the unused pci wrappers Date: Sat, 25 Sep 2021 21:52:54 +0800 Message-ID: <20210925135255.328-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-EX04.internal.baidu.com (10.127.64.14) 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 in include/linux/pci-dma-compat.h should go away, so remove the unused pci wrappers. Prefer using dma_xxx() instead of the pci wrappers pci_xxx(). Signed-off-by: Cai Huoqing --- include/linux/pci-dma-compat.h | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/include/linux/pci-dma-compat.h b/include/linux/pci-dma-compat.h index 249d4d7fbf18..33b316f38e1d 100644 --- a/include/linux/pci-dma-compat.h +++ b/include/linux/pci-dma-compat.h @@ -20,13 +20,6 @@ pci_alloc_consistent(struct pci_dev *hwdev, size_t size, return dma_alloc_coherent(&hwdev->dev, size, dma_handle, GFP_ATOMIC); } -static inline void * -pci_zalloc_consistent(struct pci_dev *hwdev, size_t size, - dma_addr_t *dma_handle) -{ - return dma_alloc_coherent(&hwdev->dev, size, dma_handle, GFP_ATOMIC); -} - static inline void pci_free_consistent(struct pci_dev *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle) @@ -89,26 +82,6 @@ pci_dma_sync_single_for_device(struct pci_dev *hwdev, dma_addr_t dma_handle, dma_sync_single_for_device(&hwdev->dev, dma_handle, size, (enum dma_data_direction)direction); } -static inline void -pci_dma_sync_sg_for_cpu(struct pci_dev *hwdev, struct scatterlist *sg, - int nelems, int direction) -{ - dma_sync_sg_for_cpu(&hwdev->dev, sg, nelems, (enum dma_data_direction)direction); -} - -static inline void -pci_dma_sync_sg_for_device(struct pci_dev *hwdev, struct scatterlist *sg, - int nelems, int direction) -{ - dma_sync_sg_for_device(&hwdev->dev, sg, nelems, (enum dma_data_direction)direction); -} - -static inline int -pci_dma_mapping_error(struct pci_dev *pdev, dma_addr_t dma_addr) -{ - return dma_mapping_error(&pdev->dev, dma_addr); -} - #ifdef CONFIG_PCI static inline int pci_set_dma_mask(struct pci_dev *dev, u64 mask) { -- 2.25.1