From: kernel test robot <lkp@intel.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [krzk-github:n/str-enable-disable 35/36] drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c:229:35: warning: 'wlfw_mem_seg_resp_s_v01_ei' defined but not used
Date: Thu, 13 Feb 2025 16:08:42 +0800 [thread overview]
Message-ID: <202502131536.AvYb9thE-lkp@intel.com> (raw)
tree: https://github.com/krzk/linux n/str-enable-disable
head: 6c9652f6b59a48e3ffc567fb41acbe262a9b0357
commit: 021178bf9ed9bf280ce069f32ccd284d4a497e6a [35/36] wifi
config: sparc-allmodconfig (https://download.01.org/0day-ci/archive/20250213/202502131536.AvYb9thE-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250213/202502131536.AvYb9thE-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502131536.AvYb9thE-lkp@intel.com/
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
bc17d4b90cdd3e Govind Singh 2018-10-11 187
11e1fcf2b494da Jeff Johnson 2022-09-14 @188 static const struct qmi_elem_info wlfw_mem_seg_s_v01_ei[] = {
bc17d4b90cdd3e Govind Singh 2018-10-11 189 {
bc17d4b90cdd3e Govind Singh 2018-10-11 190 .data_type = QMI_UNSIGNED_4_BYTE,
bc17d4b90cdd3e Govind Singh 2018-10-11 191 .elem_len = 1,
bc17d4b90cdd3e Govind Singh 2018-10-11 192 .elem_size = sizeof(u32),
bc17d4b90cdd3e Govind Singh 2018-10-11 193 .array_type = NO_ARRAY,
bc17d4b90cdd3e Govind Singh 2018-10-11 194 .tlv_type = 0,
bc17d4b90cdd3e Govind Singh 2018-10-11 195 .offset = offsetof(struct wlfw_mem_seg_s_v01,
bc17d4b90cdd3e Govind Singh 2018-10-11 196 size),
bc17d4b90cdd3e Govind Singh 2018-10-11 197 },
bc17d4b90cdd3e Govind Singh 2018-10-11 198 {
bc17d4b90cdd3e Govind Singh 2018-10-11 199 .data_type = QMI_SIGNED_4_BYTE_ENUM,
bc17d4b90cdd3e Govind Singh 2018-10-11 200 .elem_len = 1,
bc17d4b90cdd3e Govind Singh 2018-10-11 201 .elem_size = sizeof(enum wlfw_mem_type_enum_v01),
bc17d4b90cdd3e Govind Singh 2018-10-11 202 .array_type = NO_ARRAY,
bc17d4b90cdd3e Govind Singh 2018-10-11 203 .tlv_type = 0,
bc17d4b90cdd3e Govind Singh 2018-10-11 204 .offset = offsetof(struct wlfw_mem_seg_s_v01,
bc17d4b90cdd3e Govind Singh 2018-10-11 205 type),
bc17d4b90cdd3e Govind Singh 2018-10-11 206 },
bc17d4b90cdd3e Govind Singh 2018-10-11 207 {
bc17d4b90cdd3e Govind Singh 2018-10-11 208 .data_type = QMI_DATA_LEN,
bc17d4b90cdd3e Govind Singh 2018-10-11 209 .elem_len = 1,
bc17d4b90cdd3e Govind Singh 2018-10-11 210 .elem_size = sizeof(u8),
bc17d4b90cdd3e Govind Singh 2018-10-11 211 .array_type = NO_ARRAY,
bc17d4b90cdd3e Govind Singh 2018-10-11 212 .tlv_type = 0,
bc17d4b90cdd3e Govind Singh 2018-10-11 213 .offset = offsetof(struct wlfw_mem_seg_s_v01,
bc17d4b90cdd3e Govind Singh 2018-10-11 214 mem_cfg_len),
bc17d4b90cdd3e Govind Singh 2018-10-11 215 },
bc17d4b90cdd3e Govind Singh 2018-10-11 216 {
bc17d4b90cdd3e Govind Singh 2018-10-11 217 .data_type = QMI_STRUCT,
bc17d4b90cdd3e Govind Singh 2018-10-11 218 .elem_len = QMI_WLFW_MAX_NUM_MEM_CFG_V01,
bc17d4b90cdd3e Govind Singh 2018-10-11 219 .elem_size = sizeof(struct wlfw_mem_cfg_s_v01),
bc17d4b90cdd3e Govind Singh 2018-10-11 220 .array_type = VAR_LEN_ARRAY,
bc17d4b90cdd3e Govind Singh 2018-10-11 221 .tlv_type = 0,
bc17d4b90cdd3e Govind Singh 2018-10-11 222 .offset = offsetof(struct wlfw_mem_seg_s_v01,
bc17d4b90cdd3e Govind Singh 2018-10-11 223 mem_cfg),
bc17d4b90cdd3e Govind Singh 2018-10-11 224 .ei_array = wlfw_mem_cfg_s_v01_ei,
bc17d4b90cdd3e Govind Singh 2018-10-11 225 },
bc17d4b90cdd3e Govind Singh 2018-10-11 226 {}
bc17d4b90cdd3e Govind Singh 2018-10-11 227 };
bc17d4b90cdd3e Govind Singh 2018-10-11 228
11e1fcf2b494da Jeff Johnson 2022-09-14 @229 static const struct qmi_elem_info wlfw_mem_seg_resp_s_v01_ei[] = {
bc17d4b90cdd3e Govind Singh 2018-10-11 230 {
bc17d4b90cdd3e Govind Singh 2018-10-11 231 .data_type = QMI_UNSIGNED_8_BYTE,
bc17d4b90cdd3e Govind Singh 2018-10-11 232 .elem_len = 1,
bc17d4b90cdd3e Govind Singh 2018-10-11 233 .elem_size = sizeof(u64),
bc17d4b90cdd3e Govind Singh 2018-10-11 234 .array_type = NO_ARRAY,
bc17d4b90cdd3e Govind Singh 2018-10-11 235 .tlv_type = 0,
bc17d4b90cdd3e Govind Singh 2018-10-11 236 .offset = offsetof(struct wlfw_mem_seg_resp_s_v01,
bc17d4b90cdd3e Govind Singh 2018-10-11 237 addr),
bc17d4b90cdd3e Govind Singh 2018-10-11 238 },
bc17d4b90cdd3e Govind Singh 2018-10-11 239 {
bc17d4b90cdd3e Govind Singh 2018-10-11 240 .data_type = QMI_UNSIGNED_4_BYTE,
bc17d4b90cdd3e Govind Singh 2018-10-11 241 .elem_len = 1,
bc17d4b90cdd3e Govind Singh 2018-10-11 242 .elem_size = sizeof(u32),
bc17d4b90cdd3e Govind Singh 2018-10-11 243 .array_type = NO_ARRAY,
bc17d4b90cdd3e Govind Singh 2018-10-11 244 .tlv_type = 0,
bc17d4b90cdd3e Govind Singh 2018-10-11 245 .offset = offsetof(struct wlfw_mem_seg_resp_s_v01,
bc17d4b90cdd3e Govind Singh 2018-10-11 246 size),
bc17d4b90cdd3e Govind Singh 2018-10-11 247 },
bc17d4b90cdd3e Govind Singh 2018-10-11 248 {
bc17d4b90cdd3e Govind Singh 2018-10-11 249 .data_type = QMI_SIGNED_4_BYTE_ENUM,
bc17d4b90cdd3e Govind Singh 2018-10-11 250 .elem_len = 1,
bc17d4b90cdd3e Govind Singh 2018-10-11 251 .elem_size = sizeof(enum wlfw_mem_type_enum_v01),
bc17d4b90cdd3e Govind Singh 2018-10-11 252 .array_type = NO_ARRAY,
bc17d4b90cdd3e Govind Singh 2018-10-11 253 .tlv_type = 0,
bc17d4b90cdd3e Govind Singh 2018-10-11 254 .offset = offsetof(struct wlfw_mem_seg_resp_s_v01,
bc17d4b90cdd3e Govind Singh 2018-10-11 255 type),
bc17d4b90cdd3e Govind Singh 2018-10-11 256 },
bc17d4b90cdd3e Govind Singh 2018-10-11 257 {}
bc17d4b90cdd3e Govind Singh 2018-10-11 258 };
bc17d4b90cdd3e Govind Singh 2018-10-11 259
:::::: The code at line 229 was first introduced by commit
:::::: 11e1fcf2b494da810d551553c46f739e36501adc wifi: ath10k: Make QMI message rules const
:::::: TO: Jeff Johnson <quic_jjohnson@quicinc.com>
:::::: CC: Kalle Valo <quic_kvalo@quicinc.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-02-13 8:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202502131536.AvYb9thE-lkp@intel.com \
--to=lkp@intel.com \
--cc=krzk@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.