From 4c991ff32f75e62f15160edbe39bdbaef38ad71c Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 26 Feb 2015 07:47:35 +0000 Subject: [PATCH] Fix a number of -Wcast-qual warnings under sys/arm. No functional change. Submitted by: andrew MFC after: 3 days --- sys/arm/arm/disassem.c | 2 +- sys/arm/ti/am335x/am335x_scm_padconf.c | 4 ++-- sys/arm/ti/omap4/omap4_scm_padconf.c | 4 ++-- sys/arm/ti/ti_scm.h | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/arm/arm/disassem.c b/sys/arm/arm/disassem.c index 69b86822e08f..dbe533a4ab06 100644 --- a/sys/arm/arm/disassem.c +++ b/sys/arm/arm/disassem.c @@ -289,7 +289,7 @@ static void disassemble_printaddr(u_int address); 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; diff --git a/sys/arm/ti/am335x/am335x_scm_padconf.c b/sys/arm/ti/am335x/am335x_scm_padconf.c index c5de872704ed..dcadc8a69ab8 100644 --- a/sys/arm/ti/am335x/am335x_scm_padconf.c +++ b/sys/arm/ti/am335x/am335x_scm_padconf.c @@ -298,6 +298,6 @@ const static struct ti_scm_padconf ti_padconf_devmap[] = { 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, }; diff --git a/sys/arm/ti/omap4/omap4_scm_padconf.c b/sys/arm/ti/omap4/omap4_scm_padconf.c index af50e7a721b2..ca81186d56ea 100644 --- a/sys/arm/ti/omap4/omap4_scm_padconf.c +++ b/sys/arm/ti/omap4/omap4_scm_padconf.c @@ -298,6 +298,6 @@ const static struct ti_scm_padconf ti_padconf_devmap[] = { 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, }; diff --git a/sys/arm/ti/ti_scm.h b/sys/arm/ti/ti_scm.h index abe67a4eec64..7a2a5a895d54 100644 --- a/sys/arm/ti/ti_scm.h +++ b/sys/arm/ti/ti_scm.h @@ -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 {