From patchwork Mon Nov 20 19:32:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 10067105 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 0F70F603FA for ; Mon, 20 Nov 2017 19:33:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 035D328D18 for ; Mon, 20 Nov 2017 19:33:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC1912930F; Mon, 20 Nov 2017 19:33:40 +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 ADC3728D2F for ; Mon, 20 Nov 2017 19:33:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752624AbdKTTdW (ORCPT ); Mon, 20 Nov 2017 14:33:22 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:34891 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752556AbdKTTdN (ORCPT ); Mon, 20 Nov 2017 14:33:13 -0500 Received: by mail-wr0-f193.google.com with SMTP id w95so9153868wrc.2; Mon, 20 Nov 2017 11:33:12 -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=TQLWoiMa7urdYHhnFGsw0Pu4kGuGOgyqvA2nj2pey28=; b=I7GYSGKvQ36oFKcRdF3WwmdQph8YJuwlpKxek/2DpcLAOGwwQWFglB+Rxl0E5gVCd6 VKSv2wCZzRlEODA303KBfHzRssyqssL+GDAdUuwp8dERv1rckJte6aykCuiqHkzf2Aum f9JgkqIsBiOt9vGmxXLf7m2uYIAhHtzAOtTmK5alapaVAZcLIfq3Tj7gTSHcknEIEuep nzu1TKtl0jkBwd1hlZ54fMgib4XEkN3+2GnMPsE+DL71S5Xsx3c+UVWdAuXcV4NAbirF twUtNaLaPmPinsO/lOchtNJZXykapqRdD1UE4V8paPl7ZaV+Wu8ULXw9Z3a4ffsD9syG KLVQ== 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=TQLWoiMa7urdYHhnFGsw0Pu4kGuGOgyqvA2nj2pey28=; b=LZo8VcYwT5yeCpHpFGFzVpkffF/SsNgm6ASK7BudP0e40s8nKnY6ONwGJ2jcuR8NNH eM/rvE7pkar9Gq1p+lzeEkdVoRDwWYfc950W0N60pfi8EpAbQoCfj9WWrAMp7o2XZ4Op zC98Cb6ABRm/TEV9OO8vVvbUOiunjBbC+H8SczWTXTlLHyVvM0EsVkE3NUdoNggb3TXL OKt3Ml05hsn+XH5KQ+xMUotVzvWtWCmKfALr/SfnuIFqDgxvlMt9eTjVa7KSxFElJrNZ 34ZccOgWyhbgGqlC9sAoOqbMo4x6tcfmOTRm9TF+IyGgVDY94NGIK0KijjCbUKSJJKAo BBNA== X-Gm-Message-State: AJaThX58vTY+uc1WeO77xzBETo7PrP0stnILRHvtapfrY8R+qFc+RLM4 EcaeR1m+Gj03zHQSBRGxhVU= X-Google-Smtp-Source: AGs4zMZHEmES86n8M7fkPG34tZitM+yRAE6SjxOJ0a0j95KWh7LsHH+iW/fIkVl2rT0Z0ut1bTgCRw== X-Received: by 10.223.151.154 with SMTP id s26mr2148077wrb.90.1511206391835; Mon, 20 Nov 2017 11:33:11 -0800 (PST) Received: from rperier-xps-l502x (AToulouse-651-1-44-123.w92-134.abo.wanadoo.fr. [92.134.227.123]) by smtp.gmail.com with ESMTPSA id d4sm15818373wmh.35.2017.11.20.11.33.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Nov 2017 11:33:10 -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 v15 5/5] PCI: Remove PCI pool macro functions Date: Mon, 20 Nov 2017 20:32:47 +0100 Message-Id: <20171120193247.8187-6-romain.perier@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171120193247.8187-1-romain.perier@gmail.com> References: <20171120193247.8187-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 96c94980d1ff..d03b4a20033d 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1324,15 +1324,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 */