IB/rxe: Constify the pool name
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 10 Jan 2017 19:15:41 +0000 (11:15 -0800)
committerDoug Ledford <dledford@redhat.com>
Tue, 10 Jan 2017 21:52:47 +0000 (16:52 -0500)
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Andrew Boyer <andrew.boyer@dell.com>
Cc: Moni Shoua <monis@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rxe/rxe_pool.c
drivers/infiniband/sw/rxe/rxe_pool.h

index d723947a8542dc2283c747036ecedd9ad2aa7bac..238a6be00d46703f1304a1468da7df8ccda63550 100644 (file)
@@ -102,7 +102,7 @@ struct rxe_type_info rxe_type_info[RXE_NUM_TYPES] = {
        },
 };
 
-static inline char *pool_name(struct rxe_pool *pool)
+static inline const char *pool_name(struct rxe_pool *pool)
 {
        return rxe_type_info[pool->type].name;
 }
index 4d04830adcaefd2f0cc07d3b790d77a63e2c85c7..7846ccc58b25d954b138777284adeaa931c5e220 100644 (file)
@@ -58,7 +58,7 @@ enum rxe_elem_type {
 };
 
 struct rxe_type_info {
-       char                    *name;
+       const char              *name;
        size_t                  size;
        void                    (*cleanup)(void *obj);
        enum rxe_pool_flags     flags;