linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [intel-tdx:guest 92/111] arch/x86/include/asm/paravirt.h:771:50: warning: 'struct mm_struct' declared inside parameter list will not be visible outside of this definition or declaration
@ 2021-08-09 19:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-09 19:48 UTC (permalink / raw)
  To: Andi Kleen; +Cc: kbuild-all, linux-kernel, Kuppuswamy Sathyanarayanan

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

tree:   https://github.com/intel/tdx.git guest
head:   2d14732b448b6bab674b881968fa4996c07de9f1
commit: 7a7a43f262c8f3a6019ef8aa330170ab8a585a64 [92/111] x86/tdx/paravirt: Move wrmsrl outside PARAVIRT_XXL
config: i386-tinyconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel/tdx/commit/7a7a43f262c8f3a6019ef8aa330170ab8a585a64
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest
        git checkout 7a7a43f262c8f3a6019ef8aa330170ab8a585a64
        # save the attached .config to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/

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 arch/x86/include/asm/msr.h:254,
                    from arch/x86/kernel/trace_clock.c:7:
>> arch/x86/include/asm/paravirt.h:771:50: warning: 'struct mm_struct' declared inside parameter list will not be visible outside of this definition or declaration
     771 | static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm,
         |                                                  ^~~~~~~~~
   arch/x86/include/asm/paravirt.h:778:51: warning: 'struct mm_struct' declared inside parameter list will not be visible outside of this definition or declaration
     778 | static inline void paravirt_arch_exit_mmap(struct mm_struct *mm)
         |                                                   ^~~~~~~~~


vim +771 arch/x86/include/asm/paravirt.h

fdc0269e8958a1 Juergen Gross 2018-08-28  768  
a1ea1c032b8f8c Dave Hansen   2014-11-18  769  #ifndef __ASSEMBLY__
fdc0269e8958a1 Juergen Gross 2018-08-28  770  #ifndef CONFIG_PARAVIRT_XXL
a1ea1c032b8f8c Dave Hansen   2014-11-18 @771  static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm,
a1ea1c032b8f8c Dave Hansen   2014-11-18  772  					  struct mm_struct *mm)
a1ea1c032b8f8c Dave Hansen   2014-11-18  773  {
a1ea1c032b8f8c Dave Hansen   2014-11-18  774  }
fdc0269e8958a1 Juergen Gross 2018-08-28  775  #endif
a1ea1c032b8f8c Dave Hansen   2014-11-18  776  

:::::: The code at line 771 was first introduced by commit
:::::: a1ea1c032b8f8c23d86ef4db6d061527e9417f19 x86: Cleanly separate use of asm-generic/mm_hooks.h

:::::: TO: Dave Hansen <dave.hansen@linux.intel.com>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 7431 bytes --]

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

only message in thread, other threads:[~2021-08-09 19:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-09 19:48 [intel-tdx:guest 92/111] arch/x86/include/asm/paravirt.h:771:50: warning: 'struct mm_struct' declared inside parameter list will not be visible outside of this definition or declaration kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).