Skip to content

Commit 01a7fd3

Browse files
Sean O. Stalleytorvalds
authored andcommitted
pci: mm: add pci_pool_zalloc() call
Add a wrapper function for pci_pool_alloc() to get zeroed memory. Signed-off-by: Sean O. Stalley <sean.stalley@intel.com> Cc: Vinod Koul <vinod.koul@intel.com> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Gilles Muller <Gilles.Muller@lip6.fr> Cc: Nicolas Palix <nicolas.palix@imag.fr> Cc: Michal Marek <mmarek@suse.cz> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent ad82362 commit 01a7fd3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎include/linux/pci.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,8 @@ int pci_set_vga_state(struct pci_dev *pdev, bool decode,
12271227
dma_pool_create(name, &pdev->dev, size, align, allocation)
12281228
#define pci_pool_destroy(pool) dma_pool_destroy(pool)
12291229
#define pci_pool_alloc(pool, flags, handle) dma_pool_alloc(pool, flags, handle)
1230+
#define pci_pool_zalloc(pool, flags, handle) \
1231+
dma_pool_zalloc(pool, flags, handle)
12301232
#define pci_pool_free(pool, vaddr, addr) dma_pool_free(pool, vaddr, addr)
12311233

12321234
struct msix_entry {

0 commit comments

Comments
 (0)