[alsa-devel] [asoc:for-next 251/253] sound/soc//intel/boards/bxt_da7219_max98357a.c:19:10: fatal error: asm/cpu_device_id.h: No such file or directory

kbuild test robot lkp at intel.com
Fri Apr 12 14:28:39 CEST 2019


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
head:   3e683b839e7a2c4588874499fb033588082cde4e
commit: 89a7bfa3ede49fb3c38bfe6854a391553ff9132c [251/253] ASoC: Intel: Make boards more available for compile test
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 8.1.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 89a7bfa3ede49fb3c38bfe6854a391553ff9132c
        # save the attached .config to linux build tree
        GCC_VERSION=8.1.0 make.cross ARCH=ia64 

All error/warnings (new ones prefixed by >>):

>> sound/soc//intel/boards/bxt_da7219_max98357a.c:19:10: fatal error: asm/cpu_device_id.h: No such file or directory
    #include <asm/cpu_device_id.h>
             ^~~~~~~~~~~~~~~~~~~~~
   compilation terminated.
--
>> sound/soc//intel/skylake/skl-ssp-clk.c:26:16: error: field 'hw' has incomplete type
     struct clk_hw hw;
                   ^~
   In file included from include/linux/kernel.h:11,
                    from sound/soc//intel/skylake/skl-ssp-clk.c:8:
   sound/soc//intel/skylake/skl-ssp-clk.c: In function 'skl_clk_prepare':
>> include/linux/kernel.h:979:32: error: dereferencing pointer to incomplete type 'struct clk_hw'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                   ^~~~~~
   include/linux/compiler.h:324:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler.h:344:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:979:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:979:20: note: in expansion of macro '__same_type'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                       ^~~~~~~~~~~
   sound/soc//intel/skylake/skl-ssp-clk.c:18:25: note: in expansion of macro 'container_of'
    #define to_skl_clk(_hw) container_of(_hw, struct skl_clk, hw)
                            ^~~~~~~~~~~~
   sound/soc//intel/skylake/skl-ssp-clk.c:201:27: note: in expansion of macro 'to_skl_clk'
     struct skl_clk *clkdev = to_skl_clk(hw);
                              ^~~~~~~~~~
   sound/soc//intel/skylake/skl-ssp-clk.c: At top level:
