From owner-svn-src-all@FreeBSD.ORG Tue Feb 10 07:35:17 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 3CF0B187; Tue, 10 Feb 2015 07:35:17 +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 26F4CFE7; Tue, 10 Feb 2015 07:35:17 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1A7ZH7Y035105; Tue, 10 Feb 2015 07:35:17 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1A7ZHhj035104; Tue, 10 Feb 2015 07:35:17 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201502100735.t1A7ZHhj035104@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Tue, 10 Feb 2015 07:35:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r278496 - stable/10/sys/contrib/dev/ath/ath_hal/ar9300 X-SVN-Group: stable-10 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: Tue, 10 Feb 2015 07:35:17 -0000 Author: dim Date: Tue Feb 10 07:35:16 2015 New Revision: 278496 URL: https://svnweb.freebsd.org/changeset/base/278496 Log: MFC r278348: Fix a number of -Wcast-qual warnings in ath's ar9300_attach.c, by making the ia_array field of struct ar9300_ini_array const, and removing the const-dropping casts. No functional change. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D1725 Modified: stable/10/sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h ============================================================================== --- stable/10/sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h Tue Feb 10 06:35:16 2015 (r278495) +++ stable/10/sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h Tue Feb 10 07:35:16 2015 (r278496) @@ -317,12 +317,12 @@ typedef struct { /* Support for multiple INIs */ struct ar9300_ini_array { - u_int32_t *ia_array; + const u_int32_t *ia_array; u_int32_t ia_rows; u_int32_t ia_columns; }; #define INIT_INI_ARRAY(iniarray, array, rows, columns) do { \ - (iniarray)->ia_array = (u_int32_t *)(array); \ + (iniarray)->ia_array = (const u_int32_t *)(array); \ (iniarray)->ia_rows = (rows); \ (iniarray)->ia_columns = (columns); \ } while (0)