All of lore.kernel.org
 help / color / mirror / Atom feed
* [jfern:coresched 23/38] include/linux/entry-kvm.h:29:62: warning: 'struct kvm_vcpu' declared inside parameter list will not be visible outside of this definition or declaration
@ 2020-11-11  8:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-11  8:56 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git coresched
head:   8d250115a6b0e2316cb268213dccfeae35cc61ab
commit: 52c14d9ef1bc109c3ad803273e136d994cd60004 [23/38] entry/idle: Enter and exit kernel protection during idle entry and exit
config: i386-randconfig-a016-20201111 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git/commit/?id=52c14d9ef1bc109c3ad803273e136d994cd60004
        git remote add jfern https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git
        git fetch --no-tags jfern coresched
        git checkout 52c14d9ef1bc109c3ad803273e136d994cd60004
        # 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 >>):

   In file included from include/linux/entry-kvm.h:5,
                    from kernel/entry/kvm.c:3:
   include/linux/entry-common.h:468:1: error: version control conflict marker in file
     468 | >>>>>>> 1e7589ad08c6 (entry/idle: Enter and exit kernel protection during idle entry and exit)
         | ^~~~~~~
   include/linux/entry-common.h:468:9: error: invalid suffix "ad08c6" on floating constant
     468 | >>>>>>> 1e7589ad08c6 (entry/idle: Enter and exit kernel protection during idle entry and exit)
         |         ^~~~~~~~~~~~
   In file included from kernel/entry/kvm.c:3:
>> include/linux/entry-kvm.h:29:62: warning: 'struct kvm_vcpu' declared inside parameter list will not be visible outside of this definition or declaration
      29 | static inline int arch_xfer_to_guest_mode_handle_work(struct kvm_vcpu *vcpu,
         |                                                              ^~~~~~~~
   include/linux/entry-kvm.h:33:62: warning: 'struct kvm_vcpu' declared inside parameter list will not be visible outside of this definition or declaration
      33 | static inline int arch_xfer_to_guest_mode_handle_work(struct kvm_vcpu *vcpu,
         |                                                              ^~~~~~~~
   include/linux/entry-kvm.h:33:19: error: conflicting types for 'arch_xfer_to_guest_mode_handle_work'
      33 | static inline int arch_xfer_to_guest_mode_handle_work(struct kvm_vcpu *vcpu,
         |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/entry-kvm.h:29:19: note: previous declaration of 'arch_xfer_to_guest_mode_handle_work' was here
      29 | static inline int arch_xfer_to_guest_mode_handle_work(struct kvm_vcpu *vcpu,
         |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/entry-kvm.h:47:43: warning: 'struct kvm_vcpu' declared inside parameter list will not be visible outside of this definition or declaration
      47 | int xfer_to_guest_mode_handle_work(struct kvm_vcpu *vcpu);
         |                                           ^~~~~~~~
   kernel/entry/kvm.c: In function 'xfer_to_guest_mode_work':
   kernel/entry/kvm.c:25:45: error: passing argument 1 of 'arch_xfer_to_guest_mode_handle_work' from incompatible pointer type [-Werror=incompatible-pointer-types]
      25 |   ret = arch_xfer_to_guest_mode_handle_work(vcpu, ti_work);
         |                                             ^~~~
         |                                             |
         |                                             struct kvm_vcpu *
   In file included from kernel/entry/kvm.c:3:
   include/linux/entry-kvm.h:33:72: note: expected 'struct kvm_vcpu *' but argument is of type 'struct kvm_vcpu *'
      33 | static inline int arch_xfer_to_guest_mode_handle_work(struct kvm_vcpu *vcpu,
         |                                                       ~~~~~~~~~~~~~~~~~^~~~
   kernel/entry/kvm.c: At top level:
   kernel/entry/kvm.c:34:5: error: conflicting types for 'xfer_to_guest_mode_handle_work'
      34 | int xfer_to_guest_mode_handle_work(struct kvm_vcpu *vcpu)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from kernel/entry/kvm.c:3:
   include/linux/entry-kvm.h:47:5: note: previous declaration of 'xfer_to_guest_mode_handle_work' was here
      47 | int xfer_to_guest_mode_handle_work(struct kvm_vcpu *vcpu);
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/linkage.h:7,
                    from include/linux/kernel.h:8,
                    from arch/x86/include/asm/percpu.h:27,
                    from arch/x86/include/asm/current.h:6,
                    from include/linux/sched.h:12,
                    from include/linux/tracehook.h:46,
                    from include/linux/entry-common.h:5,
                    from include/linux/entry-kvm.h:5,
                    from kernel/entry/kvm.c:3:
   kernel/entry/kvm.c:52:19: error: conflicting types for 'xfer_to_guest_mode_handle_work'
      52 | EXPORT_SYMBOL_GPL(xfer_to_guest_mode_handle_work);
         |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/export.h:98:21: note: in definition of macro '___EXPORT_SYMBOL'
      98 |  extern typeof(sym) sym;       \
         |                     ^~~
   include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
     155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
         |                                  ^~~~~~~~~~~~~~~
   include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
     159 | #define EXPORT_SYMBOL_GPL(sym)  _EXPORT_SYMBOL(sym, "_gpl")
         |                                 ^~~~~~~~~~~~~~
   kernel/entry/kvm.c:52:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
      52 | EXPORT_SYMBOL_GPL(xfer_to_guest_mode_handle_work);
         | ^~~~~~~~~~~~~~~~~
   In file included from kernel/entry/kvm.c:3:
   include/linux/entry-kvm.h:47:5: note: previous declaration of 'xfer_to_guest_mode_handle_work' was here
      47 | int xfer_to_guest_mode_handle_work(struct kvm_vcpu *vcpu);
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +29 include/linux/entry-kvm.h

935ace2fb5cc49a Thomas Gleixner 2020-07-22  19  
935ace2fb5cc49a Thomas Gleixner 2020-07-22  20  /**
935ace2fb5cc49a Thomas Gleixner 2020-07-22  21   * arch_xfer_to_guest_mode_handle_work - Architecture specific xfer to guest
935ace2fb5cc49a Thomas Gleixner 2020-07-22  22   *					 mode work handling function.
935ace2fb5cc49a Thomas Gleixner 2020-07-22  23   * @vcpu:	Pointer to current's VCPU data
935ace2fb5cc49a Thomas Gleixner 2020-07-22  24   * @ti_work:	Cached TIF flags gathered in xfer_to_guest_mode_handle_work()
935ace2fb5cc49a Thomas Gleixner 2020-07-22  25   *
935ace2fb5cc49a Thomas Gleixner 2020-07-22  26   * Invoked from xfer_to_guest_mode_handle_work(). Defaults to NOOP. Can be
935ace2fb5cc49a Thomas Gleixner 2020-07-22  27   * replaced by architecture specific code.
935ace2fb5cc49a Thomas Gleixner 2020-07-22  28   */
935ace2fb5cc49a Thomas Gleixner 2020-07-22 @29  static inline int arch_xfer_to_guest_mode_handle_work(struct kvm_vcpu *vcpu,
935ace2fb5cc49a Thomas Gleixner 2020-07-22  30  						      unsigned long ti_work);
935ace2fb5cc49a Thomas Gleixner 2020-07-22  31  

:::::: The code at line 29 was first introduced by commit
:::::: 935ace2fb5cc49ae88bd1f1735ddc51cdc2ebfb3 entry: Provide infrastructure for work before transitioning to guest mode

:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

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

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

only message in thread, other threads:[~2020-11-11  8:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-11  8:56 [jfern:coresched 23/38] include/linux/entry-kvm.h:29:62: warning: 'struct kvm_vcpu' declared inside parameter list will not be visible outside of this definition or declaration 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.