* [openeuler:openEuler-1.0-LTS 1355/1355] mm/pin_mem.c:1075:12: sparse: sparse: symbol 'reserve_idr' was not declared. Should it be static?
@ 2024-12-28 1:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-28 1:57 UTC (permalink / raw)
To: kernel, Yang Yingliang; +Cc: oe-kbuild-all
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: a8a9daf97ebc8e303e039402fe784e7bd4e5a9bb
commit: 892de178c180d2924ad5f3dcf55baa3b8ab2272d [1355/1355] pid: add pid reserve method for checkpoint and restore
config: arm64-randconfig-r133-20241227 (https://download.01.org/0day-ci/archive/20241228/202412280946.xMuoN3LG-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241228/202412280946.xMuoN3LG-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/202412280946.xMuoN3LG-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
mm/pin_mem.c:34:14: sparse: sparse: symbol 'max_pin_pid_num' was not declared. Should it be static?
mm/pin_mem.c:35:15: sparse: sparse: symbol 'redirect_space_size' was not declared. Should it be static?
mm/pin_mem.c:171:6: sparse: sparse: symbol 'reserve_page_from_buddy' was not declared. Should it be static?
mm/pin_mem.c:254:6: sparse: sparse: symbol 'free_user_map_pages' was not declared. Should it be static?
mm/pin_mem.c:311:6: sparse: sparse: symbol 'check_redirect_end_valid' was not declared. Should it be static?
mm/pin_mem.c:392:5: sparse: sparse: symbol 'calculate_pin_mem_digest' was not declared. Should it be static?
mm/pin_mem.c:481:5: sparse: sparse: symbol 'collect_pmd_huge_pages' was not declared. Should it be static?
mm/pin_mem.c:544:5: sparse: sparse: symbol 'collect_normal_pages' was not declared. Should it be static?
mm/pin_mem.c:610:6: sparse: sparse: symbol 'free_pin_pages' was not declared. Should it be static?
mm/pin_mem.c:770:12: sparse: sparse: symbol 'remap_normal_pages' was not declared. Should it be static?
mm/pin_mem.c:857:12: sparse: sparse: symbol 'remap_huge_pmd_pages' was not declared. Should it be static?
>> mm/pin_mem.c:1075:12: sparse: sparse: symbol 'reserve_idr' was not declared. Should it be static?
mm/pin_mem.c:844:63: sparse: sparse: not addressable
mm/pin_mem.c:846:63: sparse: sparse: not addressable
mm/pin_mem.c:848:71: sparse: sparse: not addressable
mm/pin_mem.c:851:65: sparse: sparse: not addressable
mm/pin_mem.c:171:6: warning: no previous prototype for 'reserve_page_from_buddy' [-Wmissing-prototypes]
171 | void reserve_page_from_buddy(unsigned long nr_pages, struct page *page)
| ^~~~~~~~~~~~~~~~~~~~~~~
mm/pin_mem.c:254:6: warning: no previous prototype for 'free_user_map_pages' [-Wmissing-prototypes]
254 | void free_user_map_pages(unsigned int pid_index, unsigned int entry_index, unsigned int page_index)
| ^~~~~~~~~~~~~~~~~~~
mm/pin_mem.c:311:6: warning: no previous prototype for 'check_redirect_end_valid' [-Wmissing-prototypes]
311 | bool check_redirect_end_valid(struct redirect_info *redirect_start,
| ^~~~~~~~~~~~~~~~~~~~~~~~
mm/pin_mem.c:392:5: warning: no previous prototype for 'calculate_pin_mem_digest' [-Wmissing-prototypes]
392 | int calculate_pin_mem_digest(struct pin_mem_dump_info *pmdi, char *digest)
| ^~~~~~~~~~~~~~~~~~~~~~~~
mm/pin_mem.c:481:5: warning: no previous prototype for 'collect_pmd_huge_pages' [-Wmissing-prototypes]
481 | int collect_pmd_huge_pages(struct task_struct *task,
| ^~~~~~~~~~~~~~~~~~~~~~
mm/pin_mem.c:544:5: warning: no previous prototype for 'collect_normal_pages' [-Wmissing-prototypes]
544 | int collect_normal_pages(struct task_struct *task,
| ^~~~~~~~~~~~~~~~~~~~
mm/pin_mem.c: In function 'collect_normal_pages':
mm/pin_mem.c:549:26: warning: variable 'nr_pages' set but not used [-Wunused-but-set-variable]
549 | unsigned long i, nr_pages;
| ^~~~~~~~
mm/pin_mem.c: At top level:
mm/pin_mem.c:610:6: warning: no previous prototype for 'free_pin_pages' [-Wmissing-prototypes]
610 | void free_pin_pages(struct page_map_entry *pme)
| ^~~~~~~~~~~~~~
mm/pin_mem.c:770:12: warning: no previous prototype for 'remap_normal_pages' [-Wmissing-prototypes]
770 | vm_fault_t remap_normal_pages(struct mm_struct *mm, struct vm_area_struct *vma,
| ^~~~~~~~~~~~~~~~~~
mm/pin_mem.c: In function 'get_hugepage_gfpmask':
mm/pin_mem.c:844:63: error: lvalue required as unary '&' operand
844 | if (test_bit(TRANSPARENT_HUGEPAGE_DEFRAG_DIRECT_FLAG, &transparent_hugepage_flags))
| ^
mm/pin_mem.c:846:63: error: lvalue required as unary '&' operand
846 | if (test_bit(TRANSPARENT_HUGEPAGE_DEFRAG_KSWAPD_FLAG, &transparent_hugepage_flags))
| ^
mm/pin_mem.c:848:71: error: lvalue required as unary '&' operand
848 | if (test_bit(TRANSPARENT_HUGEPAGE_DEFRAG_KSWAPD_OR_MADV_FLAG, &transparent_hugepage_flags))
| ^
mm/pin_mem.c:851:65: error: lvalue required as unary '&' operand
851 | if (test_bit(TRANSPARENT_HUGEPAGE_DEFRAG_REQ_MADV_FLAG, &transparent_hugepage_flags))
| ^
mm/pin_mem.c: At top level:
mm/pin_mem.c:857:12: warning: no previous prototype for 'remap_huge_pmd_pages' [-Wmissing-prototypes]
857 | vm_fault_t remap_huge_pmd_pages(struct mm_struct *mm, struct vm_area_struct *vma,
| ^~~~~~~~~~~~~~~~~~~~
vim +/reserve_idr +1075 mm/pin_mem.c
1073
1074 #ifdef CONFIG_PID_RESERVE
> 1075 struct idr *reserve_idr;
1076
--
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:[~2024-12-28 1:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-28 1:57 [openeuler:openEuler-1.0-LTS 1355/1355] mm/pin_mem.c:1075:12: sparse: sparse: symbol 'reserve_idr' was not declared. Should it be static? kernel test robot
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.