From owner-freebsd-wireless@FreeBSD.ORG Mon Aug 27 23:27:57 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4385010656A4 for ; Mon, 27 Aug 2012 23:27:57 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 154E58FC1E for ; Mon, 27 Aug 2012 23:27:57 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so8485015pbb.13 for ; Mon, 27 Aug 2012 16:27:56 -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=7/fQfCTKtwvVCUlesLHdVIzIGd9s4UW23+Yf6TWGwXE=; b=CqQ2F5hsnLK6kdsGHyYFc1sxNvv2n9l2kE7Yhg+VNlPva6LHdjXUk7nl3tLTsqfmWJ UQZjdpD8VD/LnDD1eWCgevPSvhEJqD1y5fhtBuFTT2npdsJNAFn6mcG7rFGiXohw4FBf kXZBbXuSB/dW9hf/xM45CilSgp6XNm/VpbHkxUB1yWlnHY3336YJhRz4tsaTogPLM20f mopgMas9iomoa8eU7w7vPqkqssTmIgG0Zu9Ev0/OvI2tQgfwEhPwIcibCPjdZH0vRvNe DGNv18em/jBB0Wpl8uVWu0AS+qX/bu73V1R4CTST06qFjNh8wXGIJ1hibk/N7TS8rOfV hPcA== MIME-Version: 1.0 Received: by 10.68.231.233 with SMTP id tj9mr37945698pbc.39.1346110076822; Mon, 27 Aug 2012 16:27:56 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.36.106 with HTTP; Mon, 27 Aug 2012 16:27:56 -0700 (PDT) In-Reply-To: References: <50391B6A.5010302@gmail.com> Date: Mon, 27 Aug 2012 16:27:56 -0700 X-Google-Sender-Auth: kPIIgFOR2kx7RtwsCeqlm3McCF8 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: Mon, 27 Aug 2012 23:27:57 -0000 Fixed in -HEAD, after checking what the ar9300 TX status descriptor format was. Thanks! Adrian On 26 August 2012 12:57, Adrian Chadd wrote: > 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" >>