* [omap:serdev-ngsm-pending-v5.7 25/29] sound/soc/codecs/motmdm.c:360:15: warning: variable 'daifmt' set but not used
@ 2020-05-23 12:25 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-23 12:25 UTC (permalink / raw)
To: Tony Lindgren; +Cc: kbuild-all, linux-omap
[-- 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 --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-23 13:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-23 12:25 [omap:serdev-ngsm-pending-v5.7 25/29] sound/soc/codecs/motmdm.c:360:15: warning: variable 'daifmt' set but not used kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).