All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [iwlwifi-chromeos:chromeos-5.4__release/core54-58 3013/9999] sound/soc/amd/acp3x-rt5682-max9836.c:342:4: warning: format specifies type 'int' but the argument has type 'long'
Date: Thu, 09 Jul 2020 15:21:40 +0800	[thread overview]
Message-ID: <202007091537.16kIHGx5%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2792 bytes --]

Hi Akshu,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/chromeos.git chromeos-5.4__release/core54-58
head:   d902f3439a0584cd838618b3b5ba473e5e2f1c14
commit: 182ae8e09f7dcf20e9a35b623d0f2293eb2a13e8 [3013/9999] FROMLIST: ASoc: amd: Add DMIC switch capability to machine driver
config: x86_64-randconfig-r015-20200708 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git checkout 182ae8e09f7dcf20e9a35b623d0f2293eb2a13e8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> sound/soc/amd/acp3x-rt5682-max9836.c:342:4: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
                           PTR_ERR(dmic_sel));
                           ^~~~~~~~~~~~~~~~~
   include/linux/device.h:1741:32: note: expanded from macro 'dev_err'
           _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
                                 ~~~     ^~~~~~~~~~~
   1 warning generated.

vim +342 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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33759 bytes --]

                 reply	other threads:[~2020-07-09  7:21 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 \
    --in-reply-to=202007091537.16kIHGx5%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.