Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Chen-Yu Tsai" <wens@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [wens:sunxi-wip 22/36] sound/soc/sunxi/sun4i-codec.c:2129:35: warning: unused variable 'sun55i_codec_ch_vol_scale'
Date: Sat, 31 Oct 2026 02:58:30 +0100	[thread overview]
Message-ID: <202610310223.7XZcyVgO-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/wens/linux.git sunxi-wip
head:   e8e10ee67982c55fd3900953641c680a2fbef1c6
commit: 26aaaa5549cb3eb3943ab92ffdfbe36a8eacda2e [22/36] ASoC: sun4i-codec: Support playback for A523 SoC family's audio codec
config: arm-randconfig-2001-20261030 (https://download.01.org/0day-ci/archive/20261031/202610310223.7XZcyVgO-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261031/202610310223.7XZcyVgO-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/202610310223.7XZcyVgO-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> sound/soc/sunxi/sun4i-codec.c:2129:35: warning: unused variable 'sun55i_codec_ch_vol_scale' [-Wunused-const-variable]
    2129 | static const DECLARE_TLV_DB_SCALE(sun55i_codec_ch_vol_scale, -11925, 75, 1);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
   include/sound/tlv.h:22:31: note: expanded from macro 'DECLARE_TLV_DB_SCALE'
      22 | #define DECLARE_TLV_DB_SCALE            SNDRV_CTL_TLVD_DECLARE_DB_SCALE
         |                                         ^
   include/uapi/sound/tlv.h:55:15: note: expanded from macro 'SNDRV_CTL_TLVD_DECLARE_DB_SCALE'
      55 |         unsigned int name[] = { \
         |                      ^~~~
   1 warning generated.


vim +/sun55i_codec_ch_vol_scale +2129 sound/soc/sunxi/sun4i-codec.c

  2126	
  2127	/* volume / mute controls */
  2128	static const DECLARE_TLV_DB_SCALE(sun55i_codec_dvol_scale, -7308, 116, 0);
> 2129	static const DECLARE_TLV_DB_SCALE(sun55i_codec_ch_vol_scale, -11925, 75, 1);
  2130	static const DECLARE_TLV_DB_SCALE(sun55i_codec_hp_vol_scale, -4200, 600, 0);
  2131	static const DECLARE_TLV_DB_RANGE(sun55i_codec_lineout_vol_scale,
  2132		0, 1, TLV_DB_SCALE_ITEM(TLV_DB_GAIN_MUTE, 0, 1),
  2133		2, 31, TLV_DB_SCALE_ITEM(-4350, 150, 0),
  2134	);
  2135	static const char * const sun55i_codec_cpldo_volt_enum_text[] = {
  2136		"0.9V", "1.0V", "1.1V", "1.2V"
  2137	};
  2138	static SOC_ENUM_SINGLE_DECL(sun55i_codec_cpldo_volt_enum, SUN55I_CODEC_DAC,
  2139				    SUN55I_CODEC_DAC_CPLDO_VOLT,
  2140				    sun55i_codec_cpldo_volt_enum_text);
  2141	

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

                 reply	other threads:[~2026-10-31  1:59 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=202610310223.7XZcyVgO-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=wens@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox