From owner-freebsd-wireless@FreeBSD.ORG Sun Aug 26 19:57:41 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 AA2F91065674 for ; Sun, 26 Aug 2012 19:57:41 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7DC958FC19 for ; Sun, 26 Aug 2012 19:57:41 +0000 (UTC) Received: by dadr6 with SMTP id r6so2021092dad.13 for ; Sun, 26 Aug 2012 12:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=pmdYkILvoUmvp3+vXw1Cf7uIEYALEyOkHUUbzNBpw9w=; b=LMDRQAxDTphOsCWdvo2JgG4xZhHkVRqaIvwSW5G4UoSwNKbEyFxzEYZJsG6VbSw7Rw keHVMJQDBcbPYE22RLvJTmIefZd+nvIa+MZGAb0g622qEiRqKApf7ongO37I7kBHtWAZ m8zNUyqjqozgcTNYhVgChDpigf8ZkvTyBVBHWaIObOCT73RnQV9r3yT3vodNQj/vricf 4/3JHJRblRafRnFuNjuSDHMcktg/GbaAKIS/a/t0Of21E9+R2w/InHcLWcWaJzfBmpfK Z0mjUBYQDoS0X1P7geB9plYXCc8cWTBcNG9I3s1CE7Om43VhMJqCsadnlzARZdFgPWi9 qOZQ== MIME-Version: 1.0 Received: by 10.68.138.169 with SMTP id qr9mr29066739pbb.27.1346011060809; Sun, 26 Aug 2012 12:57:40 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.36.106 with HTTP; Sun, 26 Aug 2012 12:57:40 -0700 (PDT) In-Reply-To: <50391B6A.5010302@gmail.com> References: <50391B6A.5010302@gmail.com> Date: Sun, 26 Aug 2012 12:57:40 -0700 X-Google-Sender-Auth: sPs-TSI4PJ0KCrous1V82aagRrk Message-ID: From: Adrian Chadd To: "Sevan / Venture37" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: 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: Sun, 26 Aug 2012 19:57:41 -0000 Hm, lemme see whether the descriptor size is wrong or not.. Adrian On 25 August 2012 11:37, Sevan / Venture37 wrote: > 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 > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" >