>> sound/soc//intel/skylake/skl-ssp-clk.c:260:21: error: variable 'skl_clk_ops' has initializer but incomplete type
    static const struct clk_ops skl_clk_ops = {
                        ^~~~~~~
>> sound/soc//intel/skylake/skl-ssp-clk.c:261:3: error: 'const struct clk_ops' has no member named 'prepare'
     .prepare = skl_clk_prepare,
      ^~~~~~~
>> sound/soc//intel/skylake/skl-ssp-clk.c:261:13: warning: excess elements in struct initializer
     .prepare = skl_clk_prepare,
                ^~~~~~~~~~~~~~~
   sound/soc//intel/skylake/skl-ssp-clk.c:261:13: note: (near initialization for 'skl_clk_ops')
>> sound/soc//intel/skylake/skl-ssp-clk.c:262:3: error: 'const struct clk_ops' has no member named 'unprepare'
     .unprepare = skl_clk_unprepare,
      ^~~~~~~~~
   sound/soc//intel/skylake/skl-ssp-clk.c:262:15: warning: excess elements in struct initializer
     .unprepare = skl_clk_unprepare,
                  ^~~~~~~~~~~~~~~~~
   sound/soc//intel/skylake/skl-ssp-clk.c:262:15: note: (near initialization for 'skl_clk_ops')
>> sound/soc//intel/skylake/skl-ssp-clk.c:263:3: error: 'const struct clk_ops' has no member named 'set_rate'
     .set_rate = skl_clk_set_rate,
      ^~~~~~~~
   sound/soc//intel/skylake/skl-ssp-clk.c:263:14: warning: excess elements in struct initializer
     .set_rate = skl_clk_set_rate,
                 ^~~~~~~~~~~~~~~~
   sound/soc//intel/skylake/skl-ssp-clk.c:263:14: note: (near initialization for 'skl_clk_ops')
>> sound/soc//intel/skylake/skl-ssp-clk.c:264:3: error: 'const struct clk_ops' has no member named 'round_rate'
     .round_rate = skl_clk_round_rate,
      ^~~~~~~~~~
   sound/soc//intel/skylake/skl-ssp-clk.c:264:16: warning: excess elements in struct initializer
     .round_rate = skl_clk_round_rate,
                   ^~~~~~~~~~~~~~~~~~
   sound/soc//intel/skylake/skl-ssp-clk.c:264:16: note: (near initialization for 'skl_clk_ops')
>> sound/soc//intel/skylake/skl-ssp-clk.c:265:3: error: 'const struct clk_ops' has no member named 'recalc_rate'
     .recalc_rate = skl_clk_recalc_rate,
      ^~~~~~~~~~~
   sound/soc//intel/skylake/skl-ssp-clk.c:265:17: warning: excess elements in struct initializer
     .recalc_rate = skl_clk_recalc_rate,
                    ^~~~~~~~~~~~~~~~~~~
   sound/soc//intel/skylake/skl-ssp-clk.c:265:17: note: (near initialization for 'skl_clk_ops')
   sound/soc//intel/skylake/skl-ssp-clk.c: In function 'unregister_parent_src_clk':
>> sound/soc//intel/skylake/skl-ssp-clk.c:273:3: error: implicit declaration of function 'clk_hw_unregister_fixed_rate'; did you mean 'clk_hw_register_clkdev'? [-Werror=implicit-function-declaration]
      clk_hw_unregister_fixed_rate(pclk[id].hw);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      clk_hw_register_clkdev
   sound/soc//intel/skylake/skl-ssp-clk.c: In function 'skl_register_parent_clks':
>> sound/soc//intel/skylake/skl-ssp-clk.c:294:18: error: implicit declaration of function 'clk_hw_register_fixed_rate'; did you mean 'clk_hw_register_clkdev'? [-Werror=implicit-function-declaration]
      parent[i].hw = clk_hw_register_fixed_rate(dev, pclk[i].name,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
                     clk_hw_register_clkdev
>> sound/soc//intel/skylake/skl-ssp-clk.c:294:16: warning: assignment to 'struct clk_hw *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
      parent[i].hw = clk_hw_register_fixed_rate(dev, pclk[i].name,
                   ^
   sound/soc//intel/skylake/skl-ssp-clk.c: In function 'register_skl_clk':
>> sound/soc//intel/skylake/skl-ssp-clk.c:321:23: error: storage size of 'init' isn't known
     struct clk_init_data init;
                          ^~~~
>> sound/soc//intel/skylake/skl-ssp-clk.c:331:15: error: 'CLK_SET_RATE_GATE' undeclared (first use in this function); did you mean 'DL_STATE_NONE'?
     init.flags = CLK_SET_RATE_GATE;
                  ^~~~~~~~~~~~~~~~~
                  DL_STATE_NONE
   sound/soc//intel/skylake/skl-ssp-clk.c:331:15: note: each undeclared identifier is reported only once for each function it appears in
>> sound/soc//intel/skylake/skl-ssp-clk.c:338:8: error: implicit declaration of function 'devm_clk_hw_register'; did you mean 'devm_clk_hw_register_clkdev'? [-Werror=implicit-function-declaration]
     ret = devm_clk_hw_register(dev, &clkdev->hw);
           ^~~~~~~~~~~~~~~~~~~~
           devm_clk_hw_register_clkdev
   sound/soc//intel/skylake/skl-ssp-clk.c:321:23: warning: unused variable 'init' [-Wunused-variable]
     struct clk_init_data init;
                          ^~~~
   sound/soc//intel/skylake/skl-ssp-clk.c: At top level:
>> sound/soc//intel/skylake/skl-ssp-clk.c:260:29: error: storage size of 'skl_clk_ops' isn't known
    static const struct clk_ops skl_clk_ops = {
                                ^~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   sound/soc/intel/skylake/skl-ssp-clk.c:26:16: error: field 'hw' has incomplete type
     struct clk_hw hw;
                   ^~
   In file included from include/linux/kernel.h:11,
                    from sound/soc/intel/skylake/skl-ssp-clk.c:8:
   sound/soc/intel/skylake/skl-ssp-clk.c: In function 'skl_clk_prepare':
>> include/linux/kernel.h:979:32: error: dereferencing pointer to incomplete type 'struct clk_hw'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                   ^~~~~~
   include/linux/compiler.h:324:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler.h:344:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:979:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:979:20: note: in expansion of macro '__same_type'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                       ^~~~~~~~~~~
   sound/soc/intel/skylake/skl-ssp-clk.c:18:25: note: in expansion of macro 'container_of'
    #define to_skl_clk(_hw) container_of(_hw, struct skl_clk, hw)
                            ^~~~~~~~~~~~
   sound/soc/intel/skylake/skl-ssp-clk.c:201:27: note: in expansion of macro 'to_skl_clk'
     struct skl_clk *clkdev = to_skl_clk(hw);
                              ^~~~~~~~~~
   sound/soc/intel/skylake/skl-ssp-clk.c: At top level:
   sound/soc/intel/skylake/skl-ssp-clk.c:260:21: error: variable 'skl_clk_ops' has initializer but incomplete type
    static const struct clk_ops skl_clk_ops = {
                        ^~~~~~~
   sound/soc/intel/skylake/skl-ssp-clk.c:261:3: error: 'const struct clk_ops' has no member named 'prepare'
     .prepare = skl_clk_prepare,
      ^~~~~~~
   sound/soc/intel/skylake/skl-ssp-clk.c:261:13: warning: excess elements in struct initializer
     .prepare = skl_clk_prepare,
                ^~~~~~~~~~~~~~~
   sound/soc/intel/skylake/skl-ssp-clk.c:261:13: note: (near initialization for 'skl_clk_ops')
   sound/soc/intel/skylake/skl-ssp-clk.c:262:3: error: 'const struct clk_ops' has no member named 'unprepare'
     .unprepare = skl_clk_unprepare,
      ^~~~~~~~~
   sound/soc/intel/skylake/skl-ssp-clk.c:262:15: warning: excess elements in struct initializer
     .unprepare = skl_clk_unprepare,
                  ^~~~~~~~~~~~~~~~~
   sound/soc/intel/skylake/skl-ssp-clk.c:262:15: note: (near initialization for 'skl_clk_ops')
   sound/soc/intel/skylake/skl-ssp-clk.c:263:3: error: 'const struct clk_ops' has no member named 'set_rate'
     .set_rate = skl_clk_set_rate,
      ^~~~~~~~
   sound/soc/intel/skylake/skl-ssp-clk.c:263:14: warning: excess elements in struct initializer
     .set_rate = skl_clk_set_rate,
                 ^~~~~~~~~~~~~~~~
   sound/soc/intel/skylake/skl-ssp-clk.c:263:14: note: (near initialization for 'skl_clk_ops')
   sound/soc/intel/skylake/skl-ssp-clk.c:264:3: error: 'const struct clk_ops' has no member named 'round_rate'
     .round_rate = skl_clk_round_rate,
      ^~~~~~~~~~
   sound/soc/intel/skylake/skl-ssp-clk.c:264:16: warning: excess elements in struct initializer
     .round_rate = skl_clk_round_rate,
                   ^~~~~~~~~~~~~~~~~~
   sound/soc/intel/skylake/skl-ssp-clk.c:264:16: note: (near initialization for 'skl_clk_ops')
   sound/soc/intel/skylake/skl-ssp-clk.c:265:3: error: 'const struct clk_ops' has no member named 'recalc_rate'
     .recalc_rate = skl_clk_recalc_rate,
      ^~~~~~~~~~~
   sound/soc/intel/skylake/skl-ssp-clk.c:265:17: warning: excess elements in struct initializer
     .recalc_rate = skl_clk_recalc_rate,
                    ^~~~~~~~~~~~~~~~~~~
   sound/soc/intel/skylake/skl-ssp-clk.c:265:17: note: (near initialization for 'skl_clk_ops')
   sound/soc/intel/skylake/skl-ssp-clk.c: In function 'unregister_parent_src_clk':
   sound/soc/intel/skylake/skl-ssp-clk.c:273:3: error: implicit declaration of function 'clk_hw_unregister_fixed_rate'; did you mean 'clk_hw_register_clkdev'? [-Werror=implicit-function-declaration]
      clk_hw_unregister_fixed_rate(pclk[id].hw);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      clk_hw_register_clkdev
   sound/soc/intel/skylake/skl-ssp-clk.c: In function 'skl_register_parent_clks':
   sound/soc/intel/skylake/skl-ssp-clk.c:294:18: error: implicit declaration of function 'clk_hw_register_fixed_rate'; did you mean 'clk_hw_register_clkdev'? [-Werror=implicit-function-declaration]
      parent[i].hw = clk_hw_register_fixed_rate(dev, pclk[i].name,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
                     clk_hw_register_clkdev
   sound/soc/intel/skylake/skl-ssp-clk.c:294:16: warning: assignment to 'struct clk_hw *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
      parent[i].hw = clk_hw_register_fixed_rate(dev, pclk[i].name,
                   ^
   sound/soc/intel/skylake/skl-ssp-clk.c: In function 'register_skl_clk':
   sound/soc/intel/skylake/skl-ssp-clk.c:321:23: error: storage size of 'init' isn't known
     struct clk_init_data init;
                          ^~~~
   sound/soc/intel/skylake/skl-ssp-clk.c:331:15: error: 'CLK_SET_RATE_GATE' undeclared (first use in this function); did you mean 'DL_STATE_NONE'?
     init.flags = CLK_SET_RATE_GATE;
                  ^~~~~~~~~~~~~~~~~
                  DL_STATE_NONE
   sound/soc/intel/skylake/skl-ssp-clk.c:331:15: note: each undeclared identifier is reported only once for each function it appears in
   sound/soc/intel/skylake/skl-ssp-clk.c:338:8: error: implicit declaration of function 'devm_clk_hw_register'; did you mean 'devm_clk_hw_register_clkdev'? [-Werror=implicit-function-declaration]
     ret = devm_clk_hw_register(dev, &clkdev->hw);
           ^~~~~~~~~~~~~~~~~~~~
           devm_clk_hw_register_clkdev
   sound/soc/intel/skylake/skl-ssp-clk.c:321:23: warning: unused variable 'init' [-Wunused-variable]
     struct clk_init_data init;
                          ^~~~
   sound/soc/intel/skylake/skl-ssp-clk.c: At top level:
   sound/soc/intel/skylake/skl-ssp-clk.c:260:29: error: storage size of 'skl_clk_ops' isn't known
    static const struct clk_ops skl_clk_ops = {
                                ^~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +19 sound/soc//intel/boards/bxt_da7219_max98357a.c

c011245a Yong Zhi               2019-02-13 @19  #include <asm/cpu_device_id.h>
9dd9b210 Yong Zhi               2019-02-13  20  #include <linux/input.h>
723bad3f Sathyanarayana Nujella 2016-05-31  21  #include <linux/module.h>
723bad3f Sathyanarayana Nujella 2016-05-31  22  #include <linux/platform_device.h>
723bad3f Sathyanarayana Nujella 2016-05-31  23  #include <sound/core.h>
723bad3f Sathyanarayana Nujella 2016-05-31  24  #include <sound/jack.h>
723bad3f Sathyanarayana Nujella 2016-05-31  25  #include <sound/pcm.h>
723bad3f Sathyanarayana Nujella 2016-05-31  26  #include <sound/pcm_params.h>
723bad3f Sathyanarayana Nujella 2016-05-31  27  #include <sound/soc.h>
7ebf2528 Pierre-Louis Bossart   2019-01-25  28  #include <sound/soc-acpi.h>
723bad3f Sathyanarayana Nujella 2016-05-31  29  #include "../../codecs/hdac_hdmi.h"
723bad3f Sathyanarayana Nujella 2016-05-31  30  #include "../../codecs/da7219.h"
723bad3f Sathyanarayana Nujella 2016-05-31  31  #include "../../codecs/da7219-aad.h"
723bad3f Sathyanarayana Nujella 2016-05-31  32  

:::::: The code at line 19 was first introduced by commit
:::::: c011245a197017f8e9e9d140b658bdb2b702a0c5 ASoC: Intel: Add Geminilake Dialog Maxim machine driver

:::::: TO: Yong Zhi <yong.zhi at intel.com>
:::::: CC: Mark Brown <broonie at kernel.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 55819 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20190412/903ba3f1/attachment-0001.gz>


More information about the Alsa-devel mailing list