aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2022-01-15 00:21:09 +0000
committerWarner Losh <imp@FreeBSD.org>2022-01-15 00:21:09 +0000
commit4762aa57ad17b67b46570025ca21ac4a5eefed0c (patch)
treef868c7539480b99c214a8afbfec9d57fa6c3162f
parentbacb140f31aa64a7e73c1846834cc7065daee687 (diff)
downloadsrc-4762aa57ad17b67b46570025ca21ac4a5eefed0c.tar.gz
src-4762aa57ad17b67b46570025ca21ac4a5eefed0c.zip
ata_xpt: Rename probe_softc to aprobe_softc
Since both scsi_xpt and ata_xpt use the same name for the softc, this can lead to problems in gdb. Avoid the issue by renaming the ata probe_softc to aprobe_softc as has been done for the aprobe in 0f280cbd0a3a9. This was overlooked at the time. Sponsored by: Netflix MFC After: 2 weeks
-rw-r--r--sys/cam/ata/ata_xpt.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/sys/cam/ata/ata_xpt.c b/sys/cam/ata/ata_xpt.c
index ee0fe65e2ada..5d47f27e7779 100644
--- a/sys/cam/ata/ata_xpt.c
+++ b/sys/cam/ata/ata_xpt.c
@@ -148,7 +148,7 @@ typedef struct {
int faults;
u_int caps;
struct cam_periph *periph;
-} probe_softc;
+} aprobe_softc;
static struct ata_quirk_entry ata_quirk_table[] =
{
@@ -278,7 +278,7 @@ static cam_status
aproberegister(struct cam_periph *periph, void *arg)
{
union ccb *request_ccb; /* CCB representing the probe request */
- probe_softc *softc;
+ aprobe_softc *softc;
request_ccb = (union ccb *)arg;
if (request_ccb == NULL) {
@@ -287,7 +287,7 @@ aproberegister(struct cam_periph *periph, void *arg)
return(CAM_REQ_CMP_ERR);
}
- softc = (probe_softc *)malloc(sizeof(*softc), M_CAMXPT, M_ZERO | M_NOWAIT);
+ softc = (aprobe_softc *)malloc(sizeof(*softc), M_CAMXPT, M_ZERO | M_NOWAIT);
if (softc == NULL) {
printf("proberegister: Unable to probe new device. "
@@ -314,9 +314,9 @@ static void
aprobeschedule(struct cam_periph *periph)
{
union ccb *ccb;
- probe_softc *softc;
+ aprobe_softc *softc;
- softc = (probe_softc *)periph->softc;
+ softc = (aprobe_softc *)periph->softc;
ccb = (union ccb *)TAILQ_FIRST(&softc->request_ccbs);
if ((periph->path->device->flags & CAM_DEV_UNCONFIGURED) ||
@@ -340,14 +340,14 @@ aprobestart(struct cam_periph *periph, union ccb *start_ccb)
struct ccb_trans_settings cts;
struct ccb_ataio *ataio;
struct ccb_scsiio *csio;
- probe_softc *softc;
+ aprobe_softc *softc;
struct cam_path *path;
struct ata_params *ident_buf;
u_int oif;
CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("aprobestart\n"));
- softc = (probe_softc *)periph->softc;
+ softc = (aprobe_softc *)periph->softc;
path = start_ccb->ccb_h.path;
ataio = &start_ccb->ataio;
csio = &start_ccb->csio;
@@ -745,7 +745,7 @@ aprobedone(struct cam_periph *periph, union ccb *done_ccb)
struct ccb_trans_settings cts;
struct ata_params *ident_buf;
struct scsi_inquiry_data *inq_buf;
- probe_softc *softc;
+ aprobe_softc *softc;
struct cam_path *path;
cam_status status;
u_int32_t priority;
@@ -757,7 +757,7 @@ aprobedone(struct cam_periph *periph, union ccb *done_ccb)
CAM_DEBUG(done_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("aprobedone\n"));
- softc = (probe_softc *)periph->softc;
+ softc = (aprobe_softc *)periph->softc;
path = done_ccb->ccb_h.path;
priority = done_ccb->ccb_h.pinfo.priority;
ident_buf = &path->device->ident_data;
@@ -1605,9 +1605,9 @@ ata_scan_lun(struct cam_periph *periph, struct cam_path *path,
xpt_path_lock(path);
if ((old_periph = cam_periph_find(path, "aprobe")) != NULL) {
if ((old_periph->flags & CAM_PERIPH_INVALID) == 0) {
- probe_softc *softc;
+ aprobe_softc *softc;
- softc = (probe_softc *)old_periph->softc;
+ softc = (aprobe_softc *)old_periph->softc;
TAILQ_INSERT_TAIL(&softc->request_ccbs,
&request_ccb->ccb_h, periph_links.tqe);
softc->restart = 1;