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: abf31feea2 ('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>
This commit is contained in:
Pierre-Louis Bossart 2019-08-12 09:03:05 -05:00 committed by Mark Brown
parent ae3a5901dd
commit 8da2d74c10
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
1 changed files with 2 additions and 2 deletions

View File

@ -2015,11 +2015,11 @@ int sst_hsw_module_set_param(struct sst_hsw *hsw,
if (payload_size <= SST_HSW_IPC_MAX_SHORT_PARAMETER_SIZE) { if (payload_size <= SST_HSW_IPC_MAX_SHORT_PARAMETER_SIZE) {
/* short parameter, mailbox can contain data */ /* short parameter, mailbox can contain data */
dev_dbg(dev, "transfer parameter size : %lu\n", dev_dbg(dev, "transfer parameter size : %zu\n",
request.size); request.size);
request.size = ALIGN(payload_size, 4); request.size = ALIGN(payload_size, 4);
dev_dbg(dev, "transfer parameter aligned size : %lu\n", dev_dbg(dev, "transfer parameter aligned size : %zu\n",
request.size); request.size);
parameter = kzalloc(request.size, GFP_KERNEL); parameter = kzalloc(request.size, GFP_KERNEL);