diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-09-25 14:56:46 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-09-25 17:33:04 +0200 |
commit | 1056063756d7bbd5e49532278448cd28ecb8f359 (patch) | |
tree | e733f12488ad23fd74d1e045e7d7701ddb4c93e5 /lib/bootconfig.c | |
parent | c351835058419c1eb8791941a057c3f3e6068cb6 (diff) |
ASoC: sh: dma-sh7760: Use %pad and %zu to format dma_addr_t and size_t
sound/soc/sh/dma-sh7760.c: In function ‘camelot_prepare’:
./include/linux/kern_levels.h:5:25: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘unsigned int’ [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
sound/soc/sh/dma-sh7760.c:198:9: note: in expansion of macro ‘pr_debug’
198 | pr_debug("PCM data: addr 0x%08lx len %d\n",
| ^~~~~~~~
Fix this by using "%pad" and taking the address to format the DMA
address. While at it, use "%zu" to format size_t.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202309250903.XNAjFuxy-lkp@intel.com/
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230925125646.3681807-1-geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/bootconfig.c')
0 files changed, 0 insertions, 0 deletions