From owner-svn-src-all@FreeBSD.ORG Thu Feb 26 07:47:37 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B12FF7BB; Thu, 26 Feb 2015 07:47:37 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 825269F9; Thu, 26 Feb 2015 07:47:37 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1Q7lbaI033779; Thu, 26 Feb 2015 07:47:37 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1Q7lavk033775; Thu, 26 Feb 2015 07:47:36 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201502260747.t1Q7lavk033775@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Thu, 26 Feb 2015 07:47:36 +0000 (UTC) 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 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 07:47:37 -0000 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 {