public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [morimoto:sound-cleanup-2025-12-01 12/13] sound/soc/sti/uniperif_reader.c:422:2: error: member reference base type 'int (struct snd_soc_dai *, unsigned int, unsigned int, int, int)' is not a structure or union
@ 2025-12-02  0:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-02  0:44 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/morimoto/linux sound-cleanup-2025-12-01
head:   a5568a9bacc493dbb1465f3b850acf8595553013
commit: 37f1f58e36152e534fc127762820579e3a28ea85 [12/13] hoge
config: i386-buildonly-randconfig-003-20251202 (https://download.01.org/0day-ci/archive/20251202/202512020812.JIZvBt74-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/20251202/202512020812.JIZvBt74-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/202512020812.JIZvBt74-lkp@intel.com/

All errors (new ones prefixed by >>):

>> sound/soc/sti/uniperif_reader.c:422:2: error: member reference base type 'int (struct snd_soc_dai *, unsigned int, unsigned int, int, int)' is not a structure or union
     421 |         .set_tdm_slot                   = sti_uniperiph_set_tdm_slot
         |                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~
     422 |         .auto_selectable_formats        = &uni_selectable_formats,
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/sti/uniperif_reader.c:422:30: error: use of undeclared identifier 'uni_selectable_formats'; did you mean 'ui_selectable_formats'?
     422 |         .auto_selectable_formats        = &uni_selectable_formats,
         |                                            ^~~~~~~~~~~~~~~~~~~~~~
         |                                            ui_selectable_formats
   sound/soc/sti/uniperif_reader.c:404:18: note: 'ui_selectable_formats' declared here
     404 | static const u64 ui_selectable_formats =
         |                  ^
   2 errors generated.
--
>> sound/soc/sti/uniperif_player.c:1060:2: error: member reference base type 'int (struct snd_soc_dai *, unsigned int, unsigned int, int, int)' is not a structure or union
    1059 |         .set_tdm_slot                   = sti_uniperiph_set_tdm_slot
         |                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~
    1060 |         .auto_selectable_formats        = &uni_selectable_formats,
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   1 error generated.
--
>> sound/soc/uniphier/aio-cpu.c:464:30: error: use of undeclared identifier 'uniphier_dai_selectable_formats'; did you mean 'uniphier_aio_selectable_formats'?
     464 |         .auto_selectable_formats        = &uniphier_dai_selectable_formats,
         |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                            uniphier_aio_selectable_formats
   sound/soc/uniphier/aio-cpu.c:448:18: note: 'uniphier_aio_selectable_formats' declared here
     448 | static const u64 uniphier_aio_selectable_formats =
         |                  ^
   1 error generated.
--
>> sound/soc/sunxi/sun4i-i2s.c:1113:18: error: array initializer must be an initializer list
    1113 | static const u64 sun4i_i2s_selectable_formats[] =
         |                  ^
>> sound/soc/sunxi/sun4i-i2s.c:1123:2: error: expected identifier or '('
    1123 |         SND_SOC_POSSIBLE_DAIFMT_DSP_A   |
         |         ^
   include/sound/soc-dai.h:50:41: note: expanded from macro 'SND_SOC_POSSIBLE_DAIFMT_DSP_A'
      50 | #define SND_SOC_POSSIBLE_DAIFMT_DSP_A           (1 << SND_SOC_DAI_FORMAT_DSP_A)
         |                                                  ^
>> sound/soc/sunxi/sun4i-i2s.c:1123:2: error: expected ')'
   include/sound/soc-dai.h:50:41: note: expanded from macro 'SND_SOC_POSSIBLE_DAIFMT_DSP_A'
      50 | #define SND_SOC_POSSIBLE_DAIFMT_DSP_A           (1 << SND_SOC_DAI_FORMAT_DSP_A)
         |                                                  ^
   sound/soc/sunxi/sun4i-i2s.c:1123:2: note: to match this '('
   include/sound/soc-dai.h:50:40: note: expanded from macro 'SND_SOC_POSSIBLE_DAIFMT_DSP_A'
      50 | #define SND_SOC_POSSIBLE_DAIFMT_DSP_A           (1 << SND_SOC_DAI_FORMAT_DSP_A)
         |                                                 ^
>> sound/soc/sunxi/sun4i-i2s.c:1123:31: error: expected ';' after top level declarator
    1123 |         SND_SOC_POSSIBLE_DAIFMT_DSP_A   |
         |                                      ^
         |                                      ;
>> sound/soc/sunxi/sun4i-i2s.c:1135:33: error: invalid application of 'sizeof' to an incomplete type 'const u64[]' (aka 'const unsigned long long[]')
    1135 |         .num_auto_selectable_formats    = ARRAY_SIZE(sun4i_i2s_selectable_formats),
         |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                ^~~~~
   5 errors generated.


vim +422 sound/soc/sti/uniperif_reader.c

   399	
   400	/*
   401	 * Select below from Sound Card, not Auto
   402	 *	SND_SOC_DAIFMT_CBx_CFx
   403	 */
   404	static const u64 ui_selectable_formats =
   405		SND_SOC_POSSIBLE_DAIFMT_I2S	|
   406		SND_SOC_POSSIBLE_DAIFMT_RIGHT_J	|
   407		SND_SOC_POSSIBLE_DAIFMT_LEFT_J	|
   408		SND_SOC_POSSIBLE_DAIFMT_NB_NF	|
   409		SND_SOC_POSSIBLE_DAIFMT_NB_IF	|
   410		SND_SOC_POSSIBLE_DAIFMT_IB_NF	|
   411		SND_SOC_POSSIBLE_DAIFMT_IB_IF;
   412	
   413	static const struct snd_soc_dai_ops uni_reader_dai_ops = {
   414		.startup			= uni_reader_startup,
   415		.shutdown			= uni_reader_shutdown,
   416		.prepare			= uni_reader_prepare,
   417		.probe				= sti_uniperiph_dai_probe,
   418		.trigger			= uni_reader_trigger,
   419		.hw_params			= sti_uniperiph_dai_hw_params,
   420		.set_fmt			= sti_uniperiph_dai_set_fmt,
   421		.set_tdm_slot			= sti_uniperiph_set_tdm_slot
 > 422		.auto_selectable_formats	= &uni_selectable_formats,
   423		.num_auto_selectable_formats	= 1,
   424	};
   425	

-- 
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:[~2025-12-02  0:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-02  0:44 [morimoto:sound-cleanup-2025-12-01 12/13] sound/soc/sti/uniperif_reader.c:422:2: error: member reference base type 'int (struct snd_soc_dai *, unsigned int, unsigned int, int, int)' is not a structure or union kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox