From nobody Wed May 3 00:29:48 2023 X-Original-To: dev-commits-src-branches@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 4Q9yWd1097z48N3L; Wed, 3 May 2023 00:29:49 +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 4Q9yWd06ZHz3n4p; Wed, 3 May 2023 00:29:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683073789; 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=ClTU+qtubo8tIPY2aUOGEvGgJQ1SM30/nzzHIIPJpU8=; b=IBXoek1GSfBHCZJDOVBvz7QG6sngi4Q04zcLYERTSVfabZ66Gqp3+8dt6ip4SXwZ/xnOpe xvxxh2yVXBmwEy50Nw5WbnlRCbOH+dLBZn2q/dBEbpw1O1V7XiHSLtyckXrfVCI6hrLpyT pjVIoyYgd3/9DdLyDEoLI/2hrdsJ0rEIQ8XOYg4u4t73720O0ef+vNBGocJjHzAgr5lGJo puK5aD5bQp46BEDjtCwpIZ5e0u7FyKGg3hxq7TDiooT2SiqZXhXQ7YCLdhRzllaO1Q6geZ E4ScYGgRihg0NXm0S97+hGlMuLzRWIKdsPMq+iAk6wsUJqkZofzy4iiJpg+2rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683073789; 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=ClTU+qtubo8tIPY2aUOGEvGgJQ1SM30/nzzHIIPJpU8=; b=iwu2GZYrvYAIrbUOspPFb4xcotBLiGhCrsK7ZB9R6YCmL3GQ74L0M9MqmwG+f2cKKLLSgA SQ9ea8NIreS7/298MQasBr3AgSFYCige6KW9RK42pTEfLl/Za27x97VYZjkBIxmpzTD58e maExHLbhc+ks2ZHE4Joklmsa34zC682XNSL7nb/0e9ftnJeyfpmc86RVnLtOK2Nmyr5M2Q jjM6y5k5CsrE0P9H1sAk7xFNDjA4bNERKwBlT3u9H66UlSDxG0DRiqQ0E51UMByjGKO/Hc uqxTacmxcjpH3EVMagxIAiMQoYT8cKTBGCfL5rVTsyk4GgFPuiiQBV4IwW3eAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683073789; a=rsa-sha256; cv=none; b=NJyYNNlvnIaokzGozWNuLt8kkyjpFmYe8kvxKePeJE12i/b+MRiHDfQZUwLP9DiyNTVaMg YcILUZFepJU5DJBqpN4FdvzfNRrP2EiX/M2+FA0QqiG898HiwduhYrTZvrzZmkqxvyA3k8 otoc56zVAMsB1wUPX2ALZ0LxHRnsfRFHV2blUs8yaLxsIWg4xzKlJ1aD2gsdVYl+hv7XH+ yWB6vmLpwb3S4KUj9Ro0sYe1/yK83Ix98oHVs4vgvbV0kEBrZbVfBLAl3srZChzaY64EmL 4x0LZoTEMMNzgkcjl0gaq/L1wb0ErYEP+/ARe+oyPstlxkaic6yImrgKTzUXdA== 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 4Q9yWc6FZ1z18TR; Wed, 3 May 2023 00:29:48 +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 3430TmQL072178; Wed, 3 May 2023 00:29:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3430Tmon072177; Wed, 3 May 2023 00:29:48 GMT (envelope-from git) Date: Wed, 3 May 2023 00:29:48 GMT Message-Id: <202305030029.3430Tmon072177@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: ca1b2ea863bd - stable/13 - ath: Fix mismatches in array bounds. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: ca1b2ea863bd1242dcddd149b9a752c81cb4c480 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ca1b2ea863bd1242dcddd149b9a752c81cb4c480 commit ca1b2ea863bd1242dcddd149b9a752c81cb4c480 Author: John Baldwin AuthorDate: 2022-12-07 20:30:42 +0000 Commit: John Baldwin CommitDate: 2023-05-03 00:17:32 +0000 ath: Fix mismatches in array bounds. Reported by: GCC -Warray-parameter Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D37542 (cherry picked from commit c1ebd4c98fb8feab6931a536390739fc115e1805) --- 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 f80f88c5df85..b90cba09b384 100644 --- a/sys/dev/ath/ath_hal/ar5212/ar5212.h +++ b/sys/dev/ath/ath_hal/ar5212/ar5212.h @@ -572,7 +572,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,