* [intel-tdx:kvm-upstream-workaround 356/365] include/linux/hugetlb.h:488:9: error: declaration of 'struct resv_map' will not be visible outside of this function
@ 2023-07-16 5:29 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-16 5:29 UTC (permalink / raw)
To: Ackerley Tng; +Cc: llvm, oe-kbuild-all, Isaku Yamahata
tree: https://github.com/intel/tdx.git kvm-upstream-workaround
head: da8c3aa0cbb638a0dff13401bc17f817272110e6
commit: f896a70f60673d612d27d0a8c2a3f37f4c1a6338 [356/365] mm: hugetlb: Parametrize hugetlb functions by resv_map
config: powerpc-mpc832x_rdb_defconfig (https://download.01.org/0day-ci/archive/20230716/202307161345.FRaEH9gV-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce: (https://download.01.org/0day-ci/archive/20230716/202307161345.FRaEH9gV-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/202307161345.FRaEH9gV-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/powerpc/kernel/setup-common.c:37:
include/linux/hugetlb.h:484:9: error: declaration of 'struct hstate' will not be visible outside of this function [-Werror,-Wvisibility]
struct hstate *h, struct address_space *mapping, loff_t start, loff_t end) {}
^
include/linux/hugetlb.h:487:40: error: declaration of 'struct hstate' will not be visible outside of this function [-Werror,-Wvisibility]
struct address_space *mapping, struct hstate *h, struct hugepage_subpool *spool,
^
include/linux/hugetlb.h:487:58: error: declaration of 'struct hugepage_subpool' will not be visible outside of this function [-Werror,-Wvisibility]
struct address_space *mapping, struct hstate *h, struct hugepage_subpool *spool,
^
>> include/linux/hugetlb.h:488:9: error: declaration of 'struct resv_map' will not be visible outside of this function [-Werror,-Wvisibility]
struct resv_map *resv_map, struct inode *inode, loff_t lstart, loff_t lend) {}
^
4 errors generated.
vim +488 include/linux/hugetlb.h
482
483 static inline void hugetlb_zero_partial_page(
484 struct hstate *h, struct address_space *mapping, loff_t start, loff_t end) {}
485
486 static inline void remove_mapping_hugepages(
487 struct address_space *mapping, struct hstate *h, struct hugepage_subpool *spool,
> 488 struct resv_map *resv_map, struct inode *inode, loff_t lstart, loff_t lend) {}
489 static inline void remove_inode_hugepages(struct inode *inode, loff_t lstart, loff_t lend) {}
490
--
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-07-16 5:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-16 5:29 [intel-tdx:kvm-upstream-workaround 356/365] include/linux/hugetlb.h:488:9: error: declaration of 'struct resv_map' 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;
as well as URLs for NNTP newsgroup(s).