Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [morimoto:sound-new-daifmt-20241216 13/44] sound/soc/sunxi/sun8i-codec-analog.c:400:11: error: use of undeclared identifier 'dev'
Date: Mon, 16 Dec 2024 17:17:26 +0800	[thread overview]
Message-ID: <202412161711.uvRC6NsS-lkp@intel.com> (raw)

tree:   https://github.com/morimoto/linux sound-new-daifmt-20241216
head:   3593000c508ad86b18f89bca8b4e6ae589ac9529
commit: 48f91ba23b46ee9c33a5459a4e9aea728461ee7d [13/44] ASoC: error message cleanup (snd_soc_dapm_new_controls())
config: arm-randconfig-003-20241216 (https://download.01.org/0day-ci/archive/20241216/202412161711.uvRC6NsS-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 2dc22615fd46ab2566d0f26d5ba234ab12dc4bf8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241216/202412161711.uvRC6NsS-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412161711.uvRC6NsS-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from sound/soc/sunxi/sun8i-codec-analog.c:16:
   In file included from include/sound/soc.h:26:
   In file included from include/sound/ac97_codec.h:17:
   In file included from include/sound/pcm.h:15:
   In file included from include/linux/mm.h:2223:
   include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     518 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> sound/soc/sunxi/sun8i-codec-analog.c:400:11: error: use of undeclared identifier 'dev'
     400 |                 dev_err(dev, "Failed to add Headphone controls: %d\n", ret);
         |                         ^
   sound/soc/sunxi/sun8i-codec-analog.c:412:11: error: use of undeclared identifier 'dev'
     412 |                 dev_err(dev, "Failed to add Headphone DAPM routes: %d\n", ret);
         |                         ^
   sound/soc/sunxi/sun8i-codec-analog.c:481:11: error: use of undeclared identifier 'dev'
     481 |                 dev_err(dev, "Failed to add Line In controls: %d\n", ret);
         |                         ^
   sound/soc/sunxi/sun8i-codec-analog.c:493:11: error: use of undeclared identifier 'dev'
     493 |                 dev_err(dev, "Failed to add Line In DAPM routes: %d\n", ret);
         |                         ^
   sound/soc/sunxi/sun8i-codec-analog.c:559:11: error: use of undeclared identifier 'dev'
     559 |                 dev_err(dev, "Failed to add Line Out controls: %d\n", ret);
         |                         ^
   sound/soc/sunxi/sun8i-codec-analog.c:571:11: error: use of undeclared identifier 'dev'
     571 |                 dev_err(dev, "Failed to add Line Out DAPM routes: %d\n", ret);
         |                         ^
   sound/soc/sunxi/sun8i-codec-analog.c:621:11: error: use of undeclared identifier 'dev'
     621 |                 dev_err(dev, "Failed to add MIC2 controls: %d\n", ret);
         |                         ^
   sound/soc/sunxi/sun8i-codec-analog.c:633:11: error: use of undeclared identifier 'dev'
     633 |                 dev_err(dev, "Failed to add MIC2 DAPM routes: %d\n", ret);
         |                         ^
   sound/soc/sunxi/sun8i-codec-analog.c:694:11: error: use of undeclared identifier 'dev'
     694 |                 dev_err(dev, "Failed to add Mixer DAPM routes: %d\n", ret);
         |                         ^
   1 warning and 9 errors generated.


vim +/dev +400 sound/soc/sunxi/sun8i-codec-analog.c

ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  390  
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  391  static int sun8i_codec_add_headphone(struct snd_soc_component *cmpnt)
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  392  {
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  393  	struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(cmpnt);
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  394  	int ret;
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  395  
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  396  	ret = snd_soc_add_component_controls(cmpnt,
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  397  					     sun8i_codec_headphone_controls,
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  398  					     ARRAY_SIZE(sun8i_codec_headphone_controls));
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  399  	if (ret) {
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12 @400  		dev_err(dev, "Failed to add Headphone controls: %d\n", ret);
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  401  		return ret;
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  402  	}
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  403  
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  404  	ret = snd_soc_dapm_new_controls(dapm, sun8i_codec_headphone_widgets,
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  405  					ARRAY_SIZE(sun8i_codec_headphone_widgets));
48f91ba23b46ee9 Kuninori Morimoto 2024-09-10  406  	if (ret)
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  407  		return ret;
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  408  
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  409  	ret = snd_soc_dapm_add_routes(dapm, sun8i_codec_headphone_routes,
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  410  				      ARRAY_SIZE(sun8i_codec_headphone_routes));
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  411  	if (ret) {
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  412  		dev_err(dev, "Failed to add Headphone DAPM routes: %d\n", ret);
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  413  		return ret;
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  414  	}
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  415  
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  416  	return 0;
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  417  }
ba2ff3027b5ab4a Chen-Yu Tsai      2016-11-12  418  

:::::: The code at line 400 was first introduced by commit
:::::: ba2ff3027b5ab4a96b9d2832822311c3ccbf3011 ASoC: sunxi: Add support for A23/A33/H3 codec's analog path controls

:::::: TO: Chen-Yu Tsai <wens@csie.org>
:::::: CC: Mark Brown <broonie@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-12-16  9:17 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=202412161711.uvRC6NsS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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