]> git.baikalelectronics.ru Git - kernel.git/commit
ptr_ring: add include of linux/mm.h
authorJesper Dangaard Brouer <brouer@redhat.com>
Mon, 13 Jan 2020 10:22:16 +0000 (11:22 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Jan 2020 02:16:43 +0000 (18:16 -0800)
commit504a638edfd00dc2322b55a4ca55a2f362b1235e
tree09434b82ad7bf2879477617641598bcff17b48a1
parentddd3beb2b97b7020f656b8a327dc845884971eb4
ptr_ring: add include of linux/mm.h

Commit 01b5ad5b23b6 ("ptr_ring: try vmalloc() when kmalloc() fails")
started to use kvmalloc_array and kvfree, which are defined in mm.h,
the previous functions kcalloc and kfree, which are defined in slab.h.

Add the missing include of linux/mm.h.  This went unnoticed as other
include files happened to include mm.h.

Fixes: 01b5ad5b23b6 ("ptr_ring: try vmalloc() when kmalloc() fails")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/ptr_ring.h