public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [bcachefs:header_cleanup 3/50] arch/x86/include/asm/paravirt.h:792:47: warning: declaration of 'struct mm_struct' will not be visible outside of this function
@ 2023-12-17  9:31 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-17  9:31 UTC (permalink / raw)
  To: Kent Overstreet; +Cc: llvm, oe-kbuild-all, Kent Overstreet

tree:   https://evilpiepirate.org/git/bcachefs.git header_cleanup
head:   7288b19e061b7aa3f46f685e9944af128f10ffd5
commit: 33d882857eb5393e3acbc770e469d9044aaa0b35 [3/50] x86/lib/cache-smp.c: fix missing include
config: i386-buildonly-randconfig-002-20231217 (https://download.01.org/0day-ci/archive/20231217/202312171728.fspqyQQR-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231217/202312171728.fspqyQQR-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312171728.fspqyQQR-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arch/x86/lib/cache-smp.c:2:
   In file included from arch/x86/include/asm/paravirt.h:7:
   arch/x86/include/asm/paravirt_types.h:8:2: error: unknown type name 'u8'
           u8 *instr;              /* original instructions */
           ^
   arch/x86/include/asm/paravirt_types.h:9:2: error: unknown type name 'u8'
           u8 type;                /* type of this instruction */
           ^
   arch/x86/include/asm/paravirt_types.h:10:2: error: unknown type name 'u8'
           u8 len;                 /* length of original instruction */
           ^
   In file included from arch/x86/lib/cache-smp.c:2:
>> arch/x86/include/asm/paravirt.h:792:47: warning: declaration of 'struct mm_struct' will not be visible outside of this function [-Wvisibility]
   static inline void paravirt_enter_mmap(struct mm_struct *mm)
                                                 ^
   arch/x86/include/asm/paravirt.h:798:51: warning: declaration of 'struct mm_struct' will not be visible outside of this function [-Wvisibility]
   static inline void paravirt_arch_exit_mmap(struct mm_struct *mm)
                                                     ^
   2 warnings and 3 errors generated.


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

fdc0269e8958a1 Juergen Gross 2018-08-28  789  
a1ea1c032b8f8c Dave Hansen   2014-11-18  790  #ifndef __ASSEMBLY__
fdc0269e8958a1 Juergen Gross 2018-08-28  791  #ifndef CONFIG_PARAVIRT_XXL
c9ae1b10d95610 Juergen Gross 2023-02-07 @792  static inline void paravirt_enter_mmap(struct mm_struct *mm)
a1ea1c032b8f8c Dave Hansen   2014-11-18  793  {
a1ea1c032b8f8c Dave Hansen   2014-11-18  794  }
fdc0269e8958a1 Juergen Gross 2018-08-28  795  #endif
a1ea1c032b8f8c Dave Hansen   2014-11-18  796  

:::::: The code at line 792 was first introduced by commit
:::::: c9ae1b10d9561012a222e05f0d3ab4e93d301f06 x86/paravirt: Merge activate_mm() and dup_mmap() callbacks

:::::: TO: Juergen Gross <jgross@suse.com>
:::::: CC: Borislav Petkov (AMD) <bp@alien8.de>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2023-12-17  9:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-17  9:31 [bcachefs:header_cleanup 3/50] arch/x86/include/asm/paravirt.h:792:47: warning: declaration of 'struct mm_struct' will not be visible outside of this function 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