All of lore.kernel.org
 help / color / mirror / Atom feed
* [wens:sunxi-wip 27/29] sound/soc/sunxi/sun4i-codec.c:2118:35: warning: 'sun55i_codec_ch_vol_scale' defined but not used
@ 2026-05-16  3:01 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-16  3:01 UTC (permalink / raw)
  To: Chen-Yu Tsai; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/wens/linux.git sunxi-wip
head:   1cdb4d4846ffaddce6d648dbbfcdcca78f8a0bcc
commit: ef6aea06096134a7e805db2283ed108274414319 [27/29] ASoC: sun4i-codec: Support playback for A523 SoC family's audio codec
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20260516/202605161000.Kv6gmLQc-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260516/202605161000.Kv6gmLQc-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/202605161000.Kv6gmLQc-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from sound/soc/sunxi/sun4i-codec.c:20:
   sound/soc/sunxi/sun4i-codec.c:2419:37: error: 'SUN55I_CODEC_ADC_FIFOC' undeclared here (not in a function); did you mean 'SUN55I_CODEC_DAC_FIFOC'?
    2419 |         .reg_adc_fifoc  = REG_FIELD(SUN55I_CODEC_ADC_FIFOC, 0, 31),
         |                                     ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/regmap.h:1464:40: note: in definition of macro 'REG_FIELD'
    1464 |                                 .reg = _reg,    \
         |                                        ^~~~
   sound/soc/sunxi/sun4i-codec.c:2422:27: error: 'SUN55I_CODEC_ADC_RXDATA' undeclared here (not in a function); did you mean 'SUN6I_CODEC_ADC_RXDATA'?
    2422 |         .reg_adc_rxdata = SUN55I_CODEC_ADC_RXDATA,
         |                           ^~~~~~~~~~~~~~~~~~~~~~~
         |                           SUN6I_CODEC_ADC_RXDATA
   In file included from include/sound/tlv.h:10,
                    from sound/soc/sunxi/sun4i-codec.c:31:
>> sound/soc/sunxi/sun4i-codec.c:2118:35: warning: 'sun55i_codec_ch_vol_scale' defined but not used [-Wunused-const-variable=]
    2118 | static const DECLARE_TLV_DB_SCALE(sun55i_codec_ch_vol_scale, -11925, 75, 1);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
   include/uapi/sound/tlv.h:55:22: note: in definition of macro 'SNDRV_CTL_TLVD_DECLARE_DB_SCALE'
      55 |         unsigned int name[] = { \
         |                      ^~~~
   sound/soc/sunxi/sun4i-codec.c:2118:14: note: in expansion of macro 'DECLARE_TLV_DB_SCALE'
    2118 | static const DECLARE_TLV_DB_SCALE(sun55i_codec_ch_vol_scale, -11925, 75, 1);
         |              ^~~~~~~~~~~~~~~~~~~~


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

  2115	
  2116	/* volume / mute controls */
  2117	static const DECLARE_TLV_DB_SCALE(sun55i_codec_dvol_scale, -7308, 116, 0);
> 2118	static const DECLARE_TLV_DB_SCALE(sun55i_codec_ch_vol_scale, -11925, 75, 1);
  2119	static const DECLARE_TLV_DB_SCALE(sun55i_codec_hp_vol_scale, -4200, 600, 0);
  2120	static const DECLARE_TLV_DB_RANGE(sun55i_codec_lineout_vol_scale,
  2121		0, 1, TLV_DB_SCALE_ITEM(TLV_DB_GAIN_MUTE, 0, 1),
  2122		2, 31, TLV_DB_SCALE_ITEM(-4350, 150, 0),
  2123	);
  2124	

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

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

only message in thread, other threads:[~2026-05-16  3:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-16  3:01 [wens:sunxi-wip 27/29] sound/soc/sunxi/sun4i-codec.c:2118:35: warning: 'sun55i_codec_ch_vol_scale' defined but not used 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.