mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 04:29:11 -04:00
wifi: ath12k: 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 <colin.i.king@gmail.com> Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://patch.msgid.link/20240912144456.591494-1-colin.i.king@gmail.com
This commit is contained in:
committed by
Kalle Valo
parent
2b0996c764
commit
f8acfee2f8
@@ -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 = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user