diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2019-08-12 10:03:05 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-08-13 07:40:46 -0400 |
commit | 8da2d74c10fd71cc04e2585fe8bb3ced325f8e25 (patch) | |
tree | eb8f7ddaf7029a52bde0858de4d3597b15a2c6c4 /sound | |
parent | ae3a5901dde2ab136ec0cebda2fccc48e810d2ec (diff) |
ASoC: Intel: hsw: remove i386 build warning w/ size_t argument
Recent changes in the common IPC code introduced a build warning with
size_t fields, use the correct %zu format.
include/linux/dynamic_debug.h:82:16: warning: format '%lu' expects
argument of type 'long unsigned int', but argument 4 has type 'size_t'
[-Wformat=]
Fixes: abf31feea26c0 ('ASoC: Intel: Update request-reply IPC model')
Reported-by: kbuild test robot <lkp@intel.com>
Cc: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-By: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20190812140305.17570-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/intel/haswell/sst-haswell-ipc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/intel/haswell/sst-haswell-ipc.c b/sound/soc/intel/haswell/sst-haswell-ipc.c index 5c73b11375e3..0ff89ea96ccf 100644 --- a/sound/soc/intel/haswell/sst-haswell-ipc.c +++ b/sound/soc/intel/haswell/sst-haswell-ipc.c | |||
@@ -2015,11 +2015,11 @@ int sst_hsw_module_set_param(struct sst_hsw *hsw, | |||
2015 | 2015 | ||
2016 | if (payload_size <= SST_HSW_IPC_MAX_SHORT_PARAMETER_SIZE) { | 2016 | if (payload_size <= SST_HSW_IPC_MAX_SHORT_PARAMETER_SIZE) { |
2017 | /* short parameter, mailbox can contain data */ | 2017 | /* short parameter, mailbox can contain data */ |
2018 | dev_dbg(dev, "transfer parameter size : %lu\n", | 2018 | dev_dbg(dev, "transfer parameter size : %zu\n", |
2019 | request.size); | 2019 | request.size); |
2020 | 2020 | ||
2021 | request.size = ALIGN(payload_size, 4); | 2021 | request.size = ALIGN(payload_size, 4); |
2022 | dev_dbg(dev, "transfer parameter aligned size : %lu\n", | 2022 | dev_dbg(dev, "transfer parameter aligned size : %zu\n", |
2023 | request.size); | 2023 | request.size); |
2024 | 2024 | ||
2025 | parameter = kzalloc(request.size, GFP_KERNEL); | 2025 | parameter = kzalloc(request.size, GFP_KERNEL); |