All of lore.kernel.org
 help / color / mirror / Atom feed
* [freescale-fslc:5.4-2.3.x-imx 15426/16543] sound/soc/fsl/imx-pcm512x.c:357:23: warning: initialized field overwritten
@ 2021-01-14 12:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-14 12:59 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6536 bytes --]

tree:   https://github.com/Freescale/linux-fslc 5.4-2.3.x-imx
head:   a8a2b9ee4bec0b29d031324160b7f11af42a563a
commit: 8efc3af011c524745935866310f8ec44a37bf384 [15426/16543] MLK-24930-1: sound: soc: fsl: imx pcm512x: iqaudio dac
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/Freescale/linux-fslc/commit/8efc3af011c524745935866310f8ec44a37bf384
        git remote add freescale-fslc https://github.com/Freescale/linux-fslc
        git fetch --no-tags freescale-fslc 5.4-2.3.x-imx
        git checkout 8efc3af011c524745935866310f8ec44a37bf384
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   sound/soc/fsl/imx-pcm512x.c: In function 'imx_pcm512x_hw_params':
   sound/soc/fsl/imx-pcm512x.c:250:5: error: 'PCM512x_SYSCLK_MCLK1' undeclared (first use in this function); did you mean 'PCM512x_SDAC_MCK'?
     250 |     PCM512x_SYSCLK_MCLK1, mclk_freq, SND_SOC_CLOCK_IN);
         |     ^~~~~~~~~~~~~~~~~~~~
         |     PCM512x_SDAC_MCK
   sound/soc/fsl/imx-pcm512x.c:250:5: note: each undeclared identifier is reported only once for each function it appears in
   sound/soc/fsl/imx-pcm512x.c:255:5: error: 'PCM512x_SYSCLK_MCLK2' undeclared (first use in this function); did you mean 'PCM512x_SDAC_MCK'?
     255 |     PCM512x_SYSCLK_MCLK2, mclk_freq, SND_SOC_CLOCK_IN);
         |     ^~~~~~~~~~~~~~~~~~~~
         |     PCM512x_SDAC_MCK
   In file included from sound/soc/fsl/imx-pcm512x.c:21:
   sound/soc/fsl/imx-pcm512x.c: At top level:
>> sound/soc/fsl/imx-pcm512x.c:357:23: warning: initialized field overwritten [-Woverride-init]
     357 |   SND_SOC_DAILINK_REG(hifi),
         |                       ^~~~
   include/sound/soc.h:919:13: note: in definition of macro 'SND_SOC_DAILINK_REG3'
     919 |  .codecs  = codec,   \
         |             ^~~~~
   include/sound/soc.h:924:53: note: in expansion of macro 'SND_SOC_DAILINK_REG1'
     924 | #define SND_SOC_DAILINK_REGx(_1, _2, _3, func, ...) func
         |                                                     ^~~~
   sound/soc/fsl/imx-pcm512x.c:357:3: note: in expansion of macro 'SND_SOC_DAILINK_REG'
     357 |   SND_SOC_DAILINK_REG(hifi),
         |   ^~~~~~~~~~~~~~~~~~~
   sound/soc/fsl/imx-pcm512x.c:357:23: note: (near initialization for 'imx_pcm512x_dai[0].codecs')
     357 |   SND_SOC_DAILINK_REG(hifi),
         |                       ^~~~
   include/sound/soc.h:919:13: note: in definition of macro 'SND_SOC_DAILINK_REG3'
     919 |  .codecs  = codec,   \
         |             ^~~~~
   include/sound/soc.h:924:53: note: in expansion of macro 'SND_SOC_DAILINK_REG1'
     924 | #define SND_SOC_DAILINK_REGx(_1, _2, _3, func, ...) func
         |                                                     ^~~~
   sound/soc/fsl/imx-pcm512x.c:357:3: note: in expansion of macro 'SND_SOC_DAILINK_REG'
     357 |   SND_SOC_DAILINK_REG(hifi),
         |   ^~~~~~~~~~~~~~~~~~~
   In file included from include/linux/list.h:9,
                    from include/linux/module.h:9,
                    from sound/soc/fsl/imx-pcm512x.c:13:
