From nobody Wed Dec 07 20:34:09 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NS8C52wnbz4jmNm; Wed, 7 Dec 2022 20:34:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NS8C52S33z3hRh; Wed, 7 Dec 2022 20:34:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670445249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LLW1Uw5fq+j0jBfPz5Wk+/rgr/ImWiLBT1KOpEQYTHw=; b=RULCYH1Z2AuG12eTfU9LM6J+bSByHmLE43oT9AxwrjX9rtmOcCzcASy/6qSQr7zJe3Zvby wc4NmZGjnBZGHyDXqjbDcUtkPG6HhsFS47OO8z538xKerU/9OUnLUvu3eKUrufbF5lJzGu 7IC+y8p2wni7xmGW2SN0kYQQIxdE8RiZA9XLxd76QdPpciWOIAUtMDj0sDh79OA8dTiFBt t5aFUQqFTPNo0c3cauoGgJMIhCZoN4KYt5amBbm75bW2z2J8YlSJI+UGQSS5jrKktsOxUy CIheJbXXSF85/P7jmvirKLhv9FCvQ7bx7oTnPhhumZv0ZSbVHD/UIQkFdOArUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670445249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LLW1Uw5fq+j0jBfPz5Wk+/rgr/ImWiLBT1KOpEQYTHw=; b=qlQygnNrK9Gbcx+j7FHoNiTwJf88/K7S+Xib4mwoq0038Eajd9PO5Vl43B7jdPtDLvv9pS PN1WBoD7wfCdmtt9DVrRbStssXSF8CU5BoUaY9x0lDUq0QuaOGQlMFkNq6vm+rvqhN9IsU XsOR22ZTKNHbYc2qfAeg2426R2aHIE5iwAVmi8WZW5M7fNI0vdPdLgfvW1FQ6ouQIqLcn3 E+iB4RF3WNqHYhZYWTmbEuE5QSrfNF0CxSoYndTdwBP09m254z9hnXJpcQgj8GJNbbLLul T0oBLKgrDoyV6jY32sGgeimZ08O4XLdsxZKHUriZuhT1UWcZ2cbz15qmD3tTBA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670445249; a=rsa-sha256; cv=none; b=nIn0BLu9l0xBmsFH7I75RKmXYEcZOEkXK0scf3q8XcVAvPd2MivhTcWXN+fE+KHBlYo4KQ 17gdt0ws8e1IS5+hrkKDpRB3PeZXnzCzIgWyTtgHT113LvzpBXu76qXW+UBpDmhNL+PPCs vk5NsJc0OnGeYEUdvzQLzh2tQRLJu1bolM6fJWUHMxndvBgVjchqwcrUzb6OoznupHZ9yK RP3DZnj8b9uPS38dt/RzMGaCQPBrr/MS0pc3puC2+wMh9zDXTRgZw0Mo1dQ88h/sS/HL67 GfzEBS0FXPDFwEquC9B5L+5lXSjUyOhNUT7e8zbi/Z4KcC30NVpu1TwYSfMxWw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NS8C51PsCzVbk; Wed, 7 Dec 2022 20:34:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2B7KY9hi088528; Wed, 7 Dec 2022 20:34:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B7KY9Cu088527; Wed, 7 Dec 2022 20:34:09 GMT (envelope-from git) Date: Wed, 7 Dec 2022 20:34:09 GMT Message-Id: <202212072034.2B7KY9Cu088527@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: c1ebd4c98fb8 - main - ath: Fix mismatches in array bounds. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c1ebd4c98fb8feab6931a536390739fc115e1805 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c1ebd4c98fb8feab6931a536390739fc115e1805 commit c1ebd4c98fb8feab6931a536390739fc115e1805 Author: John Baldwin AuthorDate: 2022-12-07 20:30:42 +0000 Commit: John Baldwin CommitDate: 2022-12-07 20:30:42 +0000 ath: Fix mismatches in array bounds. Reported by: GCC -Warray-parameter Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D37542 --- sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h | 2 +- sys/dev/ath/ath_hal/ar5212/ar5212.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h index 49e887353e52..da74b4031860 100644 --- a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h +++ b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300.h @@ -1411,7 +1411,7 @@ extern void ar9300_iq_calibration(struct ath_hal *ah, u_int8_t num_chains); extern void ar9300_temp_comp_cal_collect(struct ath_hal *ah); extern void ar9300_temp_comp_calibration(struct ath_hal *ah, u_int8_t num_chains); extern int16_t ar9300_get_min_cca_pwr(struct ath_hal *ah); -extern void ar9300_upload_noise_floor(struct ath_hal *ah, int is2G, int16_t nfarray[]); +extern void ar9300_upload_noise_floor(struct ath_hal *ah, int is2G, int16_t nfarray[HAL_NUM_NF_READINGS]); extern HAL_BOOL ar9300_set_tx_power_limit(struct ath_hal *ah, u_int32_t limit, u_int16_t extra_txpow, u_int16_t tpc_in_db); diff --git a/sys/dev/ath/ath_hal/ar5212/ar5212.h b/sys/dev/ath/ath_hal/ar5212/ar5212.h index 3a08c1911a1c..15cf98c1e07a 100644 --- a/sys/dev/ath/ath_hal/ar5212/ar5212.h +++ b/sys/dev/ath/ath_hal/ar5212/ar5212.h @@ -574,7 +574,7 @@ extern HAL_BOOL ar5212ResetCalValid(struct ath_hal *ah, const struct ieee80211_channel *); extern int16_t ar5212GetNoiseFloor(struct ath_hal *ah); extern void ar5212InitNfCalHistBuffer(struct ath_hal *); -extern int16_t ar5212GetNfHistMid(const int16_t calData[]); +extern int16_t ar5212GetNfHistMid(const int16_t calData[AR512_NF_CAL_HIST_MAX]); extern void ar5212SetSpurMitigation(struct ath_hal *, const struct ieee80211_channel *); extern HAL_BOOL ar5212SetAntennaSwitchInternal(struct ath_hal *ah,