From patchwork Tue Jan 2 17:53:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 10141111 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D93A96034B for ; Tue, 2 Jan 2018 17:54:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8CB428C50 for ; Tue, 2 Jan 2018 17:54:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BCA2B28C62; Tue, 2 Jan 2018 17:54:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81F1E28C50 for ; Tue, 2 Jan 2018 17:54:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751348AbeABRyT (ORCPT ); Tue, 2 Jan 2018 12:54:19 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:35603 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751442AbeABRyQ (ORCPT ); Tue, 2 Jan 2018 12:54:16 -0500 Received: by mail-wr0-f195.google.com with SMTP id l19so36897615wrc.2; Tue, 02 Jan 2018 09:54:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=T7UqHYLAz9xQEyV/Wqtx7JrCHHSXR10fGn/RhJ2xOfQ=; b=X/s6Tuc+PxwRK6WIvCh+slpAwRAYK+KEjU9P0x0+Sw7mfRe4mL0L2tYEFM6pif66s4 PYXXWxM6JL24ql5fIX0BcIQt8WApU5Dw7rxPaX1SuwoOc8MdaqMPg+KYjBTUtV3gXEEK PbVC1nFAzT1MfGGyhyZnWJi6cjE0M3H9Pc6po7dawn2cmp7iihuHl1+XYsfVAufLELZd a1LlPS11vbUTNAb+6EL6YJIcdmILLy0ygNeSudNnoB1hDnYmZQr13kcKiRGzREYznzbQ 6vebZsV14CUQTy/RwUqbrv2hRuw3ZgJ8SiEmoTn6BQNHURdcc0JZPjYeGwmMs8Z3I8Bj 52ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=T7UqHYLAz9xQEyV/Wqtx7JrCHHSXR10fGn/RhJ2xOfQ=; b=q66u1veD6L6slUcbqB1rxTP7kc/ZGcLDufd06uERj9gFoS0JQBUwOR79/UgOE/IrqL lX5CbV4LQYF6DXhCClhnaWWzeA2IMBzQqEPxSLr0EBCtwPG37oYbXHpfRWNrubGUArKc Ge2DmD+CLtMZHf4CxndBUQblwsjtqhclPrHx/3oiSSKGfN5iijOB6TenyIPQKgxZ41YT +j+fXOFHYr6Ebqk1x354cHtbrYdT8ZlA1Ky9XQ52Jt9nGro23BpAk3VON7kidfsT5uEY JZTNZIdxsZQXAl5o+V4TLO6fL3OS5gidqtTHwpfcBuugxJ42nBtheEguskCxbe3WcWlD dKNQ== X-Gm-Message-State: AKGB3mI5mkWQdiz9jb6gi2qJfRauHe297r3DenjCyGozaZUyF9fVAdGJ 0iU5xPdoUgPdMfpiXfqSAR8= X-Google-Smtp-Source: ACJfBotJstyZ8+gHUTH6IBqQ44t6fsyzt+U2ObZGZRu2gdpPxMhh0cEpCkBJvTkxtIN0U8GfWcrZzA== X-Received: by 10.223.160.161 with SMTP id m30mr47225443wrm.91.1514915654627; Tue, 02 Jan 2018 09:54:14 -0800 (PST) Received: from rperier-xps-l502x (AToulouse-651-1-229-42.w90-38.abo.wanadoo.fr. [90.38.44.42]) by smtp.gmail.com with ESMTPSA id f76sm21287625wme.2.2018.01.02.09.54.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jan 2018 09:54:13 -0800 (PST) From: Romain Perier To: Jens Axboe , Andrew Morton , Dan Williams , Vinod Koul , Jeff Kirsher , Aviad Krawczyk , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, Bjorn Helgaas , linux-pci@vger.kernel.org Cc: dmaengine@vger.kernel.org, "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Romain Perier Subject: [PATCH v17 4/4] PCI: Remove PCI pool macro functions Date: Tue, 2 Jan 2018 18:53:56 +0100 Message-Id: <20180102175356.7999-5-romain.perier@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180102175356.7999-1-romain.perier@gmail.com> References: <20180102175356.7999-1-romain.perier@gmail.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Romain Perier Now that all the drivers use dma pool API, we can remove the macro functions for PCI pool. Signed-off-by: Romain Perier Reviewed-by: Peter Senna Tschudin Acked-by: Bjorn Helgaas --- include/linux/pci.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index 66cca1c6f742..c5dd05021b14 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1314,15 +1314,6 @@ int pci_set_vga_state(struct pci_dev *pdev, bool decode, #include #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 */