]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Introduce a RMAN_IS_DEFAULT_RANGE() macro, and use it.
authorjhibbits <jhibbits@FreeBSD.org>
Sat, 20 Feb 2016 01:32:58 +0000 (01:32 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Sat, 20 Feb 2016 01:32:58 +0000 (01:32 +0000)
commitf8385663eeba2c10cd82a51c0a461a4f932458a3
tree1d99680c416ab999716f7e3fb78956be8804e81f
parent7a33cbc5f75355b9aacc299db55706229c9da4af
Introduce a RMAN_IS_DEFAULT_RANGE() macro, and use it.

This simplifies checking for default resource range for bus_alloc_resource(),
and improves readability.

This is part of, and related to, the migration of rman_res_t from u_long to
uintmax_t.

Discussed with: jhb
Suggested by: marcel
43 files changed:
sys/arm/at91/at91.c
sys/arm/at91/at91_pinctrl.c
sys/arm/cavium/cns11xx/econa.c
sys/arm/mv/mv_localbus.c
sys/arm/mv/mv_pci.c
sys/arm64/arm64/gic_fdt.c
sys/arm64/arm64/gic_v3_fdt.c
sys/arm64/arm64/nexus.c
sys/arm64/cavium/thunder_pcie.c
sys/arm64/cavium/thunder_pcie_fdt.c
sys/arm64/cavium/thunder_pcie_pem.c
sys/dev/acpica/acpi.c
sys/dev/eisa/eisaconf.c
sys/dev/fdt/simplebus.c
sys/dev/gpio/gpiobus.c
sys/dev/mca/mca_bus.c
sys/dev/ofw/ofwbus.c
sys/dev/pccard/pccard.c
sys/dev/siba/siba.c
sys/dev/vnic/mrml_bridge.c
sys/kern/subr_bus.c
sys/mips/adm5120/obio.c
sys/mips/alchemy/obio.c
sys/mips/atheros/apb.c
sys/mips/beri/beri_simplebus.c
sys/mips/idt/obio.c
sys/mips/mips/nexus.c
sys/mips/nlm/xlp_simplebus.c
sys/mips/rt305x/obio.c
sys/mips/sibyte/sb_zbbus.c
sys/powerpc/mpc85xx/isa.c
sys/riscv/riscv/nexus.c
sys/sparc64/central/central.c
sys/sparc64/ebus/ebus.c
sys/sparc64/fhc/fhc.c
sys/sparc64/isa/isa.c
sys/sparc64/pci/apb.c
sys/sparc64/sbus/sbus.c
sys/sparc64/sparc64/nexus.c
sys/sparc64/sparc64/upa.c
sys/sys/rman.h
sys/x86/isa/isa.c
sys/x86/x86/nexus.c