Date: Thu, 26 Feb 2015 07:47:36 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r279312 - in head/sys/arm: arm ti ti/am335x ti/omap4 Message-ID: <201502260747.t1Q7lavk033775@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Thu Feb 26 07:47:35 2015 New Revision: 279312 URL: https://svnweb.freebsd.org/changeset/base/279312 Log: Fix a number of -Wcast-qual warnings under sys/arm. No functional change. Submitted by: andrew MFC after: 3 days Modified: head/sys/arm/arm/disassem.c head/sys/arm/ti/am335x/am335x_scm_padconf.c head/sys/arm/ti/omap4/omap4_scm_padconf.c head/sys/arm/ti/ti_scm.h Modified: head/sys/arm/arm/disassem.c ============================================================================== --- head/sys/arm/arm/disassem.c Thu Feb 26 07:45:40 2015 (r279311) +++ head/sys/arm/arm/disassem.c Thu Feb 26 07:47:35 2015 (r279312) @@ -289,7 +289,7 @@ static void disassemble_printaddr(u_int vm_offset_t disasm(const disasm_interface_t *di, vm_offset_t loc, int altfmt) { - struct arm32_insn *i_ptr = (struct arm32_insn *)&arm32_i; + const struct arm32_insn *i_ptr = arm32_i; u_int insn; int matchp; Modified: head/sys/arm/ti/am335x/am335x_scm_padconf.c ============================================================================== --- head/sys/arm/ti/am335x/am335x_scm_padconf.c Thu Feb 26 07:45:40 2015 (r279311) +++ head/sys/arm/ti/am335x/am335x_scm_padconf.c Thu Feb 26 07:47:35 2015 (r279312) @@ -298,6 +298,6 @@ const static struct ti_scm_padconf ti_pa const struct ti_scm_device ti_scm_dev = { .padconf_muxmode_mask = 0x7, .padconf_sate_mask = 0x78, - .padstate = (struct ti_scm_padstate *) &ti_padstate_devmap, - .padconf = (struct ti_scm_padconf *) &ti_padconf_devmap, + .padstate = ti_padstate_devmap, + .padconf = ti_padconf_devmap, }; Modified: head/sys/arm/ti/omap4/omap4_scm_padconf.c ============================================================================== --- head/sys/arm/ti/omap4/omap4_scm_padconf.c Thu Feb 26 07:45:40 2015 (r279311) +++ head/sys/arm/ti/omap4/omap4_scm_padconf.c Thu Feb 26 07:47:35 2015 (r279312) @@ -298,6 +298,6 @@ const static struct ti_scm_padconf ti_pa const struct ti_scm_device ti_scm_dev = { .padconf_muxmode_mask = CONTROL_PADCONF_MUXMODE_MASK, .padconf_sate_mask = CONTROL_PADCONF_SATE_MASK, - .padstate = (struct ti_scm_padstate *) &ti_padstate_devmap, - .padconf = (struct ti_scm_padconf *) &ti_padconf_devmap, + .padstate = ti_padstate_devmap, + .padconf = ti_padconf_devmap, }; Modified: head/sys/arm/ti/ti_scm.h ============================================================================== --- head/sys/arm/ti/ti_scm.h Thu Feb 26 07:45:40 2015 (r279311) +++ head/sys/arm/ti/ti_scm.h Thu Feb 26 07:47:35 2015 (r279312) @@ -59,8 +59,8 @@ struct ti_scm_padstate { struct ti_scm_device { uint16_t padconf_muxmode_mask; uint16_t padconf_sate_mask; - struct ti_scm_padstate *padstate; - struct ti_scm_padconf *padconf; + const struct ti_scm_padstate *padstate; + const struct ti_scm_padconf *padconf; }; struct ti_scm_softc {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502260747.t1Q7lavk033775>