wifi: mac80211: make read-only array svc_id static const
Subsystems (2)
PATCH 1/1 wifi: mac80211: make read-only array svc_id static const
Don't populate the read-only array svc_id on the stack at run time, instead make it static const.
Signed-off-by Colin Ian King <[email protected]>
--- drivers/net/wireless/ath/ath12k/wmi.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/net/wireless/ath/ath12k/wmi.c +5 -3
@@ -7284,9 +7284,11 @@ static int ath12k_connect_pdev_htc_service(struct ath12k_base *ab, u32 pdev_idx) {int status; -u32 svc_id[] = {ATH12K_HTC_SVC_ID_WMI_CONTROL , -ATH12K_HTC_SVC_ID_WMI_CONTROL_MAC1 , -ATH12K_HTC_SVC_ID_WMI_CONTROL_MAC2 }; +static const u32 svc_id[] = { +ATH12K_HTC_SVC_ID_WMI_CONTROL , +ATH12K_HTC_SVC_ID_WMI_CONTROL_MAC1 , +ATH12K_HTC_SVC_ID_WMI_CONTROL_MAC2 + };struct ath12k_htc_svc_conn_req conn_req = {};struct ath12k_htc_svc_conn_resp conn_resp = {};
Signature · 1 line
2.39.2
On 9/12/2024 7:44 AM, Colin Ian King wrote:
subject prefix should be wifi: ath12k:
but no need to re-send; Kalle can fix this in the pending branch
Quoted 4 lines
Don't populate the read-only array
svc_idon the stack at run time, instead make it static const.Signed-off-by Colin Ian King <[email protected]>
Acked-by Jeff Johnson <[email protected]>
Quoted 6 lines · Colin Ian King
Don't populate the read-only array
svc_idon the stack at run time, instead make it static const.Signed-off-by Colin Ian King <[email protected]>Acked-by Jeff Johnson <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
f8acfee2f8e0 wifi: ath12k: make read-only array svc_id static const
Signature · 4 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches https://docs.kernel.org/process/submitting-patches.html