Linux-OMAP Archive on lore.kernel.org
 help / color / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Tony Lindgren <tony@atomide.com>
Cc: kbuild-all@lists.01.org, linux-omap@vger.kernel.org
Subject: [omap:serdev-ngsm-pending-v5.7 25/29] sound/soc/codecs/motmdm.c:360:15: warning: variable 'daifmt' set but not used
Date: Sat, 23 May 2020 20:25:36 +0800
Message-ID: <202005232034.rIThCEow%lkp@intel.com> (raw)


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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git serdev-ngsm-pending-v5.7
head:   4eda51fea6be98ca5a4023a988b102bf3629b295
commit: 728c3d7a6d54a03b28a677cbd623439c4b58d3ad [25/29] ASoC: audio-graph-card: Add audio mixer for motorold mdm6600
config: nds32-allyesconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.0
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
        git checkout 728c3d7a6d54a03b28a677cbd623439c4b58d3ad
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32 

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

All warnings (new ones prefixed by >>, old ones prefixed by <<):

sound/soc/codecs/motmdm.c: In function 'motmdm_find_primary_dai':
>> sound/soc/codecs/motmdm.c:360:15: warning: variable 'daifmt' set but not used [-Wunused-but-set-variable]
360 |  unsigned int daifmt;
|               ^~~~~~

vim +/daifmt +360 sound/soc/codecs/motmdm.c

   351	
   352	static int motmdm_find_primary_dai(struct snd_soc_component *component,
   353		const char *name)
   354	{
   355		struct motmdm_driver_data *ddata =
   356			snd_soc_component_get_drvdata(component);
   357		struct device_node *bitclkmaster = NULL, *framemaster = NULL;
   358		struct device_node *ep, *master_ep, *master = NULL;
   359		struct snd_soc_dai_link_component dlc = { 0 };
 > 360		unsigned int daifmt;
   361	
   362		ep = of_graph_get_next_endpoint(component->dev->of_node, NULL);
   363		if (!ep)
   364			return -ENODEV;
   365	
   366		master_ep = of_graph_get_remote_endpoint(ep);
   367		of_node_put(ep);
   368		if (!master_ep)
   369			return -ENODEV;
   370	
   371		daifmt = snd_soc_of_parse_daifmt(master_ep, NULL,
   372						 &bitclkmaster, &framemaster);
   373		of_node_put(master_ep);
   374		if (bitclkmaster && framemaster)
   375			master = of_graph_get_port_parent(bitclkmaster);
   376		of_node_put(bitclkmaster);
   377		of_node_put(framemaster);
   378		if (!master)
   379			return -ENODEV;
   380	
   381		dlc.of_node = master;
   382		dlc.dai_name = name;
   383		ddata->master_dai = snd_soc_find_dai(&dlc);
   384		of_node_put(master);
   385		if (!ddata->master_dai)
   386			return -EPROBE_DEFER;
   387	
   388		dev_info(component->dev, "Master DAI is %s\n",
   389			 dev_name(ddata->master_dai->dev));
   390	
   391		return 0;
   392	}
   393	

---
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: 56167 bytes --]

                 reply index

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=202005232034.rIThCEow%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.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

Linux-OMAP Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-omap/0 linux-omap/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-omap linux-omap/ https://lore.kernel.org/linux-omap \
		linux-omap@vger.kernel.org
	public-inbox-index linux-omap

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-omap


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git