From patchwork Fri Dec 15 19:31:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 10115927 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 49A5560327 for ; Fri, 15 Dec 2017 19:32:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B17E2A12C for ; Fri, 15 Dec 2017 19:32:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2FDEC2A135; Fri, 15 Dec 2017 19:32:54 +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 B81852A12C for ; Fri, 15 Dec 2017 19:32:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756451AbdLOTbq (ORCPT ); Fri, 15 Dec 2017 14:31:46 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:44511 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756323AbdLOTbm (ORCPT ); Fri, 15 Dec 2017 14:31:42 -0500 Received: by mail-wm0-f68.google.com with SMTP id t8so19418928wmc.3; Fri, 15 Dec 2017 11:31:41 -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=V12GxOQqu3wv796Rl4PPQlAHVapCW5KEsDANLkZBrF60vR9SHmUAucuHvWROP4iWYB R+FJ2oO1ckuWadDjilnTesA3tLnLDvGs8D2GHX5PD6AzL/HgPK5qofnnpFQ4QpmeH671 jIgvgD/v/FfI9qsW4ToeN6nGMAP86IDSH9gsiZF+/Lrth8bAkUEl+e3ERUlkQGjc8H84 SwMli8+aMgn4BXea4dFEJ5+T5rPkNIIoysd1qOguk1ZctcZzzLtA+faLY0tSbuAj9VAu 06i3LJZxTsLNCc44DjXupJUsQgXEXPxoyf1KLHVL3r4qUuTyKc8pcX5L2KLlJ5glaODr pUng== 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=ra7mSEGrK7uH+Z6GSpa3MtDA9epQqH0aogDbsoU4wBuSA2PttAsOsxGb7up3wc68VD HCA5zS5rFxeaIuQ5JDnQF9JgfutaBQmES4Fvi/23E2klfbHlGB0R8JwrsWZDr+D2nsME 9PXUMS9VHeCvQphfjwv+pWl40pbaTOuMzosLSTMMp28l2t4pnWvsqmx76wt2dtAX5b1z f61v55SPGY7jgLFUDI6fAHmkAqQq30oc7L68LWPLQG830tZkjsx5EyBKlzx4xKq0nNIC mvoK9wfphj/tOYZYYE11ch+OfezVkVk+IxY/EzV1JX9QB7kpf1C9QIfga5pMkdh1IMpG 0IYQ== X-Gm-Message-State: AKGB3mIESghO2sH6DSg/8HjNosL9ls1KyiA1lHJm5JegraXPub/AQW5m cfmovqavzGsDi/ajSleMegg= X-Google-Smtp-Source: ACJfBou0ZQ37NEApR9Lwo8TU/hqe1tUSzeQ8EYefdTYGS8mVf97AoPaBgkX7BYse9zTuizY4goKs7Q== X-Received: by 10.28.173.129 with SMTP id w123mr5965440wme.129.1513366300430; Fri, 15 Dec 2017 11:31:40 -0800 (PST) Received: from rperier-xps-l502x (AToulouse-651-1-93-21.w90-16.abo.wanadoo.fr. [90.16.212.21]) by smtp.gmail.com with ESMTPSA id 137sm2607485wmp.34.2017.12.15.11.31.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Dec 2017 11:31:39 -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, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Romain Perier Subject: [PATCH v16 4/4] PCI: Remove PCI pool macro functions Date: Fri, 15 Dec 2017 20:31:23 +0100 Message-Id: <20171215193123.13395-5-romain.perier@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171215193123.13395-1-romain.perier@gmail.com> References: <20171215193123.13395-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 */