lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 6 Jul 2022 07:12:15 +0800
From:   kernel test robot <lkp@...el.com>
To:     Lukas Bulwahn <lukas.bulwahn@...il.com>
Cc:     kbuild-all@...ts.01.org,
        GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
        linux-kernel@...r.kernel.org, Mark Brown <broonie@...nel.org>,
        Amadeusz Sławiński 
        <amadeuszx.slawinski@...ux.intel.com>
Subject: [ammarfaizi2-block:broonie/sound/for-next 324/326]
 sound/soc/intel/avs/boards/i2s_test.c:130:60: warning: format '%ld' expects
 argument of type 'long int', but argument 4 has type 'int'

tree:   https://github.com/ammarfaizi2/linux-block broonie/sound/for-next
head:   4fbea41e3404788d05a013841431abd07d307255
commit: f4ba35b79bd0104f00e8e21e400b980bfaa2f17e [324/326] ASoC: Intel: avs: correct config reference for I2S test board
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220706/202207060734.OWDl2z9f-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/ammarfaizi2/linux-block/commit/f4ba35b79bd0104f00e8e21e400b980bfaa2f17e
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block broonie/sound/for-next
        git checkout f4ba35b79bd0104f00e8e21e400b980bfaa2f17e
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash sound/soc/intel/avs/boards/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   sound/soc/intel/avs/boards/i2s_test.c: In function 'avs_i2s_test_probe':
>> sound/soc/intel/avs/boards/i2s_test.c:130:60: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Wformat=]
     130 |         card->name = devm_kasprintf(dev, GFP_KERNEL, "ssp%ld-loopback", ssp_port);
         |                                                          ~~^            ~~~~~~~~
         |                                                            |            |
         |                                                            long int     int
         |                                                          %d


vim +130 sound/soc/intel/avs/boards/i2s_test.c

e39acc4cfd9250 Cezary Rojewski 2022-05-11  109  
e39acc4cfd9250 Cezary Rojewski 2022-05-11  110  static int avs_i2s_test_probe(struct platform_device *pdev)
e39acc4cfd9250 Cezary Rojewski 2022-05-11  111  {
e39acc4cfd9250 Cezary Rojewski 2022-05-11  112  	struct snd_soc_dapm_widget *widgets;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  113  	struct snd_soc_dapm_route *routes;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  114  	struct snd_soc_dai_link *dai_link;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  115  	struct snd_soc_acpi_mach *mach;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  116  	struct snd_soc_card *card;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  117  	struct device *dev = &pdev->dev;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  118  	const char *pname;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  119  	int num_routes, num_widgets;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  120  	int ssp_port, ret;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  121  
e39acc4cfd9250 Cezary Rojewski 2022-05-11  122  	mach = dev_get_platdata(dev);
e39acc4cfd9250 Cezary Rojewski 2022-05-11  123  	pname = mach->mach_params.platform;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  124  	ssp_port = __ffs(mach->mach_params.i2s_link_mask);
e39acc4cfd9250 Cezary Rojewski 2022-05-11  125  
e39acc4cfd9250 Cezary Rojewski 2022-05-11  126  	card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL);
e39acc4cfd9250 Cezary Rojewski 2022-05-11  127  	if (!card)
e39acc4cfd9250 Cezary Rojewski 2022-05-11  128  		return -ENOMEM;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  129  
e39acc4cfd9250 Cezary Rojewski 2022-05-11 @130  	card->name = devm_kasprintf(dev, GFP_KERNEL, "ssp%ld-loopback", ssp_port);
e39acc4cfd9250 Cezary Rojewski 2022-05-11  131  	if (!card->name)
e39acc4cfd9250 Cezary Rojewski 2022-05-11  132  		return -ENOMEM;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  133  
e39acc4cfd9250 Cezary Rojewski 2022-05-11  134  	ret = avs_create_dai_link(dev, pname, ssp_port, &dai_link);
e39acc4cfd9250 Cezary Rojewski 2022-05-11  135  	if (ret) {
e39acc4cfd9250 Cezary Rojewski 2022-05-11  136  		dev_err(dev, "Failed to create dai link: %d\n", ret);
e39acc4cfd9250 Cezary Rojewski 2022-05-11  137  		return ret;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  138  	}
e39acc4cfd9250 Cezary Rojewski 2022-05-11  139  
e39acc4cfd9250 Cezary Rojewski 2022-05-11  140  	ret = avs_create_dapm_routes(dev, ssp_port, &routes, &num_routes);
e39acc4cfd9250 Cezary Rojewski 2022-05-11  141  	if (ret) {
e39acc4cfd9250 Cezary Rojewski 2022-05-11  142  		dev_err(dev, "Failed to create dapm routes: %d\n", ret);
e39acc4cfd9250 Cezary Rojewski 2022-05-11  143  		return ret;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  144  	}
e39acc4cfd9250 Cezary Rojewski 2022-05-11  145  
e39acc4cfd9250 Cezary Rojewski 2022-05-11  146  	ret = avs_create_dapm_widgets(dev, ssp_port, &widgets, &num_widgets);
e39acc4cfd9250 Cezary Rojewski 2022-05-11  147  	if (ret) {
e39acc4cfd9250 Cezary Rojewski 2022-05-11  148  		dev_err(dev, "Failed to create dapm widgets: %d\n", ret);
e39acc4cfd9250 Cezary Rojewski 2022-05-11  149  		return ret;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  150  	}
e39acc4cfd9250 Cezary Rojewski 2022-05-11  151  
e39acc4cfd9250 Cezary Rojewski 2022-05-11  152  	card->dev = dev;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  153  	card->owner = THIS_MODULE;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  154  	card->dai_link = dai_link;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  155  	card->num_links = 1;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  156  	card->dapm_routes = routes;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  157  	card->num_dapm_routes = num_routes;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  158  	card->dapm_widgets = widgets;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  159  	card->num_dapm_widgets = num_widgets;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  160  	card->fully_routed = true;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  161  
e39acc4cfd9250 Cezary Rojewski 2022-05-11  162  	ret = snd_soc_fixup_dai_links_platform_name(card, pname);
e39acc4cfd9250 Cezary Rojewski 2022-05-11  163  	if (ret)
e39acc4cfd9250 Cezary Rojewski 2022-05-11  164  		return ret;
e39acc4cfd9250 Cezary Rojewski 2022-05-11  165  
e39acc4cfd9250 Cezary Rojewski 2022-05-11  166  	return devm_snd_soc_register_card(dev, card);
e39acc4cfd9250 Cezary Rojewski 2022-05-11  167  }
e39acc4cfd9250 Cezary Rojewski 2022-05-11  168  

:::::: The code at line 130 was first introduced by commit
:::::: e39acc4cfd9250e7b8ec01897570f3009659c3d6 ASoC: Intel: avs: Add I2S-test machine board

:::::: TO: Cezary Rojewski <cezary.rojewski@...el.com>
:::::: CC: Mark Brown <broonie@...nel.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