tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: 2a2666c7ac021b272526f9062cc359c8ed7074dc
commit: 55e125bc1da31fb55ee5087778b1be763092c0f2 [17/28] FROMLIST: ASoC: max98390: Added
Amplifier Driver
config: microblaze-randconfig-r001-20200604 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 55e125bc1da31fb55ee5087778b1be763092c0f2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/acpi.h:27,
from sound/soc/codecs/max98390.c:9:
sound/soc/codecs/max98390.c: In function 'max98390_dsm_init':
> sound/soc/codecs/max98390.c:781:3: warning: format '%ld'
expects argument of type 'long int', but argument 4 has type 'size_t' {aka
'const unsigned int'} [-Wformat=]
781 | "max98390: param fw size
%ldn",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/device.h:1377:22: note: in definition of macro 'dev_fmt'
1377 | #define dev_fmt(fmt) fmt
| ^~~
> sound/soc/codecs/max98390.c:780:2: note: in expansion of macro
'dev_dbg'
780 | dev_dbg(component->dev,
| ^~~~~~~
sound/soc/codecs/max98390.c:781:30: note: format string is defined here
781 | "max98390: param fw size %ldn",
| ~~^
| |
| long int
| %d
vim +781 sound/soc/codecs/max98390.c
753
754 static int max98390_dsm_init(struct snd_soc_component *component)
755 {
756 int ret;
757 char filename[128];
758 const char *vendor, *product;
759 struct max98390_priv *max98390 =
760 snd_soc_component_get_drvdata(component);
761 const struct firmware *fw;
762 char *dsm_param;
763
764 vendor = dmi_get_system_info(DMI_SYS_VENDOR);
765 product = dmi_get_system_info(DMI_PRODUCT_NAME);
766
767 if (vendor && product) {
768 snprintf(filename, sizeof(filename), "dsm_param_%s_%s.bin",
769 vendor, product);
770 } else {
771 sprintf(filename, "dsm_param.bin");
772 }
773 ret = request_firmware(&fw, filename, component->dev);
774 if (ret) {
775 ret = request_firmware(&fw, "dsm_param.bin", component->dev);
776 if (ret)
777 goto err;
778 }
779
780 dev_dbg(component->dev,
781 "max98390: param fw size %ld\n",
782 fw->size);
783 dsm_param = (char *)fw->data;
784 dsm_param += MAX98390_DSM_PAYLOAD_OFFSET;
785 regmap_bulk_write(max98390->regmap, DSM_EQ_BQ1_B0_BYTE0,
786 dsm_param,
787 fw->size - MAX98390_DSM_PAYLOAD_OFFSET);
788 release_firmware(fw);
789 regmap_write(max98390->regmap, MAX98390_R23E1_DSP_GLOBAL_EN, 0x01);
790
791 err:
792 return ret;
793 }
794
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org