mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
Const'ify cam_sim.sim_name to quiet warnings.
Reviewed by: -scsi
This commit is contained in:
parent
1a8de399e7
commit
e2138fee20
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71507
@ -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