Const'ify cam_sim.sim_name to quiet warnings.
Reviewed by: -scsi
This commit is contained in:
parent
1a8de399e7
commit
e2138fee20
@ -53,7 +53,7 @@ cam_simq_free(struct cam_devq *devq)
|
||||
|
||||
struct cam_sim *
|
||||
cam_sim_alloc(sim_action_func sim_action, sim_poll_func sim_poll,
|
||||
char *sim_name, void *softc, u_int32_t unit,
|
||||
const char *sim_name, void *softc, u_int32_t unit,
|
||||
int max_dev_transactions,
|
||||
int max_tagged_dev_transactions, struct cam_devq *queue)
|
||||
{
|
||||
|
@ -53,7 +53,7 @@ void cam_simq_free(struct cam_devq *devq);
|
||||
|
||||
struct cam_sim * cam_sim_alloc(sim_action_func sim_action,
|
||||
sim_poll_func sim_poll,
|
||||
char *sim_name,
|
||||
const char *sim_name,
|
||||
void *softc,
|
||||
u_int32_t unit,
|
||||
int max_dev_transactions,
|
||||
@ -67,11 +67,11 @@ void cam_sim_set_path(struct cam_sim *sim, u_int32_t path_id);
|
||||
|
||||
|
||||
/* Convenience routines for accessing sim attributes. */
|
||||
static __inline u_int32_t cam_sim_path(struct cam_sim *sim);
|
||||
static __inline char * cam_sim_name(struct cam_sim *sim);
|
||||
static __inline void * cam_sim_softc(struct cam_sim *sim);
|
||||
static __inline u_int32_t cam_sim_unit(struct cam_sim *sim);
|
||||
static __inline u_int32_t cam_sim_bus(struct cam_sim *sim);
|
||||
static __inline u_int32_t cam_sim_path(struct cam_sim *sim);
|
||||
static __inline const char * cam_sim_name(struct cam_sim *sim);
|
||||
static __inline void * cam_sim_softc(struct cam_sim *sim);
|
||||
static __inline u_int32_t cam_sim_unit(struct cam_sim *sim);
|
||||
static __inline u_int32_t cam_sim_bus(struct cam_sim *sim);
|
||||
|
||||
|
||||
|
||||
@ -88,7 +88,7 @@ static __inline u_int32_t cam_sim_bus(struct cam_sim *sim);
|
||||
struct cam_sim {
|
||||
sim_action_func sim_action;
|
||||
sim_poll_func sim_poll;
|
||||
char *sim_name;
|
||||
const char *sim_name;
|
||||
void *softc;
|
||||
u_int32_t path_id;/* The Boot device may set this to 0? */
|
||||
u_int32_t unit_number;
|
||||
@ -107,7 +107,7 @@ cam_sim_path(struct cam_sim *sim)
|
||||
return (sim->path_id);
|
||||
}
|
||||
|
||||
static __inline char *
|
||||
static __inline const char *
|
||||
cam_sim_name(struct cam_sim *sim)
|
||||
{
|
||||
return (sim->sim_name);
|
||||
|
Loading…
Reference in New Issue
Block a user