From owner-freebsd-wireless@FreeBSD.ORG Sat Aug 25 18:45:34 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C1A4F106564A for ; Sat, 25 Aug 2012 18:45:34 +0000 (UTC) (envelope-from venture37@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4B9C18FC0A for ; Sat, 25 Aug 2012 18:45:34 +0000 (UTC) Received: by eaak11 with SMTP id k11so901702eaa.13 for ; Sat, 25 Aug 2012 11:45:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=6XwyxYQ0QdusbWqa+LY7F3DyXYcP3pUlAaFr+b0Bm1k=; b=Imi+Bmk5DbyqunxUMUyWiHjgPiGpsM7M5svy91cpb1xMO4LZc9u/uMBiq5gedoDbwX 8XuwdC9wJULnXpyED2O/t3ZWWa1Ddlr3SpDN11D8L44g/hlxt2dXnbLY2degOBvrV3aX JG+dp8WAIUqLRZG2s7+HOTUiWR2nU53Ep/+DiSYkcue+7xgmsVDRDNcQP/EnzJTr7b6h g/J81PQyeZcZ83vDLOuM5f6R5eEG/L5AYqCvQItFAeHNBeCwtHqpO3uju1wgEIgLvdxU gMmANi/id9Y6vGA0WsvzoP0dn7mtnccbeIjftr6qg6hSKDeFvsX+G5htvNnB6SQQfKP5 Mm1g== Received: by 10.14.203.73 with SMTP id e49mr11739229eeo.27.1345919853747; Sat, 25 Aug 2012 11:37:33 -0700 (PDT) Received: from mini.office.venture37.com (mini.office.venture37.com. [2001:4b10:101a:2::10]) by mx.google.com with ESMTPS id m45sm38858739eep.16.2012.08.25.11.37.32 (version=SSLv3 cipher=OTHER); Sat, 25 Aug 2012 11:37:32 -0700 (PDT) Message-ID: <50391B6A.5010302@gmail.com> Date: Sat, 25 Aug 2012 19:37:30 +0100 From: Sevan / Venture37 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org Content-Type: multipart/mixed; boundary="------------060400090309000706020004" Subject: ath(4) error: array index 21 is past the end of the array (which contains, 21 elements) X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Aug 2012 18:45:34 -0000 This is a multi-part message in MIME format. --------------060400090309000706020004 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, On -CURRENT buildkernel fails when WITH_CLANG_IS_CC declared with: /usr/src/sys/modules/ath/../../dev/ath/if_ath_debug.c:184:24: error: array index 21 is past the end of the array (which contains 21 elements) [-Werror,-Warray-bounds] eds->ds_hw[20], eds->ds_hw[21]); ^ ~~ @/dev/ath/ath_hal/ah_desc.h:229:2: note: array 'ds_hw' declared here uint32_t ds_hw[21]; /* includes buf/len */ ^ 1 error generated. *** [if_ath_debug.o] Error code 1 Attached patch bumps array size to 22 in decleration which stops the error. Sevan --------------060400090309000706020004 Content-Type: text/plain; charset=UTF-8; name="ath_patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ath_patch.txt" Index: sys/dev/ath/ath_hal/ah_desc.h =================================================================== --- sys/dev/ath/ath_hal/ah_desc.h (revision 239685) +++ sys/dev/ath/ath_hal/ah_desc.h (working copy) @@ -226,7 +226,7 @@ struct ath_desc_txedma { uint32_t ds_info; uint32_t ds_link; - uint32_t ds_hw[21]; /* includes buf/len */ + uint32_t ds_hw[22]; /* includes buf/len */ }; struct ath_desc_status { --------------060400090309000706020004--