From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android15-6.6-desktop 4/4] arch/x86/include/asm/paravirt.h:873:47: warning: declaration of 'struct mm_struct' will not be visible outside of this function
Date: Fri, 9 May 2025 06:03:50 +0800 [thread overview]
Message-ID: <202505090520.Ylk4FrUI-lkp@intel.com> (raw)
tree: https://android.googlesource.com/kernel/common android15-6.6-desktop
head: 3d787fbb81fafa82ef096a45908185c6c4ab2ebc
commit: 7acb4f6bcac9871c147dc6652266b3ec4235d0a8 [4/4] ANDROID: x86/paravirt: Add pv_mmio_ops
config: x86_64-buildonly-randconfig-003-20250509 (https://download.01.org/0day-ci/archive/20250509/202505090520.Ylk4FrUI-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250509/202505090520.Ylk4FrUI-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/202505090520.Ylk4FrUI-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from mm/early_ioremap.c:13:
In file included from include/linux/io.h:13:
In file included from arch/x86/include/asm/io.h:45:
>> arch/x86/include/asm/paravirt.h:873:47: warning: declaration of 'struct mm_struct' will not be visible outside of this function [-Wvisibility]
873 | static inline void paravirt_enter_mmap(struct mm_struct *mm)
| ^
arch/x86/include/asm/paravirt.h:879:51: warning: declaration of 'struct mm_struct' will not be visible outside of this function [-Wvisibility]
879 | static inline void paravirt_arch_exit_mmap(struct mm_struct *mm)
| ^
In file included from mm/early_ioremap.c:14:
In file included from include/linux/module.h:19:
In file included from include/linux/elf.h:6:
In file included from arch/x86/include/asm/elf.h:8:
In file included from include/linux/page_size_compat.h:33:
In file included from include/linux/mman.h:8:
In file included from include/linux/mm.h:2257:
include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
509 | item];
| ~~~~
include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
516 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
528 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
537 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
6 warnings generated.
vim +873 arch/x86/include/asm/paravirt.h
fdc0269e8958a1 Juergen Gross 2018-08-28 870
a1ea1c032b8f8c Dave Hansen 2014-11-18 871 #ifndef __ASSEMBLY__
fdc0269e8958a1 Juergen Gross 2018-08-28 872 #ifndef CONFIG_PARAVIRT_XXL
c9ae1b10d95610 Juergen Gross 2023-02-07 @873 static inline void paravirt_enter_mmap(struct mm_struct *mm)
a1ea1c032b8f8c Dave Hansen 2014-11-18 874 {
a1ea1c032b8f8c Dave Hansen 2014-11-18 875 }
fdc0269e8958a1 Juergen Gross 2018-08-28 876 #endif
a1ea1c032b8f8c Dave Hansen 2014-11-18 877
:::::: The code at line 873 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:[~2025-05-08 22:04 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=202505090520.Ylk4FrUI-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--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 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.