IB/rxe: Constify the pool name

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>
This commit is contained in:
Bart Van Assche 2017-01-10 11:15:41 -08:00 committed by Doug Ledford
parent 8d8f083720
commit 2bec3baded
2 changed files with 2 additions and 2 deletions

View 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;
}

View 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;