All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH] [RFCv3] ASoC: Add Rockchip rk817 audio CODEC support
Date: Wed, 17 Mar 2021 05:34:09 +0800	[thread overview]
Message-ID: <202103170525.ObOQ4wr9-lkp@intel.com> (raw)
In-Reply-To: <SN6PR06MB53428DB202A47AE12C039742A56B9@SN6PR06MB5342.namprd06.prod.outlook.com>

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

Hi Chris,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on asoc/for-next]
[also build test WARNING on v5.12-rc3 next-20210316]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Chris-Morgan/ASoC-Add-Rockchip-rk817-audio-CODEC-support/20210317-035642
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-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/0day-ci/linux/commit/40537fdd86dce321f639ec7d241ecc05303b8361
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Chris-Morgan/ASoC-Add-Rockchip-rk817-audio-CODEC-support/20210317-035642
        git checkout 40537fdd86dce321f639ec7d241ecc05303b8361
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

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/codecs/rk817_codec.c:31:33: note: declared here
      31 | static const struct reg_default rk817_reg_defaults[] = {
         |                                 ^~~~~~~~~~~~~~~~~~
   In file included from include/linux/bits.h:22,
                    from include/linux/bitops.h:6,
                    from include/linux/kernel.h:11,
                    from include/linux/clk.h:13,
                    from sound/soc/codecs/rk817_codec.c:7:
   include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                   ^
   include/linux/compiler.h:240:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
     240 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
         |                            ^~~~~~~~~~~~~~~~~
   include/linux/kernel.h:49:59: note: in expansion of macro '__must_be_array'
      49 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   sound/soc/codecs/rk817_codec.c:601:22: note: in expansion of macro 'ARRAY_SIZE'
     601 |  .num_reg_defaults = ARRAY_SIZE(rk817_reg_defaults),
         |                      ^~~~~~~~~~
   sound/soc/codecs/rk817_codec.c:605:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     605 | {
         | ^
   sound/soc/codecs/rk817_codec.c:662:44: error: expected declaration specifiers before ';' token
     662 | MODULE_DEVICE_TABLE(of, rk817_codec_dt_ids);
         |                                            ^
   sound/soc/codecs/rk817_codec.c:664:31: error: storage class specified for parameter 'rk817_codec_driver'
     664 | static struct platform_driver rk817_codec_driver = {
         |                               ^~~~~~~~~~~~~~~~~~
   sound/soc/codecs/rk817_codec.c:664:15: error: parameter 'rk817_codec_driver' is initialized
     664 | static struct platform_driver rk817_codec_driver = {
         |               ^~~~~~~~~~~~~~~
   sound/soc/codecs/rk817_codec.c:668:11: error: 'rk817_platform_probe' undeclared (first use in this function)
     668 |  .probe = rk817_platform_probe,
         |           ^~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/device.h:32,
                    from sound/soc/codecs/rk817_codec.c:8:
   include/linux/device/driver.h:260:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     260 | { \
         | ^
   include/linux/platform_device.h:257:2: note: in expansion of macro 'module_driver'
     257 |  module_driver(__platform_driver, platform_driver_register, \
         |  ^~~~~~~~~~~~~
   sound/soc/codecs/rk817_codec.c:671:1: note: in expansion of macro 'module_platform_driver'
     671 | module_platform_driver(rk817_codec_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/printk.h:6,
                    from include/linux/kernel.h:16,
                    from include/linux/clk.h:13,
                    from sound/soc/codecs/rk817_codec.c:7:
   include/linux/init.h:198:10: error: storage class specified for parameter '__initcall__kmod_snd_soc_rk817__389_671_rk817_codec_driver_init6'
     198 |  __PASTE(__,      \
         |          ^~
   include/linux/init.h:248:20: note: in definition of macro '____define_initcall'
     248 |  static initcall_t __name __used    \
         |                    ^~~~~~
   include/linux/compiler_types.h:60:22: note: in expansion of macro '___PASTE'
      60 | #define __PASTE(a,b) ___PASTE(a,b)
         |                      ^~~~~~~~
   include/linux/init.h:198:2: note: in expansion of macro '__PASTE'
     198 |  __PASTE(__,      \
         |  ^~~~~~~
   include/linux/init.h:255:3: note: in expansion of macro '__initcall_name'
     255 |   __initcall_name(initcall, __iid, id),  \
         |   ^~~~~~~~~~~~~~~
   include/linux/init.h:259:2: note: in expansion of macro '__unique_initcall'
     259 |  __unique_initcall(fn, id, __sec, __initcall_id(fn))
         |  ^~~~~~~~~~~~~~~~~
   include/linux/init.h:261:35: note: in expansion of macro '___define_initcall'
     261 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/init.h:290:30: note: in expansion of macro '__define_initcall'
     290 | #define device_initcall(fn)  __define_initcall(fn, 6)
         |                              ^~~~~~~~~~~~~~~~~
   include/linux/init.h:295:24: note: in expansion of macro 'device_initcall'
     295 | #define __initcall(fn) device_initcall(fn)
         |                        ^~~~~~~~~~~~~~~
   include/linux/module.h:89:24: note: in expansion of macro '__initcall'
      89 | #define module_init(x) __initcall(x);
         |                        ^~~~~~~~~~
   include/linux/device/driver.h:263:1: note: in expansion of macro 'module_init'
     263 | module_init(__driver##_init); \
         | ^~~~~~~~~~~
   include/linux/platform_device.h:257:2: note: in expansion of macro 'module_driver'
     257 |  module_driver(__platform_driver, platform_driver_register, \
         |  ^~~~~~~~~~~~~
   sound/soc/codecs/rk817_codec.c:671:1: note: in expansion of macro 'module_platform_driver'
     671 | module_platform_driver(rk817_codec_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/device.h:32,
                    from sound/soc/codecs/rk817_codec.c:8:
   include/linux/device/driver.h:260:1: error: parameter '__initcall__kmod_snd_soc_rk817__389_671_rk817_codec_driver_init6' is initialized
     260 | { \
         | ^
   include/linux/platform_device.h:257:2: note: in expansion of macro 'module_driver'
     257 |  module_driver(__platform_driver, platform_driver_register, \
         |  ^~~~~~~~~~~~~
   sound/soc/codecs/rk817_codec.c:671:1: note: in expansion of macro 'module_platform_driver'
     671 | module_platform_driver(rk817_codec_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/device/driver.h:260:1: warning: 'used' attribute ignored [-Wattributes]
     260 | { \
         | ^
   include/linux/platform_device.h:257:2: note: in expansion of macro 'module_driver'
     257 |  module_driver(__platform_driver, platform_driver_register, \
         |  ^~~~~~~~~~~~~
   sound/soc/codecs/rk817_codec.c:671:1: note: in expansion of macro 'module_platform_driver'
     671 | module_platform_driver(rk817_codec_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/printk.h:6,
                    from include/linux/kernel.h:16,
                    from include/linux/clk.h:13,
                    from sound/soc/codecs/rk817_codec.c:7:
   include/linux/init.h:198:10: error: section attribute not allowed for '__initcall__kmod_snd_soc_rk817__389_671_rk817_codec_driver_init6'
     198 |  __PASTE(__,      \
         |          ^~
   include/linux/init.h:248:20: note: in definition of macro '____define_initcall'
     248 |  static initcall_t __name __used    \
         |                    ^~~~~~
   include/linux/compiler_types.h:60:22: note: in expansion of macro '___PASTE'
      60 | #define __PASTE(a,b) ___PASTE(a,b)
         |                      ^~~~~~~~
   include/linux/init.h:198:2: note: in expansion of macro '__PASTE'
     198 |  __PASTE(__,      \
         |  ^~~~~~~
   include/linux/init.h:255:3: note: in expansion of macro '__initcall_name'
     255 |   __initcall_name(initcall, __iid, id),  \
         |   ^~~~~~~~~~~~~~~
   include/linux/init.h:259:2: note: in expansion of macro '__unique_initcall'
     259 |  __unique_initcall(fn, id, __sec, __initcall_id(fn))
         |  ^~~~~~~~~~~~~~~~~
   include/linux/init.h:261:35: note: in expansion of macro '___define_initcall'
     261 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/init.h:290:30: note: in expansion of macro '__define_initcall'
     290 | #define device_initcall(fn)  __define_initcall(fn, 6)
         |                              ^~~~~~~~~~~~~~~~~
   include/linux/init.h:295:24: note: in expansion of macro 'device_initcall'
     295 | #define __initcall(fn) device_initcall(fn)
         |                        ^~~~~~~~~~~~~~~
   include/linux/module.h:89:24: note: in expansion of macro '__initcall'
      89 | #define module_init(x) __initcall(x);
         |                        ^~~~~~~~~~
   include/linux/device/driver.h:263:1: note: in expansion of macro 'module_init'
     263 | module_init(__driver##_init); \
         | ^~~~~~~~~~~
   include/linux/platform_device.h:257:2: note: in expansion of macro 'module_driver'
     257 |  module_driver(__platform_driver, platform_driver_register, \
         |  ^~~~~~~~~~~~~
   sound/soc/codecs/rk817_codec.c:671:1: note: in expansion of macro 'module_platform_driver'
     671 | module_platform_driver(rk817_codec_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/rk817_codec.c:671:24: error: 'rk817_codec_driver_init' undeclared (first use in this function); did you mean 'rk817_codec_driver'?
     671 | module_platform_driver(rk817_codec_driver);
         |                        ^~~~~~~~~~~~~~~~~~
   include/linux/init.h:249:41: note: in definition of macro '____define_initcall'
     249 |   __attribute__((__section__(__sec))) = fn;
         |                                         ^~
   include/linux/init.h:259:2: note: in expansion of macro '__unique_initcall'
     259 |  __unique_initcall(fn, id, __sec, __initcall_id(fn))
         |  ^~~~~~~~~~~~~~~~~
   include/linux/init.h:261:35: note: in expansion of macro '___define_initcall'
     261 | #define __define_initcall(fn, id) ___define_initcall(fn, id, .initcall##id)
         |                                   ^~~~~~~~~~~~~~~~~~
   include/linux/init.h:290:30: note: in expansion of macro '__define_initcall'
     290 | #define device_initcall(fn)  __define_initcall(fn, 6)
         |                              ^~~~~~~~~~~~~~~~~
   include/linux/init.h:295:24: note: in expansion of macro 'device_initcall'
     295 | #define __initcall(fn) device_initcall(fn)
         |                        ^~~~~~~~~~~~~~~
   include/linux/module.h:89:24: note: in expansion of macro '__initcall'
      89 | #define module_init(x) __initcall(x);
         |                        ^~~~~~~~~~
   include/linux/device/driver.h:263:1: note: in expansion of macro 'module_init'
     263 | module_init(__driver##_init); \
         | ^~~~~~~~~~~
   include/linux/platform_device.h:257:2: note: in expansion of macro 'module_driver'
     257 |  module_driver(__platform_driver, platform_driver_register, \
         |  ^~~~~~~~~~~~~
   sound/soc/codecs/rk817_codec.c:671:1: note: in expansion of macro 'module_platform_driver'
     671 | module_platform_driver(rk817_codec_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/bpf.h:19,
                    from include/linux/bpf-cgroup.h:5,
                    from include/linux/cgroup-defs.h:22,
                    from include/linux/cgroup.h:28,
                    from include/linux/memcontrol.h:13,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from include/linux/regulator/consumer.h:35,
                    from include/linux/regulator/machine.h:15,
                    from include/linux/mfd/rk808.h:18,
                    from sound/soc/codecs/rk817_codec.c:10:
   include/linux/module.h:89:37: error: expected declaration specifiers before ';' token
      89 | #define module_init(x) __initcall(x);
         |                                     ^
   include/linux/device/driver.h:263:1: note: in expansion of macro 'module_init'
     263 | module_init(__driver##_init); \
         | ^~~~~~~~~~~
   include/linux/platform_device.h:257:2: note: in expansion of macro 'module_driver'
     257 |  module_driver(__platform_driver, platform_driver_register, \

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for FRAME_POINTER
   Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
   Selected by
   - FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86


vim +/used +260 include/linux/device/driver.h

4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  243  
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  244  /**
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  245   * module_driver() - Helper macro for drivers that don't do anything
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  246   * special in module init/exit. This eliminates a lot of boilerplate.
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  247   * Each module may only use this macro once, and calling it replaces
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  248   * module_init() and module_exit().
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  249   *
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  250   * @__driver: driver name
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  251   * @__register: register function for this driver type
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  252   * @__unregister: unregister function for this driver type
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  253   * @...: Additional arguments to be passed to __register and __unregister.
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  254   *
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  255   * Use this macro to construct bus specific macros for registering
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  256   * drivers, and do not use it on its own.
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  257   */
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  258  #define module_driver(__driver, __register, __unregister, ...) \
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  259  static int __init __driver##_init(void) \
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 @260  { \
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  261  	return __register(&(__driver) , ##__VA_ARGS__); \
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  262  } \
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  263  module_init(__driver##_init); \
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  264  static void __exit __driver##_exit(void) \
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  265  { \
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  266  	__unregister(&(__driver) , ##__VA_ARGS__); \
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  267  } \
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  268  module_exit(__driver##_exit);
4c002c978b7f2f Greg Kroah-Hartman 2019-12-09  269  

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

  reply	other threads:[~2021-03-16 21:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-16 19:53 [PATCH] [RFCv3] ASoC: Add Rockchip rk817 audio CODEC support Chris Morgan
2021-03-16 21:34 ` kernel test robot [this message]
2021-03-17 13:45 ` Mark Brown

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=202103170525.ObOQ4wr9-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.