All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [freescale-fslc:pr/207 8498/15819] sound/soc/codecs/rpmsg_wm8960.c:1646:26: error: 'wm8960_i2c_id' undeclared here (not in a function); did you mean
Date: Sun, 10 Jan 2021 08:36:05 +0800	[thread overview]
Message-ID: <202101100857.yxFdqf6x-lkp@intel.com> (raw)

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

tree:   https://github.com/Freescale/linux-fslc pr/207
head:   542efcb517375f400651e87a35dc11948908afa9
commit: ccb83f789e7db74582b0726f75b5197fcdac7482 [8498/15819] MLK-23702-3: ASoC: rpmsg_wm8960: Add i2c interface
config: c6x-randconfig-r024-20210110 (attached as .config)
compiler: c6x-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/Freescale/linux-fslc/commit/ccb83f789e7db74582b0726f75b5197fcdac7482
        git remote add freescale-fslc https://github.com/Freescale/linux-fslc
        git fetch --no-tags freescale-fslc pr/207
        git checkout ccb83f789e7db74582b0726f75b5197fcdac7482
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=c6x 

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

All errors (new ones prefixed by >>):

   In file included from sound/soc/codecs/rpmsg_wm8960.c:19:
>> sound/soc/codecs/rpmsg_wm8960.c:1646:26: error: 'wm8960_i2c_id' undeclared here (not in a function); did you mean 'wm8960_rin'?
    1646 | MODULE_DEVICE_TABLE(i2c, wm8960_i2c_id);
         |                          ^~~~~~~~~~~~~
   include/linux/module.h:227:15: note: in definition of macro 'MODULE_DEVICE_TABLE'
     227 | extern typeof(name) __mod_##type##__##name##_device_table  \
         |               ^~~~
   include/linux/module.h:128:42: error: redefinition of '__inittest'
     128 |  static inline initcall_t __maybe_unused __inittest(void)  \
         |                                          ^~~~~~~~~~
   include/linux/device.h:1903:1: note: in expansion of macro 'module_init'
    1903 | module_init(__driver##_init); \
         | ^~~~~~~~~~~
   include/linux/i2c.h:911:2: note: in expansion of macro 'module_driver'
     911 |  module_driver(__i2c_driver, i2c_add_driver, \
         |  ^~~~~~~~~~~~~
   sound/soc/codecs/rpmsg_wm8960.c:1664:1: note: in expansion of macro 'module_i2c_driver'
    1664 | module_i2c_driver(rpmsg_wm8960_i2c_driver);
         | ^~~~~~~~~~~~~~~~~
   include/linux/module.h:128:42: note: previous definition of '__inittest' was here
     128 |  static inline initcall_t __maybe_unused __inittest(void)  \
         |                                          ^~~~~~~~~~
   include/linux/device.h:1903:1: note: in expansion of macro 'module_init'
    1903 | module_init(__driver##_init); \
         | ^~~~~~~~~~~
   include/linux/platform_device.h:238:2: note: in expansion of macro 'module_driver'
     238 |  module_driver(__platform_driver, platform_driver_register, \
         |  ^~~~~~~~~~~~~
   sound/soc/codecs/rpmsg_wm8960.c:1546:1: note: in expansion of macro 'module_platform_driver'
    1546 | module_platform_driver(rpmsg_wm8960_codec_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/module.h:130:6: error: redefinition of 'init_module'
     130 |  int init_module(void) __copy(initfn) __attribute__((alias(#initfn)));
         |      ^~~~~~~~~~~
   include/linux/device.h:1903:1: note: in expansion of macro 'module_init'
    1903 | module_init(__driver##_init); \
         | ^~~~~~~~~~~
   include/linux/i2c.h:911:2: note: in expansion of macro 'module_driver'
     911 |  module_driver(__i2c_driver, i2c_add_driver, \
         |  ^~~~~~~~~~~~~
   sound/soc/codecs/rpmsg_wm8960.c:1664:1: note: in expansion of macro 'module_i2c_driver'
    1664 | module_i2c_driver(rpmsg_wm8960_i2c_driver);
         | ^~~~~~~~~~~~~~~~~
   include/linux/module.h:130:6: note: previous definition of 'init_module' was here
     130 |  int init_module(void) __copy(initfn) __attribute__((alias(#initfn)));
         |      ^~~~~~~~~~~
   include/linux/device.h:1903:1: note: in expansion of macro 'module_init'
    1903 | module_init(__driver##_init); \
         | ^~~~~~~~~~~
   include/linux/platform_device.h:238:2: note: in expansion of macro 'module_driver'
     238 |  module_driver(__platform_driver, platform_driver_register, \
         |  ^~~~~~~~~~~~~
   sound/soc/codecs/rpmsg_wm8960.c:1546:1: note: in expansion of macro 'module_platform_driver'
    1546 | module_platform_driver(rpmsg_wm8960_codec_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/module.h:134:42: error: redefinition of '__exittest'
     134 |  static inline exitcall_t __maybe_unused __exittest(void)  \
         |                                          ^~~~~~~~~~
   include/linux/device.h:1908:1: note: in expansion of macro 'module_exit'
    1908 | module_exit(__driver##_exit);
         | ^~~~~~~~~~~
   include/linux/i2c.h:911:2: note: in expansion of macro 'module_driver'
     911 |  module_driver(__i2c_driver, i2c_add_driver, \
         |  ^~~~~~~~~~~~~
   sound/soc/codecs/rpmsg_wm8960.c:1664:1: note: in expansion of macro 'module_i2c_driver'
    1664 | module_i2c_driver(rpmsg_wm8960_i2c_driver);
         | ^~~~~~~~~~~~~~~~~
   include/linux/module.h:134:42: note: previous definition of '__exittest' was here
     134 |  static inline exitcall_t __maybe_unused __exittest(void)  \
         |                                          ^~~~~~~~~~
   include/linux/device.h:1908:1: note: in expansion of macro 'module_exit'
    1908 | module_exit(__driver##_exit);
         | ^~~~~~~~~~~
   include/linux/platform_device.h:238:2: note: in expansion of macro 'module_driver'
     238 |  module_driver(__platform_driver, platform_driver_register, \
         |  ^~~~~~~~~~~~~
   sound/soc/codecs/rpmsg_wm8960.c:1546:1: note: in expansion of macro 'module_platform_driver'
    1546 | module_platform_driver(rpmsg_wm8960_codec_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/module.h:136:7: error: redefinition of 'cleanup_module'
     136 |  void cleanup_module(void) __copy(exitfn) __attribute__((alias(#exitfn)));
         |       ^~~~~~~~~~~~~~
   include/linux/device.h:1908:1: note: in expansion of macro 'module_exit'
    1908 | module_exit(__driver##_exit);
         | ^~~~~~~~~~~
   include/linux/i2c.h:911:2: note: in expansion of macro 'module_driver'
     911 |  module_driver(__i2c_driver, i2c_add_driver, \
         |  ^~~~~~~~~~~~~
   sound/soc/codecs/rpmsg_wm8960.c:1664:1: note: in expansion of macro 'module_i2c_driver'
    1664 | module_i2c_driver(rpmsg_wm8960_i2c_driver);
         | ^~~~~~~~~~~~~~~~~
   include/linux/module.h:136:7: note: previous definition of 'cleanup_module' was here
     136 |  void cleanup_module(void) __copy(exitfn) __attribute__((alias(#exitfn)));
         |       ^~~~~~~~~~~~~~
   include/linux/device.h:1908:1: note: in expansion of macro 'module_exit'
    1908 | module_exit(__driver##_exit);
         | ^~~~~~~~~~~
   include/linux/platform_device.h:238:2: note: in expansion of macro 'module_driver'
     238 |  module_driver(__platform_driver, platform_driver_register, \
         |  ^~~~~~~~~~~~~
   sound/soc/codecs/rpmsg_wm8960.c:1546:1: note: in expansion of macro 'module_platform_driver'
    1546 | module_platform_driver(rpmsg_wm8960_codec_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/module.h:227:21: error: '__mod_i2c__wm8960_i2c_id_device_table' aliased to undefined symbol 'wm8960_i2c_id'
     227 | extern typeof(name) __mod_##type##__##name##_device_table  \
         |                     ^~~~~~
   sound/soc/codecs/rpmsg_wm8960.c:1646:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
    1646 | MODULE_DEVICE_TABLE(i2c, wm8960_i2c_id);
         | ^~~~~~~~~~~~~~~~~~~


vim +1646 sound/soc/codecs/rpmsg_wm8960.c

  1641	
  1642	static const struct i2c_device_id rpmsg_wm8960_i2c_id[] = {
  1643		{ "wm8960", 0 },
  1644		{ }
  1645	};
> 1646	MODULE_DEVICE_TABLE(i2c, wm8960_i2c_id);
  1647	

---
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: 27567 bytes --]

                 reply	other threads:[~2021-01-10  0:36 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=202101100857.yxFdqf6x-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 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.