From: kbuild test robot <lkp@intel.com>
To: Akshu Agrawal <akshu.agrawal@amd.com>
Cc: "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER
MANAGEM..." <alsa-devel@alsa-project.org>,
kbuild-all@lists.01.org, open list <linux-kernel@vger.kernel.org>,
Takashi Iwai <tiwai@suse.com>,
"akshu.agrawal@amd.com, Liam Girdwood" <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
akshu.agrawal@amd.com
Subject: Re: [PATCH] ASoc: amd: Add DMIC switch capability to machine driver
Date: Mon, 2 Mar 2020 21:59:43 +0800 [thread overview]
Message-ID: <202003022139.479xLEbB%lkp@intel.com> (raw)
In-Reply-To: <20200302082443.51587-1-akshu.agrawal@amd.com>
[-- Attachment #1: Type: text/plain, Size: 2874 bytes --]
Hi Akshu,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on asoc/for-next]
[also build test WARNING on next-20200228]
[cannot apply to v5.6-rc4]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Akshu-Agrawal/ASoc-amd-Add-DMIC-switch-capability-to-machine-driver/20200302-170007
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-5) 7.5.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/device.h:15:0,
from include/sound/core.h:10,
from sound/soc//amd/acp3x-rt5682-max9836.c:7:
sound/soc//amd/acp3x-rt5682-max9836.c: In function 'acp3x_probe':
>> sound/soc//amd/acp3x-rt5682-max9836.c:341:23: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
dev_err(&pdev->dev, "DMIC gpio failed err=%d\n",
^
include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
#define dev_fmt(fmt) fmt
^~~
>> sound/soc//amd/acp3x-rt5682-max9836.c:341:3: note: in expansion of macro 'dev_err'
dev_err(&pdev->dev, "DMIC gpio failed err=%d\n",
^~~~~~~
vim +/dev_err +341 sound/soc//amd/acp3x-rt5682-max9836.c
323
324 static int acp3x_probe(struct platform_device *pdev)
325 {
326 int ret;
327 struct snd_soc_card *card;
328 struct acp3x_platform_info *machine;
329
330 machine = devm_kzalloc(&pdev->dev, sizeof(*machine), GFP_KERNEL);
331 if (!machine)
332 return -ENOMEM;
333
334 card = &acp3x_card;
335 acp3x_card.dev = &pdev->dev;
336 platform_set_drvdata(pdev, card);
337 snd_soc_card_set_drvdata(card, machine);
338
339 dmic_sel = devm_gpiod_get(&pdev->dev, "dmic", GPIOD_OUT_LOW);
340 if (IS_ERR(dmic_sel)) {
> 341 dev_err(&pdev->dev, "DMIC gpio failed err=%d\n",
342 PTR_ERR(dmic_sel));
343 return PTR_ERR(dmic_sel);
344 }
345
346 ret = devm_snd_soc_register_card(&pdev->dev, &acp3x_card);
347 if (ret) {
348 dev_err(&pdev->dev,
349 "devm_snd_soc_register_card(%s) failed: %d\n",
350 acp3x_card.name, ret);
351 return ret;
352 }
353 return 0;
354 }
355
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 71533 bytes --]
next prev parent reply other threads:[~2020-03-02 14:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-02 8:24 [PATCH] ASoc: amd: Add DMIC switch capability to machine driver Akshu Agrawal
2020-03-02 13:59 ` kbuild test robot [this message]
2020-03-02 14:37 ` Applied "ASoc: amd: Add DMIC switch capability to machine driver" to the asoc tree Mark Brown
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 \
--in-reply-to=202003022139.479xLEbB%lkp@intel.com \
--to=lkp@intel.com \
--cc=akshu.agrawal@amd.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tiwai@suse.com \
/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