Fix a number of -Wcast-qual warnings under sys/arm. No functional

change.

Submitted by:	andrew
MFC after:	3 days
This commit is contained in:
dim 2015-02-26 07:47:35 +00:00
parent 9d45cb8cb5
commit ea6e3e6787
4 changed files with 7 additions and 7 deletions

View File

@ -289,7 +289,7 @@ static void disassemble_printaddr(u_int address);
vm_offset_t vm_offset_t
disasm(const disasm_interface_t *di, vm_offset_t loc, int altfmt) 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; u_int insn;
int matchp; int matchp;

View File

@ -298,6 +298,6 @@ const static struct ti_scm_padconf ti_padconf_devmap[] = {
const struct ti_scm_device ti_scm_dev = { const struct ti_scm_device ti_scm_dev = {
.padconf_muxmode_mask = 0x7, .padconf_muxmode_mask = 0x7,
.padconf_sate_mask = 0x78, .padconf_sate_mask = 0x78,
.padstate = (struct ti_scm_padstate *) &ti_padstate_devmap, .padstate = ti_padstate_devmap,
.padconf = (struct ti_scm_padconf *) &ti_padconf_devmap, .padconf = ti_padconf_devmap,
}; };

View File

@ -298,6 +298,6 @@ const static struct ti_scm_padconf ti_padconf_devmap[] = {
const struct ti_scm_device ti_scm_dev = { const struct ti_scm_device ti_scm_dev = {
.padconf_muxmode_mask = CONTROL_PADCONF_MUXMODE_MASK, .padconf_muxmode_mask = CONTROL_PADCONF_MUXMODE_MASK,
.padconf_sate_mask = CONTROL_PADCONF_SATE_MASK, .padconf_sate_mask = CONTROL_PADCONF_SATE_MASK,
.padstate = (struct ti_scm_padstate *) &ti_padstate_devmap, .padstate = ti_padstate_devmap,
.padconf = (struct ti_scm_padconf *) &ti_padconf_devmap, .padconf = ti_padconf_devmap,
}; };

View File

@ -59,8 +59,8 @@ struct ti_scm_padstate {
struct ti_scm_device { struct ti_scm_device {
uint16_t padconf_muxmode_mask; uint16_t padconf_muxmode_mask;
uint16_t padconf_sate_mask; uint16_t padconf_sate_mask;
struct ti_scm_padstate *padstate; const struct ti_scm_padstate *padstate;
struct ti_scm_padconf *padconf; const struct ti_scm_padconf *padconf;
}; };
struct ti_scm_softc { struct ti_scm_softc {