Date: Sat, 24 Feb 2018 14:34:23 +0000 (UTC) From: Olivier Houchard <cognet@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329908 - head/sys/arm/arm Message-ID: <201802241434.w1OEYNwM001176@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cognet Date: Sat Feb 24 14:34:23 2018 New Revision: 329908 URL: https://svnweb.freebsd.org/changeset/base/329908 Log: Use NULL as a mtx type instead of "", as it otherwise confuses WITNESS. Modified: head/sys/arm/arm/gic.c Modified: head/sys/arm/arm/gic.c ============================================================================== --- head/sys/arm/arm/gic.c Sat Feb 24 13:04:02 2018 (r329907) +++ head/sys/arm/arm/gic.c Sat Feb 24 14:34:23 2018 (r329908) @@ -448,7 +448,7 @@ arm_gic_attach(device_t dev) gic_sc = sc; /* Initialize mutex */ - mtx_init(&sc->mutex, "GIC lock", "", MTX_SPIN); + mtx_init(&sc->mutex, "GIC lock", NULL, MTX_SPIN); /* Distributor Interface */ sc->gic_d_bst = rman_get_bustag(sc->gic_res[0]); @@ -1423,7 +1423,7 @@ arm_gicv2m_attach(device_t dev) arm_gic_reserve_msi_range(device_get_parent(dev), sc->sc_spi_start, sc->sc_spi_count); - mtx_init(&sc->sc_mutex, "GICv2m lock", "", MTX_DEF); + mtx_init(&sc->sc_mutex, "GICv2m lock", NULL, MTX_DEF); intr_msi_register(dev, sc->sc_xref);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802241434.w1OEYNwM001176>