All of lore.kernel.org
 help / color / mirror / Atom feed
* [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'
@ 2020-07-09  7:21 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-09  7:21 UTC (permalink / raw)
  To: kbuild-all

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-09  7:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-09  7:21 [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' kernel test robot

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.