Skip to content

Commit 4c78185

Browse files
committed
fixup! ASoC: sof ipc4: Add sof_ipc4_widget_setup_msg_payload() and call it
Fix i386 compilation: sound/soc/sof/ipc4-topology.c: In function ‘sof_ipc4_widget_setup_msg_payload’: sound/soc/sof/ipc4-topology.c:3009:36: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Werror=format=] 3009 | dev_err(sdev->dev, "Max ipc payload size %lu exceeded: %u", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro ‘dev_printk_index_wrap’ 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:154:56: note: in expansion of macro ‘dev_fmt’ 154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ sound/soc/sof/ipc4-topology.c:3009:17: note: in expansion of macro ‘dev_err’ 3009 | dev_err(sdev->dev, "Max ipc payload size %lu exceeded: %u", | ^~~~~~~ sound/soc/sof/ipc4-topology.c:3009:60: note: format string is defined here 3009 | dev_err(sdev->dev, "Max ipc payload size %lu exceeded: %u", | ~~^ | | | long unsigned int | %u cc1: all warnings being treated as errors Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent 2b78e31 commit 4c78185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/sof/ipc4-topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3006,7 +3006,7 @@ static int sof_ipc4_widget_setup_msg_payload(struct snd_sof_dev *sdev,
30063006
/* Calculate final size and check that it fits to max payload size */
30073007
new_size = ext_pos * sizeof(u32) + ipc_size;
30083008
if (new_size > sdev->ipc->max_payload_size) {
3009-
dev_err(sdev->dev, "Max ipc payload size %lu exceeded: %u",
3009+
dev_err(sdev->dev, "Max ipc payload size %zu exceeded: %u",
30103010
sdev->ipc->max_payload_size, new_size);
30113011
kfree(payload);
30123012
return -EINVAL;

0 commit comments

Comments
 (0)