Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: wm_adsp: Correct some minor issues

The wm_adsp_ops structures should be static and correct two printf
specifiers.

Fixes: 170b1e123f38 ("ASoC: wm_adsp: Add support for new Halo core DSPs")
Fixes: 4e08d50d1fb6 ("ASoC: wm_adsp: Factor out DSP specific operations")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Charles Keepax and committed by
Mark Brown
cd537873 f29eec79

+8 -8
+8 -8
sound/soc/codecs/wm_adsp.c
··· 306 306 #define HALO_MPU_VIO_ERR_SRC_MASK 0x00007fff 307 307 #define HALO_MPU_VIO_ERR_SRC_SHIFT 0 308 308 309 - struct wm_adsp_ops wm_adsp1_ops; 310 - struct wm_adsp_ops wm_adsp2_ops[]; 311 - struct wm_adsp_ops wm_halo_ops; 309 + static struct wm_adsp_ops wm_adsp1_ops; 310 + static struct wm_adsp_ops wm_adsp2_ops[]; 311 + static struct wm_adsp_ops wm_halo_ops; 312 312 313 313 struct wm_adsp_buf { 314 314 struct list_head list; ··· 2142 2142 dsp->fw_id = be32_to_cpu(fw->id); 2143 2143 dsp->fw_id_version = be32_to_cpu(fw->ver); 2144 2144 2145 - adsp_info(dsp, "Firmware: %x v%d.%d.%d, %zu algorithms\n", 2145 + adsp_info(dsp, "Firmware: %x v%d.%d.%d, %d algorithms\n", 2146 2146 dsp->fw_id, (dsp->fw_id_version & 0xff0000) >> 16, 2147 2147 (dsp->fw_id_version & 0xff00) >> 8, dsp->fw_id_version & 0xff, 2148 2148 nalgs); ··· 2155 2155 dsp->fw_id_version = be32_to_cpu(fw->ver); 2156 2156 dsp->fw_vendor_id = be32_to_cpu(fw->vendor_id); 2157 2157 2158 - adsp_info(dsp, "Firmware: %x vendor: 0x%x v%d.%d.%d, %zu algorithms\n", 2158 + adsp_info(dsp, "Firmware: %x vendor: 0x%x v%d.%d.%d, %d algorithms\n", 2159 2159 dsp->fw_id, dsp->fw_vendor_id, 2160 2160 (dsp->fw_id_version & 0xff0000) >> 16, 2161 2161 (dsp->fw_id_version & 0xff00) >> 8, dsp->fw_id_version & 0xff, ··· 4407 4407 } 4408 4408 EXPORT_SYMBOL_GPL(wm_halo_wdt_expire); 4409 4409 4410 - struct wm_adsp_ops wm_adsp1_ops = { 4410 + static struct wm_adsp_ops wm_adsp1_ops = { 4411 4411 .validate_version = wm_adsp_validate_version, 4412 4412 .parse_sizes = wm_adsp1_parse_sizes, 4413 4413 .region_to_reg = wm_adsp_region_to_reg, 4414 4414 }; 4415 4415 4416 - struct wm_adsp_ops wm_adsp2_ops[] = { 4416 + static struct wm_adsp_ops wm_adsp2_ops[] = { 4417 4417 { 4418 4418 .sys_config_size = sizeof(struct wm_adsp_system_config_xm_hdr), 4419 4419 .parse_sizes = wm_adsp2_parse_sizes, ··· 4474 4474 }, 4475 4475 }; 4476 4476 4477 - struct wm_adsp_ops wm_halo_ops = { 4477 + static struct wm_adsp_ops wm_halo_ops = { 4478 4478 .sys_config_size = sizeof(struct wm_halo_system_config_xm_hdr), 4479 4479 .parse_sizes = wm_adsp2_parse_sizes, 4480 4480 .validate_version = wm_halo_validate_version,