提交 2bec3bad 编写于 作者: B Bart Van Assche 提交者: Doug Ledford

IB/rxe: Constify the pool name

Signed-off-by: NBart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: NLeon Romanovsky <leonro@mellanox.com>
Reviewed-by: NAndrew Boyer <andrew.boyer@dell.com>
Cc: Moni Shoua <monis@mellanox.com>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 8d8f0837
...@@ -102,7 +102,7 @@ struct rxe_type_info rxe_type_info[RXE_NUM_TYPES] = { ...@@ -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; return rxe_type_info[pool->type].name;
} }
......
...@@ -58,7 +58,7 @@ enum rxe_elem_type { ...@@ -58,7 +58,7 @@ enum rxe_elem_type {
}; };
struct rxe_type_info { struct rxe_type_info {
char *name; const char *name;
size_t size; size_t size;
void (*cleanup)(void *obj); void (*cleanup)(void *obj);
enum rxe_pool_flags flags; enum rxe_pool_flags flags;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册