]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
RDMA/core: Use the MODNAME instead of the function name for pd callers
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 28 Jan 2018 09:17:18 +0000 (11:17 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 29 Jan 2018 21:01:44 +0000 (14:01 -0700)
Each of our modules only allocates a PD in one place, so there isn't any
loss in detail, while MODNAME is more useful and recognizable as something
to expose to the user.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/rdma/ib_verbs.h

index 0b29425868403b8e193bf5fc9b92012bd73bb170..6ebb46e4ecf5e2cf7d12fb7ef1edf1fd8e05587b 100644 (file)
@@ -2853,7 +2853,7 @@ enum ib_pd_flags {
 struct ib_pd *__ib_alloc_pd(struct ib_device *device, unsigned int flags,
                const char *caller);
 #define ib_alloc_pd(device, flags) \
-       __ib_alloc_pd((device), (flags), __func__)
+       __ib_alloc_pd((device), (flags), KBUILD_MODNAME)
 void ib_dealloc_pd(struct ib_pd *pd);
 
 /**