]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: lustre: remove unused OBDO_{ALLOC, FREE} macros
authorMike Rapoport <mike.rapoport@gmail.com>
Tue, 20 Oct 2015 09:39:47 +0000 (12:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 01:44:26 +0000 (18:44 -0700)
The OBDO_ALLOC and OBDO_FREE macros are not used and can be removed.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/obd_class.h

index bf2bde5e6896770be70537e5eaa47f98a8a36281..ceb3137f577c533dfc2274210de3563a700256bf 100644 (file)
@@ -1726,16 +1726,6 @@ void obd_cleanup_caches(void);
 /* support routines */
 extern struct kmem_cache *obdo_cachep;
 
-#define OBDO_ALLOC(ptr)                                                       \
-do {                                                                     \
-       OBD_SLAB_ALLOC_PTR_GFP((ptr), obdo_cachep, GFP_NOFS);             \
-} while (0)
-
-#define OBDO_FREE(ptr)                                                 \
-do {                                                                     \
-       OBD_SLAB_FREE_PTR((ptr), obdo_cachep);                          \
-} while (0)
-
 static inline void obdo2fid(struct obdo *oa, struct lu_fid *fid)
 {
        /* something here */