mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
sdhci_pci(4): Remove incorrect __unused
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
The slot parameter actually is used as index into the memory resource.
Fixes: c11bbc7d
This commit is contained in:
parent
61002e0371
commit
9b5d6ab1be
1 changed files with 13 additions and 13 deletions
|
|
@ -171,7 +171,7 @@ SYSCTL_INT(_hw_sdhci, OID_AUTO, enable_msi, CTLFLAG_RDTUN, &sdhci_enable_msi,
|
|||
0, "Enable MSI interrupts");
|
||||
|
||||
static uint8_t
|
||||
sdhci_pci_read_1(device_t dev, struct sdhci_slot *slot __unused, bus_size_t off)
|
||||
sdhci_pci_read_1(device_t dev, struct sdhci_slot *slot, bus_size_t off)
|
||||
{
|
||||
struct sdhci_pci_softc *sc = device_get_softc(dev);
|
||||
|
||||
|
|
@ -181,8 +181,8 @@ sdhci_pci_read_1(device_t dev, struct sdhci_slot *slot __unused, bus_size_t off)
|
|||
}
|
||||
|
||||
static void
|
||||
sdhci_pci_write_1(device_t dev, struct sdhci_slot *slot __unused,
|
||||
bus_size_t off, uint8_t val)
|
||||
sdhci_pci_write_1(device_t dev, struct sdhci_slot *slot, bus_size_t off,
|
||||
uint8_t val)
|
||||
{
|
||||
struct sdhci_pci_softc *sc = device_get_softc(dev);
|
||||
|
||||
|
|
@ -192,7 +192,7 @@ sdhci_pci_write_1(device_t dev, struct sdhci_slot *slot __unused,
|
|||
}
|
||||
|
||||
static uint16_t
|
||||
sdhci_pci_read_2(device_t dev, struct sdhci_slot *slot __unused, bus_size_t off)
|
||||
sdhci_pci_read_2(device_t dev, struct sdhci_slot *slot, bus_size_t off)
|
||||
{
|
||||
struct sdhci_pci_softc *sc = device_get_softc(dev);
|
||||
|
||||
|
|
@ -202,8 +202,8 @@ sdhci_pci_read_2(device_t dev, struct sdhci_slot *slot __unused, bus_size_t off)
|
|||
}
|
||||
|
||||
static void
|
||||
sdhci_pci_write_2(device_t dev, struct sdhci_slot *slot __unused,
|
||||
bus_size_t off, uint16_t val)
|
||||
sdhci_pci_write_2(device_t dev, struct sdhci_slot *slot, bus_size_t off,
|
||||
uint16_t val)
|
||||
{
|
||||
struct sdhci_pci_softc *sc = device_get_softc(dev);
|
||||
|
||||
|
|
@ -213,7 +213,7 @@ sdhci_pci_write_2(device_t dev, struct sdhci_slot *slot __unused,
|
|||
}
|
||||
|
||||
static uint32_t
|
||||
sdhci_pci_read_4(device_t dev, struct sdhci_slot *slot __unused, bus_size_t off)
|
||||
sdhci_pci_read_4(device_t dev, struct sdhci_slot *slot, bus_size_t off)
|
||||
{
|
||||
struct sdhci_pci_softc *sc = device_get_softc(dev);
|
||||
|
||||
|
|
@ -223,8 +223,8 @@ sdhci_pci_read_4(device_t dev, struct sdhci_slot *slot __unused, bus_size_t off)
|
|||
}
|
||||
|
||||
static void
|
||||
sdhci_pci_write_4(device_t dev, struct sdhci_slot *slot __unused,
|
||||
bus_size_t off, uint32_t val)
|
||||
sdhci_pci_write_4(device_t dev, struct sdhci_slot *slot, bus_size_t off,
|
||||
uint32_t val)
|
||||
{
|
||||
struct sdhci_pci_softc *sc = device_get_softc(dev);
|
||||
|
||||
|
|
@ -234,8 +234,8 @@ sdhci_pci_write_4(device_t dev, struct sdhci_slot *slot __unused,
|
|||
}
|
||||
|
||||
static void
|
||||
sdhci_pci_read_multi_4(device_t dev, struct sdhci_slot *slot __unused,
|
||||
bus_size_t off, uint32_t *data, bus_size_t count)
|
||||
sdhci_pci_read_multi_4(device_t dev, struct sdhci_slot *slot, bus_size_t off,
|
||||
uint32_t *data, bus_size_t count)
|
||||
{
|
||||
struct sdhci_pci_softc *sc = device_get_softc(dev);
|
||||
|
||||
|
|
@ -243,8 +243,8 @@ sdhci_pci_read_multi_4(device_t dev, struct sdhci_slot *slot __unused,
|
|||
}
|
||||
|
||||
static void
|
||||
sdhci_pci_write_multi_4(device_t dev, struct sdhci_slot *slot __unused,
|
||||
bus_size_t off, uint32_t *data, bus_size_t count)
|
||||
sdhci_pci_write_multi_4(device_t dev, struct sdhci_slot *slot, bus_size_t off,
|
||||
uint32_t *data, bus_size_t count)
|
||||
{
|
||||
struct sdhci_pci_softc *sc = device_get_softc(dev);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue