public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kent Overstreet <kmo@daterainc.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Kent Overstreet <kmo@daterainc.com>
Subject: [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
Date: Sun, 17 Dec 2023 17:31:38 +0800	[thread overview]
Message-ID: <202312171728.fspqyQQR-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-12-17  9:31 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=202312171728.fspqyQQR-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kmo@daterainc.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox