All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [plbossart-sound:sdw/remove-sdw-driver 3/14] drivers/soundwire/intel.c:2037:8: error: variable 'sdw_intel_link_ops' has initializer but incomplete type
Date: Fri, 10 Apr 2020 07:32:41 +0800	[thread overview]
Message-ID: <202004100723.xtATRZLZ%lkp@intel.com> (raw)

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

tree:   https://github.com/plbossart/sound sdw/remove-sdw-driver
head:   6e3ae3193c4aa361e83097854ae3411cb5bdbdeb
commit: b56349159de823ef190dd796a4cce6002d833b8e [3/14] soundwire: drivers/soundwire/intel.c: use sdw_link_ops
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
        git checkout b56349159de823ef190dd796a4cce6002d833b8e
        # save the attached .config to linux build tree
        make ARCH=i386 

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

Note: the plbossart-sound/sdw/remove-sdw-driver HEAD 6e3ae3193c4aa361e83097854ae3411cb5bdbdeb builds fine.
      It only hurts bisectibility.

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

>> drivers/soundwire/intel.c:2037:8: error: variable 'sdw_intel_link_ops' has initializer but incomplete type
    struct sdw_link_ops sdw_intel_link_ops = {
           ^~~~~~~~~~~~
>> drivers/soundwire/intel.c:2038:3: error: 'struct sdw_link_ops' has no member named 'driver'
     .driver = &sdw_intel_driver,
      ^~~~~~
>> drivers/soundwire/intel.c:2038:12: warning: excess elements in struct initializer
     .driver = &sdw_intel_driver,
               ^
   drivers/soundwire/intel.c:2038:12: note: (near initialization for 'sdw_intel_link_ops')
>> drivers/soundwire/intel.c:2039:3: error: 'struct sdw_link_ops' has no member named 'add'
     .add = intel_master_probe,
      ^~~
   drivers/soundwire/intel.c:2039:9: warning: excess elements in struct initializer
     .add = intel_master_probe,
            ^~~~~~~~~~~~~~~~~~
   drivers/soundwire/intel.c:2039:9: note: (near initialization for 'sdw_intel_link_ops')
>> drivers/soundwire/intel.c:2040:3: error: 'struct sdw_link_ops' has no member named 'startup'
     .startup = intel_master_startup,
      ^~~~~~~
   drivers/soundwire/intel.c:2040:13: warning: excess elements in struct initializer
     .startup = intel_master_startup,
                ^~~~~~~~~~~~~~~~~~~~
   drivers/soundwire/intel.c:2040:13: note: (near initialization for 'sdw_intel_link_ops')
>> drivers/soundwire/intel.c:2041:3: error: 'struct sdw_link_ops' has no member named 'del'
     .del = intel_master_remove,
      ^~~
   drivers/soundwire/intel.c:2041:9: warning: excess elements in struct initializer
     .del = intel_master_remove,
            ^~~~~~~~~~~~~~~~~~~
   drivers/soundwire/intel.c:2041:9: note: (near initialization for 'sdw_intel_link_ops')
>> drivers/soundwire/intel.c:2042:3: error: 'struct sdw_link_ops' has no member named 'process_wake_event'
     .process_wake_event = intel_master_process_wakeen_event,
      ^~~~~~~~~~~~~~~~~~
   drivers/soundwire/intel.c:2042:24: warning: excess elements in struct initializer
     .process_wake_event = intel_master_process_wakeen_event,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/soundwire/intel.c:2042:24: note: (near initialization for 'sdw_intel_link_ops')
   In file included from include/linux/linkage.h:7:0,
                    from include/linux/kernel.h:8,
                    from include/linux/list.h:9,
                    from include/linux/kobject.h:19,
                    from include/linux/of.h:17,
                    from include/linux/irqdomain.h:35,
                    from include/linux/acpi.h:13,
                    from drivers/soundwire/intel.c:8:
>> drivers/soundwire/intel.c:2044:15: error: storage size of 'sdw_intel_link_ops' isn't known
    EXPORT_SYMBOL(sdw_intel_link_ops);
                  ^
   include/linux/export.h:98:21: note: in definition of macro '___EXPORT_SYMBOL'
     extern typeof(sym) sym;       \
                        ^~~
   include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
    #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
                                     ^~~~~~~~~~~~~~~
   include/linux/export.h:158:29: note: in expansion of macro '_EXPORT_SYMBOL'
    #define EXPORT_SYMBOL(sym)  _EXPORT_SYMBOL(sym, "")
                                ^~~~~~~~~~~~~~
>> drivers/soundwire/intel.c:2044:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(sdw_intel_link_ops);
    ^~~~~~~~~~~~~
>> drivers/soundwire/intel.c:2044:15: error: storage size of 'sdw_intel_link_ops' isn't known
    EXPORT_SYMBOL(sdw_intel_link_ops);
                  ^
   include/linux/export.h:98:21: note: in definition of macro '___EXPORT_SYMBOL'
     extern typeof(sym) sym;       \
                        ^~~
   include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
    #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
                                     ^~~~~~~~~~~~~~~
   include/linux/export.h:158:29: note: in expansion of macro '_EXPORT_SYMBOL'
    #define EXPORT_SYMBOL(sym)  _EXPORT_SYMBOL(sym, "")
                                ^~~~~~~~~~~~~~
>> drivers/soundwire/intel.c:2044:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(sdw_intel_link_ops);
    ^~~~~~~~~~~~~

vim +/sdw_intel_link_ops +2037 drivers/soundwire/intel.c

  2036	
> 2037	struct sdw_link_ops sdw_intel_link_ops = {
> 2038		.driver = &sdw_intel_driver,
> 2039		.add = intel_master_probe,
> 2040		.startup = intel_master_startup,
> 2041		.del = intel_master_remove,
> 2042		.process_wake_event = intel_master_process_wakeen_event,
  2043	};
> 2044	EXPORT_SYMBOL(sdw_intel_link_ops);
  2045	

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

                 reply	other threads:[~2020-04-09 23:32 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=202004100723.xtATRZLZ%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.