瀏覽代碼

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>
Bart Van Assche 8 年之前
父節點
當前提交
2bec3baded
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      drivers/infiniband/sw/rxe/rxe_pool.c
  2. 1 1
      drivers/infiniband/sw/rxe/rxe_pool.h

+ 1 - 1
drivers/infiniband/sw/rxe/rxe_pool.c

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

+ 1 - 1
drivers/infiniband/sw/rxe/rxe_pool.h

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