>> include/linux/kernel.h:47:25: warning: initialized field overwritten [-Woverride-init]
      47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                         ^
   include/sound/soc.h:920:16: note: in expansion of macro 'ARRAY_SIZE'
     920 |  .num_codecs = ARRAY_SIZE(codec),  \
         |                ^~~~~~~~~~
   include/sound/soc.h:914:37: note: in expansion of macro 'SND_SOC_DAILINK_REG3'
     914 | #define SND_SOC_DAILINK_REG1(name)  SND_SOC_DAILINK_REG3(name##_cpus, name##_codecs, name##_platforms)
         |                                     ^~~~~~~~~~~~~~~~~~~~
   include/sound/soc.h:924:53: note: in expansion of macro 'SND_SOC_DAILINK_REG1'
     924 | #define SND_SOC_DAILINK_REGx(_1, _2, _3, func, ...) func
         |                                                     ^~~~
   include/sound/soc.h:926:2: note: in expansion of macro 'SND_SOC_DAILINK_REGx'
     926 |  SND_SOC_DAILINK_REGx(__VA_ARGS__,  \
         |  ^~~~~~~~~~~~~~~~~~~~
   sound/soc/fsl/imx-pcm512x.c:357:3: note: in expansion of macro 'SND_SOC_DAILINK_REG'
     357 |   SND_SOC_DAILINK_REG(hifi),
         |   ^~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:47:25: note: (near initialization for 'imx_pcm512x_dai[0].num_codecs')
      47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                         ^
   include/sound/soc.h:920:16: note: in expansion of macro 'ARRAY_SIZE'
     920 |  .num_codecs = ARRAY_SIZE(codec),  \
         |                ^~~~~~~~~~
   include/sound/soc.h:914:37: note: in expansion of macro 'SND_SOC_DAILINK_REG3'
     914 | #define SND_SOC_DAILINK_REG1(name)  SND_SOC_DAILINK_REG3(name##_cpus, name##_codecs, name##_platforms)
         |                                     ^~~~~~~~~~~~~~~~~~~~
   include/sound/soc.h:924:53: note: in expansion of macro 'SND_SOC_DAILINK_REG1'
     924 | #define SND_SOC_DAILINK_REGx(_1, _2, _3, func, ...) func
         |                                                     ^~~~
   include/sound/soc.h:926:2: note: in expansion of macro 'SND_SOC_DAILINK_REGx'
     926 |  SND_SOC_DAILINK_REGx(__VA_ARGS__,  \
         |  ^~~~~~~~~~~~~~~~~~~~
   sound/soc/fsl/imx-pcm512x.c:357:3: note: in expansion of macro 'SND_SOC_DAILINK_REG'
     357 |   SND_SOC_DAILINK_REG(hifi),
         |   ^~~~~~~~~~~~~~~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for GPIO_MXC
   Depends on GPIOLIB && HAS_IOMEM && ARCH_MXC
   Selected by
   - GPIO_MXC_PAD_WAKEUP && GPIOLIB && HAS_IOMEM && IMX_SCU


vim +357 sound/soc/fsl/imx-pcm512x.c

   347	
   348	static struct snd_soc_dai_link imx_pcm512x_dai[] = {
   349		{
   350			.name = "pcm512x-audio",
   351			.stream_name = "audio",
   352			.codecs = pcm512x_codecs,
   353			.num_codecs = 1,
   354			.ops = &imx_pcm512x_ops,
   355			.init = imx_pcm512x_dai_init,
   356			.ignore_pmdown_time = 1,
 > 357			SND_SOC_DAILINK_REG(hifi),
   358		},
   359	};
   360	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 71439 bytes --]

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

only message in thread, other threads:[~2021-01-14 12:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14 12:59 [freescale-fslc:5.4-2.3.x-imx 15426/16543] sound/soc/fsl/imx-pcm512x.c:357:23: warning: initialized field overwritten 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.