Skip to contentSkip to conversation

ASoC: Intel: hsw: remove i386 build warning w/ size_t argument

PATCH In review Pierre-Louis Bossart 3 participants 3 messages Aug 12, 2019 – Aug 15, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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')
Cc Cezary Rojewski <[email protected]>
---
 sound/soc/intel/haswell/sst-haswell-ipc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/haswell/sst-haswell-ipc.c +2 -2
index 5c73b11375e3..0ff89ea96ccf 100644
@@ -2015,11 +2015,11 @@ int sst_hsw_module_set_param(struct sst_hsw *hsw,
 
 	if (payload_size <= SST_HSW_IPC_MAX_SHORT_PARAMETER_SIZE) {
 		/* 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 = ALIGN(payload_size, 4);
-		dev_dbg(dev, "transfer parameter aligned size : %lu\n",
+		dev_dbg(dev, "transfer parameter aligned size : %zu\n",
 			request.size);
 
 		parameter = kzalloc(request.size, GFP_KERNEL);
Signature · 1 line
2.20.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 24 lines · Pierre-Louis Bossart

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')
Cc Cezary Rojewski <[email protected]>
---
  sound/soc/intel/haswell/sst-haswell-ipc.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/haswell/sst-haswell-ipc.c +0 -0
index 5c73b11375e3..0ff89ea96ccf 100644
@@ -2015,11 +2015,11 @@ int sst_hsw_module_set_param(struct sst_hsw *hsw,
 
  	if (payload_size <= SST_HSW_IPC_MAX_SHORT_PARAMETER_SIZE) {
  		/* short parameter, mailbox can contain data */

sound/soc/intel/haswell/sst-haswell-ipc.c int sst_hsw_module_set_param(struct sst_hsw *hsw, · line 2025

Quoted 10 lines
sound/soc/intel/haswell/sst-haswell-ipc.c +2 -2
-		dev_dbg(dev, "transfer parameter size : %lu\n",
+		dev_dbg(dev, "transfer parameter size : %zu\n",
  			request.size);
 
  		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);
 
  		parameter = kzalloc(request.size, GFP_KERNEL);
maintainer
#2 lore raw

Applied "ASoC: Intel: hsw: remove i386 build warning w/ size_t argument" to the asoc tree

In reply to Pierre-Louis Bossart

The patch

ASoC: Intel: hsw: remove i386 build warning w/ size_t argument

has been applied to the asoc tree at

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From 8da2d74c10fd71cc04e2585fe8bb3ced325f8e25 Mon Sep 17 00:00:00 2001

From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 12 Aug 2019 09:03:05 -0500
Subject: [PATCH] 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=]

---
 sound/soc/intel/haswell/sst-haswell-ipc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/haswell/sst-haswell-ipc.c +2 -2
index 5c73b11375e3..0ff89ea96ccf 100644
@@ -2015,11 +2015,11 @@ int sst_hsw_module_set_param(struct sst_hsw *hsw,
 
 	if (payload_size <= SST_HSW_IPC_MAX_SHORT_PARAMETER_SIZE) {
 		/* 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 = ALIGN(payload_size, 4);
-		dev_dbg(dev, "transfer parameter aligned size : %lu\n",
+		dev_dbg(dev, "transfer parameter aligned size : %zu\n",
 			request.size);
 
 		parameter = kzalloc(request.size, GFP_KERNEL);
Signature · 1 line
2.20.1