[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

From: kernel test robot
Date: Mon Aug 09 2021 - 15:49:29 EST


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@xxxxxxxxx>

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@xxxxxxxxxxxxxxx>
:::::: CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip