diff options
author | Warner Losh <imp@FreeBSD.org> | 2021-06-28 23:22:35 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2021-06-28 23:22:35 +0000 |
commit | a72af82e3169fcacfedf9047120679300a4296f8 (patch) | |
tree | cb03c2bb469c0a930121090cc72e89bd47a93df1 | |
parent | 9f0febd6a44cab90659f2a1b98a8bb3f766e18fd (diff) | |
download | src-a72af82e3169fcacfedf9047120679300a4296f8.tar.gz src-a72af82e3169fcacfedf9047120679300a4296f8.zip |
cam: Fix GENERIC-MMCCAM build
Fix forgotten argument and type error. MMCCAM isn't enabled by default,
and I'd mistakenly thought it was, so these went undetected precommit.
Sponsored by: Netflix
-rw-r--r-- | sys/cam/mmc/mmc_sim.c | 2 | ||||
-rw-r--r-- | sys/cam/mmc/mmc_xpt.c | 2 | ||||
-rw-r--r-- | sys/dev/sdhci/sdhci.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/cam/mmc/mmc_sim.c b/sys/cam/mmc/mmc_sim.c index 2aae157c9542..0bb4c850f8eb 100644 --- a/sys/cam/mmc/mmc_sim.c +++ b/sys/cam/mmc/mmc_sim.c @@ -206,7 +206,7 @@ mmc_cam_sim_alloc(device_t dev, const char *name, struct mmc_sim *mmc_sim) mtx_init(&mmc_sim->mtx, sim_name, NULL, MTX_DEF); mmc_sim->sim = cam_sim_alloc(mmc_cam_sim_default_action, mmc_cam_default_poll, - name, mmc_sim, + name, mmc_sim, device_get_unit(dev), &mmc_sim->mtx, 1, 1, mmc_sim->devq); if (mmc_sim->sim == NULL) { diff --git a/sys/cam/mmc/mmc_xpt.c b/sys/cam/mmc/mmc_xpt.c index c94e74876ed7..a649946f096f 100644 --- a/sys/cam/mmc/mmc_xpt.c +++ b/sys/cam/mmc/mmc_xpt.c @@ -419,7 +419,7 @@ mmccam_start_discovery(struct cam_sim *sim) return; } - KASSERT(xpt_path_sim_device(&ccb->ccb_h.path) != NULL, + KASSERT(xpt_path_sim_device(ccb->ccb_h.path) != NULL, ("%s(%s): device is not initialized on sim's path", __func__, cam_sim_name(sim))); xpt_rescan(ccb); diff --git a/sys/dev/sdhci/sdhci.c b/sys/dev/sdhci/sdhci.c index 1ed521da8a70..bd30175e9f86 100644 --- a/sys/dev/sdhci/sdhci.c +++ b/sys/dev/sdhci/sdhci.c @@ -2484,7 +2484,7 @@ sdhci_start_slot(struct sdhci_slot *slot) mtx_init(&slot->sim_mtx, "sdhcisim", NULL, MTX_DEF); slot->sim = cam_sim_alloc(sdhci_cam_action, sdhci_cam_poll, - "sdhci_slot", slot, + "sdhci_slot", slot, device_get_unit(slot->dev), &slot->sim_mtx, 1, 1, slot->devq); if (slot->sim == NULL) { |