From: kernel test robot <[email protected]>
To: Lukas Bulwahn <[email protected]>
Cc: [email protected],
"GNU/Weeb Mailing List" <[email protected]>,
[email protected], "Mark Brown" <[email protected]>,
"Amadeusz Sławiński" <[email protected]>
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'
Date: Wed, 6 Jul 2022 07:12:15 +0800 [thread overview]
Message-ID: <[email protected]> (raw)
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/[email protected]/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 <[email protected]>
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 <[email protected]>
:::::: CC: Mark Brown <[email protected]>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-07-05 23:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox