Skip to content

Commit

Permalink
ctl: Move extern for control_softc into <cam/ctl/ctl_private.h>
Browse files Browse the repository at this point in the history
Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D46778
  • Loading branch information
bsdjhb committed Sep 25, 2024
1 parent 0063ef7 commit b1d324d
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions sys/cam/ctl/ctl_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@
#include <cam/ctl/ctl_private.h>
#include <cam/ctl/ctl_debug.h>

extern struct ctl_softc *control_softc;

int
ctl_backend_register(struct ctl_backend_driver *be)
{
Expand Down
2 changes: 0 additions & 2 deletions sys/cam/ctl/ctl_backend_block.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,6 @@ struct ctl_be_block_io {
void (*beio_cont)(struct ctl_be_block_io *beio); /* to continue processing */
};

extern struct ctl_softc *control_softc;

static int cbb_num_threads = 32;
SYSCTL_NODE(_kern_cam_ctl, OID_AUTO, block, CTLFLAG_RD | CTLFLAG_MPSAFE, 0,
"CAM Target Layer Block Backend");
Expand Down
1 change: 0 additions & 1 deletion sys/cam/ctl/ctl_backend_ramdisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ struct ctl_be_ramdisk_softc {
};

static struct ctl_be_ramdisk_softc rd_softc;
extern struct ctl_softc *control_softc;

static int ctl_backend_ramdisk_init(void);
static int ctl_backend_ramdisk_shutdown(void);
Expand Down
2 changes: 0 additions & 2 deletions sys/cam/ctl/ctl_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@
#include <cam/ctl/ctl_private.h>
#include <cam/ctl/ctl_debug.h>

extern struct ctl_softc *control_softc;

int
ctl_frontend_register(struct ctl_frontend *fe)
{
Expand Down
1 change: 1 addition & 0 deletions sys/cam/ctl/ctl_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ struct ctl_softc {

#ifdef _KERNEL

extern struct ctl_softc *control_softc;
extern const struct ctl_cmd_entry ctl_cmd_table[256];
extern const struct ctl_nvme_cmd_entry nvme_admin_cmd_table[256];
extern const struct ctl_nvme_cmd_entry nvme_nvm_cmd_table[256];
Expand Down
2 changes: 0 additions & 2 deletions sys/dev/nvmf/controller/ctl_frontend_nvmf.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ static int nvmft_ioctl(struct cdev *cdev, u_long cmd, caddr_t data,
int flag, struct thread *td);
static int nvmft_shutdown(void);

extern struct ctl_softc *control_softc;

static struct taskqueue *nvmft_taskq;
static TAILQ_HEAD(, nvmft_port) nvmft_ports;
static struct sx nvmft_ports_lock;
Expand Down

0 comments on commit b1d324d

Please sign in to comment.