Skip to content

Conversation

@ujfalusi
Copy link
Collaborator

…ll 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

…ll 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>
@ujfalusi ujfalusi merged commit 14f11d9 into thesofproject:topic/sof-dev Sep 19, 2025
9 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants