From nobody Mon Oct 6 13:20:33 2025 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82C2721FF45 for ; Sun, 20 Jul 2025 15:24:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753025062; cv=none; b=RtM6Wb4/E/EUOPbFjfMpecL0lx7vf4MjsZX8UzupH6tA70c54glrVF2pglcBsX7sn1HE9XeXNCs8GMO/8pbMmjLuh2L0Xrq6T5HMgyRY1Ole2A/nVSoq++8h7voLKq5zRM6xodTWVtPqCd3mbrJ+1eX58jVbYivM2SU5nRxMGYs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753025062; c=relaxed/simple; bh=VonT8OUG5BYOL1LU3TMt5EhQfdnWhHOp4DzemmQJig8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=TqL60uUk6ZK4THdFOePGlpzPYkn0wfBFNBi7qST8vJGFVKGY87hs6VbDVdWne9+BbP7irzWryRRVi0VeHgAKuLpJCmN378/emgVXyvQJhUIJS5X6eQXuI4h6h6ibsztxOmjkEaNoMBO3xMQvmguUWIjOjokb9QDxw0e9UoTr8sg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=oecnPwV/; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="oecnPwV/" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 56KBo3xR026587 for ; Sun, 20 Jul 2025 15:24:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=plVALh5uPZThnO1rZ7+UDO YClCnFOvf+/QqHJf2FtbQ=; b=oecnPwV/75vRps/Q4WxkZCp+FZLQwP2jAhANSm uvuP604FnJEPhTCJC5iXbo7YuFSXRTsd413E2pWKfLKipElz91ToXCW57/gZQGxO NodRCBqm0+kYNJ/APcbY793VrDCYE8ursAcN/RGsjuCG+/MiycnJpbQgfjNFsK5D 92z0Okk5EbSbC2uGqeURONgaUte264s6vDc0fvoOy1togMbOCQHObNZpS7Grh1f7 j+/6cLXEJy60hGN+uSJUXMUC+fqn9JFFET2PM0WunuAITisI/93yNV4C/IkXhxp5 h1hNlsNDgjkOMjOjStXpKFpZ8Tb46U73Mz1oSHIYhDGtzKqA== Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48044dact9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sun, 20 Jul 2025 15:24:19 +0000 (GMT) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-74943a7cd9aso5429612b3a.3 for ; Sun, 20 Jul 2025 08:24:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753025057; x=1753629857; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=plVALh5uPZThnO1rZ7+UDOYClCnFOvf+/QqHJf2FtbQ=; b=BYijbxHq+aqiCBSyy+4TyGWszU/zTuq8rk3ZB8nIDCo4p+pGvr45dYcIWM5fkOycAB oBZ8R44CTf+HJlf/t83BKm0PBRI65a/Tn13mt/V4D2xHvtP3+7SeRLNvOzrxHSjc9QDM J/9kL5jR0SdTiC9806QPBJRPAs+E9afvHQfoC8R0VfGJfU7YBWU5N5AVx/ELAFDQQgJn 45/9JzX2SGjWoDFOU5RjyTxmdnXk9mH+n0SyTzKFGZKYJE3bp4GySTEiAKrDyMzJwoey vpQuzacvioNFj4dPjzK68yVrK/333bxNZny4D10ApQ1JPEqqX0Xft7+NkCyUf+f12cep Ut6Q== X-Forwarded-Encrypted: i=1; AJvYcCWblOleam67tAFP4hpvLB2H8WymC1JhI4HZMlA/5y5uzkkr9LU6ObJXWy1ail0u8g5r1kj/7vwRaoWyDro=@vger.kernel.org X-Gm-Message-State: AOJu0Yz+rSuYI+5WgGYKgL3JPB9liuSezuxZVACbCUUO15i+Yv79VPR6 SGkI3/aSVz7zXw9W9AiDtDrVD7Io/t9qlffaNnKLhb28uFQZZ8wsvlPvsXPlOFMkZEWIHajuHeL I/VY0WVIpX3lGRvrZjmmw6f1JcKWykjPf4QWCML1n7uVZEkixiQgx1BKXCuT8CMGbGkAvo2f7Cc Q= X-Gm-Gg: ASbGncuD6LUPqbr7sPPoo7oqZlf+9QeOXr1MS4qSx1vC6Y3gUXOHNn3kpyn2JvbiIQt pTLSNvz3f8uG8sdcI+SFn1Zvil9y0v3dLShWd2pi+NPGyt7pGAAL/orRPykHfETwLxXm0VSfidH kwW3IeyVlgfgYdVk83cGtrlwSbc9rryLyhRw6DsQWA+M4u2UPe/J8ocu2k9BSyzwmaoomL4VMqb xbrqdFbaXc28WCcvCsiihBc+R0SuzP4+KlJOzZyQ/ZT0ViJEJTXIh+GM6R2GxatuZIknHjGOOzB a0jd5VHS2Nj4fnCJqBoybCZqcat4pFl7wdITRFC/01elYfLjASB2fCA3gQO0O+kScB8cz6eSq8b R X-Received: by 2002:a05:6a00:ad5:b0:730:95a6:3761 with SMTP id d2e1a72fcca58-7572316302emr26726794b3a.3.1753025057095; Sun, 20 Jul 2025 08:24:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEMr+rKXYpcuBcjQpGI9EPcvXA0XsbLH7oIyf+np5eJ/phFQ4eHj7c5E/qyHq99ZPbpONICvw== X-Received: by 2002:a05:6a00:ad5:b0:730:95a6:3761 with SMTP id d2e1a72fcca58-7572316302emr26726753b3a.3.1753025056477; Sun, 20 Jul 2025 08:24:16 -0700 (PDT) Received: from [169.254.0.1] (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-759c89d582bsm4288656b3a.58.2025.07.20.08.24.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jul 2025 08:24:16 -0700 (PDT) From: Jeff Johnson Date: Sun, 20 Jul 2025 08:24:14 -0700 Subject: [PATCH ath-next] wifi: ath12k: Prefer {} to {0} in initializers Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250720-ath12k-zero-brace-v1-1-d8c8ca9d40a8@oss.qualcomm.com> X-B4-Tracking: v=1; b=H4sIAB0KfWgC/22NwQrCMBBEf6Xs2S3dBKn15H9ID2my2qBtNImhW vLvhuLRy8AwM29WCOwtBzhWK3hONlg3F0O7CvSo5iujNcWDaMS+aemAKo4kbvhh73DwSjNSp7Q 0bEgPBGX38Hyxy8Y8Q6njzEuEviSjDdH593aWaMt/3O4PNxESttJQJ1mwbPTJhVA/X+qu3TTVR aDPOX8BttmumsMAAAA= X-Change-ID: 20250718-ath12k-zero-brace-19ac3ded1cb1 To: Jeff Johnson Cc: linux-wireless@vger.kernel.org, ath12k@lists.infradead.org, linux-kernel@vger.kernel.org, Jeff Johnson X-Mailer: b4 0.14.2 X-Authority-Analysis: v=2.4 cv=BJ6zrEQG c=1 sm=1 tr=0 ts=687d0a23 cx=c_pps a=WW5sKcV1LcKqjgzy2JUPuA==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=Wb1JkmetP80A:10 a=EUspDBNiAAAA:8 a=8rE0DOS6Ath7_zZPqtsA:9 a=QEXdDO2ut3YA:10 a=OpyuDcXvxspvyRM73sMx:22 X-Proofpoint-GUID: -FvsNA-gaX9kl6_oqTLMEQRYgEBdYL0x X-Proofpoint-ORIG-GUID: -FvsNA-gaX9kl6_oqTLMEQRYgEBdYL0x X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzIwMDE0OCBTYWx0ZWRfXxwu7GosMNn1O UFQn/gPLJpwovxL4CBU30PsXJ7TIscQBWXPdeUIA20zw7b6zW2g1tQgf3wNsj7zRGfsaQP9PcuS uVNxl7+hN2hD8DxjA/Jp15w7e04f6kmup9sR3UVpC1Z0Z0kgIObMVvkRMW59qavQe+oY33teROE JQX4bBmQifZer0qrE1k8mAgqsiQ2t1vIdRkLxUfgI6RFDW0Bgfda77a5456O1X76Ldiu+rXW3nc y1RuunUftgN6Y85CBb28nEktGimw0uXbFlqnSa+wyu8NOJedlVK7GfZeCJpzKTMtdh7zlycSUDp RymSVbmlabipJQsTSEYbgYJcFfnKAJKi/SDI6+yp8xG/8Y8P0nSqAgnFK46aECQ6STf2gKQA1aq AChtD7G3SSgAvHGVJ/ezjgOgzhH6aJ9bynQifiw8D+UFGbAMVXusZYEOrn14+YyenBpjsnn6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-07-20_01,2025-07-17_02,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 spamscore=0 mlxlogscore=999 suspectscore=0 impostorscore=0 phishscore=0 adultscore=0 mlxscore=0 malwarescore=0 bulkscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507200148 Prefer {} to {0} in initializers since {} works even when the first member is not a scalar. Generated using: sed -i 's/{[[:space:]]*0[[:space:]]*}/{}/g' drivers/net/wireless/ath/ath12k= /* Compile tested only. Signed-off-by: Jeff Johnson --- drivers/net/wireless/ath/ath12k/ce.c | 2 +- drivers/net/wireless/ath/ath12k/core.c | 2 +- drivers/net/wireless/ath/ath12k/dbring.c | 3 ++- drivers/net/wireless/ath/ath12k/debugfs.c | 8 ++++---- drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c | 12 ++++++------ drivers/net/wireless/ath/ath12k/dp.c | 6 +++--- drivers/net/wireless/ath/ath12k/dp_rx.c | 18 +++++++++--------- drivers/net/wireless/ath/ath12k/dp_tx.c | 10 +++++----- drivers/net/wireless/ath/ath12k/mac.c | 16 ++++++++-------- drivers/net/wireless/ath/ath12k/pci.c | 4 ++-- drivers/net/wireless/ath/ath12k/wmi.c | 14 +++++++------- 11 files changed, 48 insertions(+), 47 deletions(-) diff --git a/drivers/net/wireless/ath/ath12k/ce.c b/drivers/net/wireless/at= h/ath12k/ce.c index f7c15b547504d57984c482fceaff010e8b75bc22..f93a419abf65ec6e9b31e22c78c= 8c2cdd7bdbc76 100644 --- a/drivers/net/wireless/ath/ath12k/ce.c +++ b/drivers/net/wireless/ath/ath12k/ce.c @@ -578,7 +578,7 @@ static int ath12k_ce_init_ring(struct ath12k_base *ab, struct ath12k_ce_ring *ce_ring, int ce_id, enum hal_ring_type type) { - struct hal_srng_params params =3D { 0 }; + struct hal_srng_params params =3D {}; int ret; =20 params.ring_base_paddr =3D ce_ring->base_addr_ce_space; diff --git a/drivers/net/wireless/ath/ath12k/core.c b/drivers/net/wireless/= ath/ath12k/core.c index bf46acb542682d5c20d2faab09d1e4f59e09f771..5d494c5cdc0da3189640751b8d1= 91fa939ac3ff5 100644 --- a/drivers/net/wireless/ath/ath12k/core.c +++ b/drivers/net/wireless/ath/ath12k/core.c @@ -218,7 +218,7 @@ static int __ath12k_core_create_board_name(struct ath12= k_base *ab, char *name, bool bus_type_mode, bool with_default) { /* strlen(',variant=3D') + strlen(ab->qmi.target.bdf_ext) */ - char variant[9 + ATH12K_QMI_BDF_EXT_STR_LENGTH] =3D { 0 }; + char variant[9 + ATH12K_QMI_BDF_EXT_STR_LENGTH] =3D {}; =20 if (with_variant && ab->qmi.target.bdf_ext[0] !=3D '\0') scnprintf(variant, sizeof(variant), ",variant=3D%s", diff --git a/drivers/net/wireless/ath/ath12k/dbring.c b/drivers/net/wireles= s/ath/ath12k/dbring.c index 788160c84c6868a9ac5134d45079b17ad220ca9b..6604dacea2ae59868d7ae3389f2= fc0be561e6d36 100644 --- a/drivers/net/wireless/ath/ath12k/dbring.c +++ b/drivers/net/wireless/ath/ath12k/dbring.c @@ -2,6 +2,7 @@ /* * Copyright (c) 2019-2021 The Linux Foundation. All rights reserved. * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights res= erved. + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. */ =20 #include "core.h" @@ -117,7 +118,7 @@ int ath12k_dbring_wmi_cfg_setup(struct ath12k *ar, struct ath12k_dbring *ring, enum wmi_direct_buffer_module id) { - struct ath12k_wmi_pdev_dma_ring_cfg_arg arg =3D {0}; + struct ath12k_wmi_pdev_dma_ring_cfg_arg arg =3D {}; int ret; =20 if (id >=3D WMI_DIRECT_BUF_MAX) diff --git a/drivers/net/wireless/ath/ath12k/debugfs.c b/drivers/net/wirele= ss/ath/ath12k/debugfs.c index 23da93afaa5c25e806c9859dbbdd796afd23d78a..16601a8c3644812489bf20b2777= 906ca699207bc 100644 --- a/drivers/net/wireless/ath/ath12k/debugfs.c +++ b/drivers/net/wireless/ath/ath12k/debugfs.c @@ -52,7 +52,7 @@ ath12k_write_simulate_fw_crash(struct file *file, struct ath12k_base *ab =3D file->private_data; struct ath12k_pdev *pdev; struct ath12k *ar =3D NULL; - char buf[32] =3D {0}; + char buf[32] =3D {}; int i, ret; ssize_t rc; =20 @@ -816,7 +816,7 @@ static ssize_t ath12k_write_extd_rx_stats(struct file *= file, size_t count, loff_t *ppos) { struct ath12k *ar =3D file->private_data; - struct htt_rx_ring_tlv_filter tlv_filter =3D {0}; + struct htt_rx_ring_tlv_filter tlv_filter =3D {}; u32 ring_id, rx_filter =3D 0; bool enable; int ret, i; @@ -1217,7 +1217,7 @@ void ath12k_debugfs_pdev_create(struct ath12k_base *a= b) void ath12k_debugfs_soc_create(struct ath12k_base *ab) { bool dput_needed; - char soc_name[64] =3D { 0 }; + char soc_name[64] =3D {}; struct dentry *debugfs_ath12k; =20 debugfs_ath12k =3D debugfs_lookup("ath12k", NULL); @@ -1470,7 +1470,7 @@ void ath12k_debugfs_register(struct ath12k *ar) struct ath12k_base *ab =3D ar->ab; struct ieee80211_hw *hw =3D ar->ah->hw; char pdev_name[5]; - char buf[100] =3D {0}; + char buf[100] =3D {}; =20 scnprintf(pdev_name, sizeof(pdev_name), "%s%d", "mac", ar->pdev_idx); =20 diff --git a/drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c b/drivers/= net/wireless/ath/ath12k/debugfs_htt_stats.c index 96c834b987db5711fd496539ff67e201b6ed074a..48b010a1b7566db364d74b1ddf5= de900a0b37474 100644 --- a/drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c +++ b/drivers/net/wireless/ath/ath12k/debugfs_htt_stats.c @@ -2024,7 +2024,7 @@ ath12k_htt_print_stats_string_tlv(const void *tag_buf= , u16 tag_len, u8 i; u16 index =3D 0; u32 datum; - char data[ATH12K_HTT_MAX_STRING_LEN] =3D {0}; + char data[ATH12K_HTT_MAX_STRING_LEN] =3D {}; =20 tag_len =3D tag_len >> 2; =20 @@ -3081,7 +3081,7 @@ ath12k_htt_print_ul_mumimo_trig_stats(const void *tag= _buf, u16 tag_len, struct debug_htt_stats_req *stats_req) { const struct ath12k_htt_rx_ul_mumimo_trig_stats_tlv *htt_stats_buf =3D ta= g_buf; - char str_buf[ATH12K_HTT_MAX_STRING_LEN] =3D {0}; + char str_buf[ATH12K_HTT_MAX_STRING_LEN] =3D {}; u32 buf_len =3D ATH12K_HTT_STATS_BUF_SIZE; u32 len =3D stats_req->buf_len; u8 *buf =3D stats_req->buf; @@ -3642,7 +3642,7 @@ ath12k_htt_print_dlpager_stats_tlv(const void *tag_bu= f, u16 tag_len, u8 *buf =3D stats_req->buf; u8 pg_locked; u8 pg_unlock; - char str_buf[ATH12K_HTT_MAX_STRING_LEN] =3D {0}; + char str_buf[ATH12K_HTT_MAX_STRING_LEN] =3D {}; =20 if (tag_len < sizeof(*stat_buf)) return; @@ -5923,7 +5923,7 @@ static ssize_t ath12k_write_htt_stats_type(struct fil= e *file, { struct ath12k *ar =3D file->private_data; enum ath12k_dbg_htt_ext_stats_type type; - unsigned int cfg_param[4] =3D {0}; + unsigned int cfg_param[4] =3D {}; const int size =3D 32; int num_args; =20 @@ -5973,7 +5973,7 @@ static int ath12k_debugfs_htt_stats_req(struct ath12k= *ar) enum ath12k_dbg_htt_ext_stats_type type =3D stats_req->type; u64 cookie; int ret, pdev_id; - struct htt_ext_stats_cfg_params cfg_params =3D { 0 }; + struct htt_ext_stats_cfg_params cfg_params =3D {}; =20 lockdep_assert_wiphy(ath12k_ar_to_hw(ar)->wiphy); =20 @@ -6112,7 +6112,7 @@ static ssize_t ath12k_write_htt_stats_reset(struct fi= le *file, { struct ath12k *ar =3D file->private_data; enum ath12k_dbg_htt_ext_stats_type type; - struct htt_ext_stats_cfg_params cfg_params =3D { 0 }; + struct htt_ext_stats_cfg_params cfg_params =3D {}; u8 param_pos; int ret; =20 diff --git a/drivers/net/wireless/ath/ath12k/dp.c b/drivers/net/wireless/at= h/ath12k/dp.c index d80af435959a8cd0e84f6e2bce89473331bd7f72..d6435dad61a11175fc6cd55004b= 9a479e2e6621c 100644 --- a/drivers/net/wireless/ath/ath12k/dp.c +++ b/drivers/net/wireless/ath/ath12k/dp.c @@ -242,7 +242,7 @@ int ath12k_dp_srng_setup(struct ath12k_base *ab, struct= dp_srng *ring, enum hal_ring_type type, int ring_num, int mac_id, int num_entries) { - struct hal_srng_params params =3D { 0 }; + struct hal_srng_params params =3D {}; int entry_sz =3D ath12k_hal_srng_get_entrysize(ab, type); int max_entries =3D ath12k_hal_srng_get_max_entries(ab, type); int ret; @@ -1084,8 +1084,8 @@ int ath12k_dp_pdev_alloc(struct ath12k_base *ab) =20 int ath12k_dp_htt_connect(struct ath12k_dp *dp) { - struct ath12k_htc_svc_conn_req conn_req =3D {0}; - struct ath12k_htc_svc_conn_resp conn_resp =3D {0}; + struct ath12k_htc_svc_conn_req conn_req =3D {}; + struct ath12k_htc_svc_conn_resp conn_resp =3D {}; int status; =20 conn_req.ep_ops.ep_tx_complete =3D ath12k_dp_htt_htc_tx_complete; diff --git a/drivers/net/wireless/ath/ath12k/dp_rx.c b/drivers/net/wireless= /ath/ath12k/dp_rx.c index 34072ee5b1ec2a3d11f7cbbecd824b47e3c25359..8ab91273592c826cdd3c39fb915= 7dc853b2722e5 100644 --- a/drivers/net/wireless/ath/ath12k/dp_rx.c +++ b/drivers/net/wireless/ath/ath12k/dp_rx.c @@ -671,7 +671,7 @@ static int ath12k_dp_reo_cmd_send(struct ath12k_base *a= b, struct ath12k_dp_rx_ti static void ath12k_dp_reo_cache_flush(struct ath12k_base *ab, struct ath12k_dp_rx_tid *rx_tid) { - struct ath12k_hal_reo_cmd cmd =3D {0}; + struct ath12k_hal_reo_cmd cmd =3D {}; unsigned long tot_desc_sz, desc_sz; int ret; =20 @@ -828,7 +828,7 @@ static void ath12k_peer_rx_tid_qref_reset(struct ath12k= _base *ab, u16 peer_id, u void ath12k_dp_rx_peer_tid_delete(struct ath12k *ar, struct ath12k_peer *peer, u8 tid) { - struct ath12k_hal_reo_cmd cmd =3D {0}; + struct ath12k_hal_reo_cmd cmd =3D {}; struct ath12k_dp_rx_tid *rx_tid =3D &peer->rx_tid[tid]; int ret; =20 @@ -939,7 +939,7 @@ static int ath12k_peer_rx_tid_reo_update(struct ath12k = *ar, u32 ba_win_sz, u16 ssn, bool update_ssn) { - struct ath12k_hal_reo_cmd cmd =3D {0}; + struct ath12k_hal_reo_cmd cmd =3D {}; int ret; =20 cmd.addr_lo =3D lower_32_bits(rx_tid->qbuf.paddr_aligned); @@ -1204,7 +1204,7 @@ int ath12k_dp_rx_peer_pn_replay_config(struct ath12k_= link_vif *arvif, { struct ath12k *ar =3D arvif->ar; struct ath12k_base *ab =3D ar->ab; - struct ath12k_hal_reo_cmd cmd =3D {0}; + struct ath12k_hal_reo_cmd cmd =3D {}; struct ath12k_peer *peer; struct ath12k_dp_rx_tid *rx_tid; u8 tid; @@ -2735,7 +2735,7 @@ static void ath12k_dp_rx_process_received_packets(str= uct ath12k_base *ab, int ring_id) { struct ath12k_hw_group *ag =3D ab->ag; - struct ieee80211_rx_status rx_status =3D {0}; + struct ieee80211_rx_status rx_status =3D {}; struct ath12k_skb_rxcb *rxcb; struct sk_buff *msdu; struct ath12k *ar; @@ -3030,7 +3030,7 @@ static int ath12k_dp_rx_h_michael_mic(struct crypto_s= hash *tfm, u8 *key, size_t data_len, u8 *mic) { SHASH_DESC_ON_STACK(desc, tfm); - u8 mic_hdr[16] =3D {0}; + u8 mic_hdr[16] =3D {}; u8 tid =3D 0; int ret; =20 @@ -3999,7 +3999,7 @@ static void ath12k_dp_rx_wbm_err(struct ath12k *ar, struct sk_buff_head *msdu_list) { struct ath12k_skb_rxcb *rxcb =3D ATH12K_SKB_RXCB(msdu); - struct ieee80211_rx_status rxs =3D {0}; + struct ieee80211_rx_status rxs =3D {}; struct ath12k_dp_rx_info rx_info; bool drop =3D true; =20 @@ -4346,7 +4346,7 @@ void ath12k_dp_rx_pdev_free(struct ath12k_base *ab, i= nt mac_id) int ath12k_dp_rxdma_ring_sel_config_qcn9274(struct ath12k_base *ab) { struct ath12k_dp *dp =3D &ab->dp; - struct htt_rx_ring_tlv_filter tlv_filter =3D {0}; + struct htt_rx_ring_tlv_filter tlv_filter =3D {}; u32 ring_id; int ret; u32 hal_rx_desc_sz =3D ab->hal.hal_desc_sz; @@ -4387,7 +4387,7 @@ int ath12k_dp_rxdma_ring_sel_config_qcn9274(struct at= h12k_base *ab) int ath12k_dp_rxdma_ring_sel_config_wcn7850(struct ath12k_base *ab) { struct ath12k_dp *dp =3D &ab->dp; - struct htt_rx_ring_tlv_filter tlv_filter =3D {0}; + struct htt_rx_ring_tlv_filter tlv_filter =3D {}; u32 ring_id; int ret =3D 0; u32 hal_rx_desc_sz =3D ab->hal.hal_desc_sz; diff --git a/drivers/net/wireless/ath/ath12k/dp_tx.c b/drivers/net/wireless= /ath/ath12k/dp_tx.c index d79c2ff7795228c71358cf06a0a6c8bd219d4a87..abc84ca8467a21827fc9caeb44d= 7e2d16e39d835 100644 --- a/drivers/net/wireless/ath/ath12k/dp_tx.c +++ b/drivers/net/wireless/ath/ath12k/dp_tx.c @@ -225,7 +225,7 @@ int ath12k_dp_tx(struct ath12k *ar, struct ath12k_link_= vif *arvif, { struct ath12k_base *ab =3D ar->ab; struct ath12k_dp *dp =3D &ab->dp; - struct hal_tx_info ti =3D {0}; + struct hal_tx_info ti =3D {}; struct ath12k_tx_desc_info *tx_desc; struct ieee80211_tx_info *info =3D IEEE80211_SKB_CB(skb); struct ath12k_skb_cb *skb_cb =3D ATH12K_SKB_CB(skb); @@ -659,7 +659,7 @@ ath12k_dp_tx_process_htt_tx_complete(struct ath12k_base= *ab, void *desc, struct ath12k_tx_desc_params *desc_params) { struct htt_tx_wbm_completion *status_desc; - struct ath12k_dp_htt_wbm_tx_status ts =3D {0}; + struct ath12k_dp_htt_wbm_tx_status ts =3D {}; enum hal_wbm_htt_tx_comp_status wbm_status; u16 peer_id; =20 @@ -705,7 +705,7 @@ static void ath12k_dp_tx_update_txcompl(struct ath12k *= ar, struct hal_tx_status struct ieee80211_sta *sta; struct ath12k_sta *ahsta; struct ath12k_link_sta *arsta; - struct rate_info txrate =3D {0}; + struct rate_info txrate =3D {}; u16 rate, ru_tones; u8 rate_idx =3D 0; int ret; @@ -1001,7 +1001,7 @@ void ath12k_dp_tx_completion_handler(struct ath12k_ba= se *ab, int ring_id) int hal_ring_id =3D dp->tx_ring[ring_id].tcl_comp_ring.ring_id; struct hal_srng *status_ring =3D &ab->hal.srng_list[hal_ring_id]; struct ath12k_tx_desc_info *tx_desc =3D NULL; - struct hal_tx_status ts =3D { 0 }; + struct hal_tx_status ts =3D {}; struct ath12k_tx_desc_params desc_params; struct dp_tx_ring *tx_ring =3D &dp->tx_ring[ring_id]; struct hal_wbm_release_ring *desc; @@ -1571,7 +1571,7 @@ int ath12k_dp_tx_htt_monitor_mode_ring_config(struct = ath12k *ar, bool reset) int ath12k_dp_tx_htt_rx_monitor_mode_ring_config(struct ath12k *ar, bool r= eset) { struct ath12k_base *ab =3D ar->ab; - struct htt_rx_ring_tlv_filter tlv_filter =3D {0}; + struct htt_rx_ring_tlv_filter tlv_filter =3D {}; int ret, ring_id, i; =20 tlv_filter.offset_valid =3D false; diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/a= th/ath12k/mac.c index 05250fa0600d6bb868b8def2dd9a226dc8fc437f..7f80c72611c8ebb440d23e34da2= e050f7195e504 100644 --- a/drivers/net/wireless/ath/ath12k/mac.c +++ b/drivers/net/wireless/ath/ath12k/mac.c @@ -6375,7 +6375,7 @@ static int ath12k_mac_station_add(struct ath12k *ar, struct ath12k_base *ab =3D ar->ab; struct ieee80211_vif *vif =3D ath12k_ahvif_to_vif(arvif->ahvif); struct ieee80211_sta *sta =3D ath12k_ahsta_to_sta(arsta->ahsta); - struct ath12k_wmi_peer_create_arg peer_param =3D {0}; + struct ath12k_wmi_peer_create_arg peer_param =3D {}; int ret; =20 lockdep_assert_wiphy(ath12k_ar_to_hw(ar)->wiphy); @@ -6719,7 +6719,7 @@ static int ath12k_mac_mlo_sta_set_link_active(struct = ath12k_base *ab, u8 *mlo_inactive_vdev_lst, u8 num_mlo_inactive_vdev) { - struct wmi_mlo_link_set_active_arg param =3D {0}; + struct wmi_mlo_link_set_active_arg param =3D {}; u32 entry_idx, entry_offset, vdev_idx; u8 vdev_id; =20 @@ -6781,8 +6781,8 @@ static int ath12k_mac_mlo_sta_update_link_active(stru= ct ath12k_base *ab, struct ieee80211_hw *hw, struct ath12k_vif *ahvif) { - u8 mlo_vdev_id_lst[IEEE80211_MLD_MAX_NUM_LINKS] =3D {0}; - u32 mlo_freq_list[IEEE80211_MLD_MAX_NUM_LINKS] =3D {0}; + u8 mlo_vdev_id_lst[IEEE80211_MLD_MAX_NUM_LINKS] =3D {}; + u32 mlo_freq_list[IEEE80211_MLD_MAX_NUM_LINKS] =3D {}; unsigned long links =3D ahvif->links_map; enum wmi_mlo_link_force_reason reason; struct ieee80211_chanctx_conf *conf; @@ -7519,7 +7519,7 @@ static struct ieee80211_sta_ht_cap ath12k_create_ht_cap(struct ath12k *ar, u32 ar_ht_cap, u32 rate_cap_rx_cha= inmask) { int i; - struct ieee80211_sta_ht_cap ht_cap =3D {0}; + struct ieee80211_sta_ht_cap ht_cap =3D {}; u32 ar_vht_cap =3D ar->pdev->cap.vht_cap; =20 if (!(ar_ht_cap & WMI_HT_CAP_ENABLED)) @@ -7675,7 +7675,7 @@ static struct ieee80211_sta_vht_cap ath12k_create_vht_cap(struct ath12k *ar, u32 rate_cap_tx_chainmask, u32 rate_cap_rx_chainmask) { - struct ieee80211_sta_vht_cap vht_cap =3D {0}; + struct ieee80211_sta_vht_cap vht_cap =3D {}; u16 txmcs_map, rxmcs_map; int i; =20 @@ -9682,8 +9682,8 @@ int ath12k_mac_vdev_create(struct ath12k *ar, struct = ath12k_link_vif *arvif) struct ieee80211_hw *hw =3D ah->hw; struct ath12k_vif *ahvif =3D arvif->ahvif; struct ieee80211_vif *vif =3D ath12k_ahvif_to_vif(ahvif); - struct ath12k_wmi_vdev_create_arg vdev_arg =3D {0}; - struct ath12k_wmi_peer_create_arg peer_param =3D {0}; + struct ath12k_wmi_vdev_create_arg vdev_arg =3D {}; + struct ath12k_wmi_peer_create_arg peer_param =3D {}; struct ieee80211_bss_conf *link_conf =3D NULL; u32 param_id, param_value; u16 nss; diff --git a/drivers/net/wireless/ath/ath12k/pci.c b/drivers/net/wireless/a= th/ath12k/pci.c index b4e7e77518dd7750cac5b7da04e643aacc74680d..c729d5526c753d2b7b7542b6f2a= 145e71b335a43 100644 --- a/drivers/net/wireless/ath/ath12k/pci.c +++ b/drivers/net/wireless/ath/ath12k/pci.c @@ -48,7 +48,7 @@ static const struct pci_device_id ath12k_pci_id_table[] =3D { { PCI_VDEVICE(QCOM, QCN9274_DEVICE_ID) }, { PCI_VDEVICE(QCOM, WCN7850_DEVICE_ID) }, - {0} + {} }; =20 MODULE_DEVICE_TABLE(pci, ath12k_pci_id_table); @@ -1353,7 +1353,7 @@ static void ath12k_pci_coredump_download(struct ath12= k_base *ab) struct ath12k_tlv_dump_data *dump_tlv; size_t hdr_len =3D sizeof(*file_data); void *buf; - u32 dump_seg_sz[FW_CRASH_DUMP_TYPE_MAX] =3D { 0 }; + u32 dump_seg_sz[FW_CRASH_DUMP_TYPE_MAX] =3D {}; =20 ath12k_mhi_coredump(mhi_ctrl, false); =20 diff --git a/drivers/net/wireless/ath/ath12k/wmi.c b/drivers/net/wireless/a= th/ath12k/wmi.c index a2a493928d0825b3791b0fd4033e568eca296da0..da85c28ec35568ca5c81a49e565= c19cff195bac7 100644 --- a/drivers/net/wireless/ath/ath12k/wmi.c +++ b/drivers/net/wireless/ath/ath12k/wmi.c @@ -7039,7 +7039,7 @@ static void ath12k_vdev_stopped_event(struct ath12k_b= ase *ab, struct sk_buff *sk =20 static void ath12k_mgmt_rx_event(struct ath12k_base *ab, struct sk_buff *s= kb) { - struct ath12k_wmi_mgmt_rx_arg rx_ev =3D {0}; + struct ath12k_wmi_mgmt_rx_arg rx_ev =3D {}; struct ath12k *ar; struct ieee80211_rx_status *status =3D IEEE80211_SKB_RXCB(skb); struct ieee80211_hdr *hdr; @@ -7158,7 +7158,7 @@ static void ath12k_mgmt_rx_event(struct ath12k_base *= ab, struct sk_buff *skb) =20 static void ath12k_mgmt_tx_compl_event(struct ath12k_base *ab, struct sk_b= uff *skb) { - struct wmi_mgmt_tx_compl_event tx_compl_param =3D {0}; + struct wmi_mgmt_tx_compl_event tx_compl_param =3D {}; struct ath12k *ar; =20 if (ath12k_pull_mgmt_tx_compl_param_tlv(ab, skb, &tx_compl_param) !=3D 0)= { @@ -7216,7 +7216,7 @@ static struct ath12k *ath12k_get_ar_on_scan_state(str= uct ath12k_base *ab, static void ath12k_scan_event(struct ath12k_base *ab, struct sk_buff *skb) { struct ath12k *ar; - struct wmi_scan_event scan_ev =3D {0}; + struct wmi_scan_event scan_ev =3D {}; =20 if (ath12k_pull_scan_ev(ab, skb, &scan_ev) !=3D 0) { ath12k_warn(ab, "failed to extract scan event"); @@ -7393,7 +7393,7 @@ static void ath12k_roam_event(struct ath12k_base *ab,= struct sk_buff *skb) =20 static void ath12k_chan_info_event(struct ath12k_base *ab, struct sk_buff = *skb) { - struct wmi_chan_info_event ch_info_ev =3D {0}; + struct wmi_chan_info_event ch_info_ev =3D {}; struct ath12k *ar; struct survey_info *survey; int idx; @@ -7541,7 +7541,7 @@ ath12k_pdev_bss_chan_info_event(struct ath12k_base *a= b, struct sk_buff *skb) static void ath12k_vdev_install_key_compl_event(struct ath12k_base *ab, struct sk_buff *skb) { - struct wmi_vdev_install_key_complete_arg install_key_compl =3D {0}; + struct wmi_vdev_install_key_complete_arg install_key_compl =3D {}; struct ath12k *ar; =20 if (ath12k_pull_vdev_install_key_compl_ev(ab, skb, &install_key_compl) != =3D 0) { @@ -7646,7 +7646,7 @@ static int ath12k_service_available_event(struct ath1= 2k_base *ab, struct sk_buff =20 static void ath12k_peer_assoc_conf_event(struct ath12k_base *ab, struct sk= _buff *skb) { - struct wmi_peer_assoc_conf_arg peer_assoc_conf =3D {0}; + struct wmi_peer_assoc_conf_arg peer_assoc_conf =3D {}; struct ath12k *ar; =20 if (ath12k_pull_peer_assoc_conf_ev(ab, skb, &peer_assoc_conf) !=3D 0) { @@ -8592,7 +8592,7 @@ ath12k_wmi_pdev_temperature_event(struct ath12k_base = *ab, struct sk_buff *skb) { struct ath12k *ar; - struct wmi_pdev_temperature_event ev =3D {0}; + struct wmi_pdev_temperature_event ev =3D {}; =20 if (ath12k_pull_pdev_temp_ev(ab, skb, &ev) !=3D 0) { ath12k_warn(ab, "failed to extract pdev temperature event"); --- base-commit: d4bc7beefd076ac6f6051558b2152d152269273e change-id: 20250718-ath12k-zero-brace-19ac3ded1cb1