Re: [PATCH] wifi: ath10k: Drop unused qmi_elem_info arrays

From: kernel test robot

Date: Fri Oct 30 2026 - 02:48:58 EST


Hi Krzysztof,

kernel test robot noticed the following build warnings:

[auto build test WARNING on ath/ath-next]
[also build test WARNING on wireless/main wireless-next/main linus/master v7.3 next-20261029]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Krzysztof-Kozlowski/wifi-ath10k-Drop-unused-qmi_elem_info-arrays/20261029-121128
base: https://git.kernel.org/pub/scm/linux/kernel/git/ath/ath.git ath-next
patch link: https://lore.kernel.org/r/20261029111127.85147-2-krzysztof.kozlowski%40oss.qualcomm.com
patch subject: [PATCH] wifi: ath10k: Drop unused qmi_elem_info arrays
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20261030/202610301453.rMXyuD6F-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261030/202610301453.rMXyuD6F-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610301453.rMXyuD6F-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c:229:35: warning: 'wlfw_mem_seg_resp_s_v01_ei' defined but not used [-Wunused-const-variable=]
229 | static const struct qmi_elem_info wlfw_mem_seg_resp_s_v01_ei[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c:188:35: warning: 'wlfw_mem_seg_s_v01_ei' defined but not used [-Wunused-const-variable=]
188 | static const struct qmi_elem_info wlfw_mem_seg_s_v01_ei[] = {
| ^~~~~~~~~~~~~~~~~~~~~


vim +/wlfw_mem_seg_resp_s_v01_ei +229 drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c

bc17d4b90cdd3e5 Govind Singh 2018-10-11 187
11e1fcf2b494da8 Jeff Johnson 2022-09-14 @188 static const struct qmi_elem_info wlfw_mem_seg_s_v01_ei[] = {
bc17d4b90cdd3e5 Govind Singh 2018-10-11 189 {
bc17d4b90cdd3e5 Govind Singh 2018-10-11 190 .data_type = QMI_UNSIGNED_4_BYTE,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 191 .elem_len = 1,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 192 .elem_size = sizeof(u32),
bc17d4b90cdd3e5 Govind Singh 2018-10-11 193 .array_type = NO_ARRAY,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 194 .tlv_type = 0,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 195 .offset = offsetof(struct wlfw_mem_seg_s_v01,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 196 size),
bc17d4b90cdd3e5 Govind Singh 2018-10-11 197 },
bc17d4b90cdd3e5 Govind Singh 2018-10-11 198 {
bc17d4b90cdd3e5 Govind Singh 2018-10-11 199 .data_type = QMI_SIGNED_4_BYTE_ENUM,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 200 .elem_len = 1,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 201 .elem_size = sizeof(enum wlfw_mem_type_enum_v01),
bc17d4b90cdd3e5 Govind Singh 2018-10-11 202 .array_type = NO_ARRAY,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 203 .tlv_type = 0,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 204 .offset = offsetof(struct wlfw_mem_seg_s_v01,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 205 type),
bc17d4b90cdd3e5 Govind Singh 2018-10-11 206 },
bc17d4b90cdd3e5 Govind Singh 2018-10-11 207 {
bc17d4b90cdd3e5 Govind Singh 2018-10-11 208 .data_type = QMI_DATA_LEN,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 209 .elem_len = 1,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 210 .elem_size = sizeof(u8),
bc17d4b90cdd3e5 Govind Singh 2018-10-11 211 .array_type = NO_ARRAY,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 212 .tlv_type = 0,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 213 .offset = offsetof(struct wlfw_mem_seg_s_v01,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 214 mem_cfg_len),
bc17d4b90cdd3e5 Govind Singh 2018-10-11 215 },
bc17d4b90cdd3e5 Govind Singh 2018-10-11 216 {
bc17d4b90cdd3e5 Govind Singh 2018-10-11 217 .data_type = QMI_STRUCT,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 218 .elem_len = QMI_WLFW_MAX_NUM_MEM_CFG_V01,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 219 .elem_size = sizeof(struct wlfw_mem_cfg_s_v01),
bc17d4b90cdd3e5 Govind Singh 2018-10-11 220 .array_type = VAR_LEN_ARRAY,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 221 .tlv_type = 0,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 222 .offset = offsetof(struct wlfw_mem_seg_s_v01,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 223 mem_cfg),
bc17d4b90cdd3e5 Govind Singh 2018-10-11 224 .ei_array = wlfw_mem_cfg_s_v01_ei,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 225 },
bc17d4b90cdd3e5 Govind Singh 2018-10-11 226 {}
bc17d4b90cdd3e5 Govind Singh 2018-10-11 227 };
bc17d4b90cdd3e5 Govind Singh 2018-10-11 228
11e1fcf2b494da8 Jeff Johnson 2022-09-14 @229 static const struct qmi_elem_info wlfw_mem_seg_resp_s_v01_ei[] = {
bc17d4b90cdd3e5 Govind Singh 2018-10-11 230 {
bc17d4b90cdd3e5 Govind Singh 2018-10-11 231 .data_type = QMI_UNSIGNED_8_BYTE,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 232 .elem_len = 1,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 233 .elem_size = sizeof(u64),
bc17d4b90cdd3e5 Govind Singh 2018-10-11 234 .array_type = NO_ARRAY,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 235 .tlv_type = 0,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 236 .offset = offsetof(struct wlfw_mem_seg_resp_s_v01,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 237 addr),
bc17d4b90cdd3e5 Govind Singh 2018-10-11 238 },
bc17d4b90cdd3e5 Govind Singh 2018-10-11 239 {
bc17d4b90cdd3e5 Govind Singh 2018-10-11 240 .data_type = QMI_UNSIGNED_4_BYTE,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 241 .elem_len = 1,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 242 .elem_size = sizeof(u32),
bc17d4b90cdd3e5 Govind Singh 2018-10-11 243 .array_type = NO_ARRAY,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 244 .tlv_type = 0,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 245 .offset = offsetof(struct wlfw_mem_seg_resp_s_v01,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 246 size),
bc17d4b90cdd3e5 Govind Singh 2018-10-11 247 },
bc17d4b90cdd3e5 Govind Singh 2018-10-11 248 {
bc17d4b90cdd3e5 Govind Singh 2018-10-11 249 .data_type = QMI_SIGNED_4_BYTE_ENUM,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 250 .elem_len = 1,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 251 .elem_size = sizeof(enum wlfw_mem_type_enum_v01),
bc17d4b90cdd3e5 Govind Singh 2018-10-11 252 .array_type = NO_ARRAY,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 253 .tlv_type = 0,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 254 .offset = offsetof(struct wlfw_mem_seg_resp_s_v01,
bc17d4b90cdd3e5 Govind Singh 2018-10-11 255 type),
bc17d4b90cdd3e5 Govind Singh 2018-10-11 256 },
bc17d4b90cdd3e5 Govind Singh 2018-10-11 257 {}
bc17d4b90cdd3e5 Govind Singh 2018-10-11 258 };
bc17d4b90cdd3e5 Govind Singh 2018-10-11 259

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki