From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f170.google.com (mail-ig0-f170.google.com [209.85.213.170]) by kanga.kvack.org (Postfix) with ESMTP id D22D79003C7 for ; Tue, 21 Jul 2015 15:38:25 -0400 (EDT) Received: by igbpg9 with SMTP id pg9so115806101igb.0 for ; Tue, 21 Jul 2015 12:38:25 -0700 (PDT) Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com. [2607:f8b0:4001:c05::231]) by mx.google.com with ESMTPS id c6si21118992ioe.155.2015.07.21.12.38.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jul 2015 12:38:25 -0700 (PDT) Received: by iggf3 with SMTP id f3so116173108igg.1 for ; Tue, 21 Jul 2015 12:38:25 -0700 (PDT) Date: Tue, 21 Jul 2015 14:38:18 -0500 From: Bjorn Helgaas Subject: Re: [PATCH 3/4] pci: mm: Add pci_pool_zalloc() call Message-ID: <20150721193818.GG21967@google.com> References: <1436994883-16563-1-git-send-email-sean.stalley@intel.com> <1436994883-16563-4-git-send-email-sean.stalley@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436994883-16563-4-git-send-email-sean.stalley@intel.com> Sender: owner-linux-mm@kvack.org List-ID: To: "Sean O. Stalley" Cc: corbet@lwn.net, vinod.koul@intel.com, Julia.Lawall@lip6.fr, Gilles.Muller@lip6.fr, nicolas.palix@imag.fr, mmarek@suse.cz, akpm@linux-foundation.org, bigeasy@linutronix.de, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org, cocci@systeme.lip6.fr On Wed, Jul 15, 2015 at 02:14:42PM -0700, Sean O. Stalley wrote: > Add a wrapper function for pci_pool_alloc() to get zeroed memory. > > Signed-off-by: Sean O. Stalley If you get details of managing __GFP_ZERO worked out, I'm fine with this PCI part of it, and you can merge it along with the rest of the series: Acked-by: Bjorn Helgaas Please capitalize "PCI" in the subject line, like this: PCI: mm: Add pci_pool_zalloc() call > --- > include/linux/pci.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/pci.h b/include/linux/pci.h > index 755a2cd..e6ec7d9 100644 > --- a/include/linux/pci.h > +++ b/include/linux/pci.h > @@ -1176,6 +1176,8 @@ int pci_set_vga_state(struct pci_dev *pdev, bool decode, > 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) > > enum pci_dma_burst_strategy { > -- > 1.9.1 > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org