From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Wang Wensheng <wangwensheng4@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-6.6 1359/15331] mm/share_pool.c:1226:21: error: implicit declaration of function 'huge_ptep_get'
Date: Sun, 27 Oct 2024 06:05:25 +0800 [thread overview]
Message-ID: <202410270650.btnHpujZ-lkp@intel.com> (raw)
Hi Wang,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 9d0af12b79bee784902822ddeec2e1a8cfc18524
commit: 549b1f40b56511536196f7522ffa4d7b3da42337 [1359/15331] mm/sharepool: Implement mg_sp_make_share_u2k()
config: arm64-randconfig-003-20241027 (https://download.01.org/0day-ci/archive/20241027/202410270650.btnHpujZ-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241027/202410270650.btnHpujZ-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/202410270650.btnHpujZ-lkp@intel.com/
All errors (new ones prefixed by >>):
mm/share_pool.c: In function 'sp_hugetlb_entry':
>> mm/share_pool.c:1226:21: error: implicit declaration of function 'huge_ptep_get' [-Wimplicit-function-declaration]
1226 | pte_t pte = huge_ptep_get(ptep);
| ^~~~~~~~~~~~~
>> mm/share_pool.c:1226:21: error: invalid initializer
mm/share_pool.c: At top level:
mm/share_pool.c:1005:13: warning: 'sp_area_put_locked' defined but not used [-Wunused-function]
1005 | static void sp_area_put_locked(struct sp_area *spa)
| ^~~~~~~~~~~~~~~~~~
mm/share_pool.c:944:24: warning: 'sp_area_get' defined but not used [-Wunused-function]
944 | static struct sp_area *sp_area_get(struct sp_group *spg,
| ^~~~~~~~~~~
mm/share_pool.c:791:24: warning: 'sp_area_alloc' defined but not used [-Wunused-function]
791 | static struct sp_area *sp_area_alloc(unsigned long size, unsigned long flags,
| ^~~~~~~~~~~~~
mm/share_pool.c:587:21: warning: 'spa_file' defined but not used [-Wunused-function]
587 | static struct file *spa_file(struct sp_area *spa)
| ^~~~~~~~
mm/share_pool.c:582:22: warning: 'spa_size' defined but not used [-Wunused-function]
582 | static unsigned long spa_size(struct sp_area *spa)
| ^~~~~~~~
mm/share_pool.c:497:13: warning: 'update_mem_usage_k2u' defined but not used [-Wunused-function]
497 | static void update_mem_usage_k2u(unsigned long size, bool inc,
| ^~~~~~~~~~~~~~~~~~~~
mm/share_pool.c:485:13: warning: 'update_mem_usage_alloc' defined but not used [-Wunused-function]
485 | static void update_mem_usage_alloc(unsigned long size, bool inc,
| ^~~~~~~~~~~~~~~~~~~~~~
mm/share_pool.c:438:12: warning: 'sp_group_setup_mapping_normal' defined but not used [-Wunused-function]
438 | static int sp_group_setup_mapping_normal(struct mm_struct *mm, struct sp_group *spg)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mm/share_pool.c:380:13: warning: 'sp_mapping_detach' defined but not used [-Wunused-function]
380 | static void sp_mapping_detach(struct sp_group *spg, struct sp_mapping *spm)
| ^~~~~~~~~~~~~~~~~
mm/share_pool.c:237:13: warning: 'meminfo_init' defined but not used [-Wunused-function]
237 | static void meminfo_init(struct sp_meminfo *meminfo)
| ^~~~~~~~~~~~
In file included from mm/share_pool.c:26:
mm/share_pool.c:76:19: warning: 'sp_group_idr' defined but not used [-Wunused-variable]
76 | static DEFINE_IDR(sp_group_idr);
| ^~~~~~~~~~~~
include/linux/idr.h:56:44: note: in definition of macro 'DEFINE_IDR'
56 | #define DEFINE_IDR(name) struct idr name = IDR_INIT(name)
| ^~~~
mm/share_pool.c:73:12: warning: 'system_group_count' defined but not used [-Wunused-variable]
73 | static int system_group_count;
| ^~~~~~~~~~~~~~~~~~
vim +/huge_ptep_get +1226 mm/share_pool.c
1221
1222 static int sp_hugetlb_entry(pte_t *ptep, unsigned long hmask,
1223 unsigned long addr, unsigned long next,
1224 struct mm_walk *walk)
1225 {
> 1226 pte_t pte = huge_ptep_get(ptep);
1227 struct page *page = pte_page(pte);
1228 struct sp_walk_data *sp_walk_data;
1229
1230 if (unlikely(!pte_present(pte))) {
1231 pr_debug("the page of addr %lx unexpectedly not in RAM\n", (unsigned long)addr);
1232 return -EFAULT;
1233 }
1234
1235 sp_walk_data = walk->private;
1236 get_page(page);
1237 sp_walk_data->pages[sp_walk_data->page_count++] = page;
1238 return 0;
1239 }
1240
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-10-26 22:06 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=202410270650.btnHpujZ-lkp@intel.com \
--to=lkp@intel.com \
--cc=kernel@openeuler.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=wangwensheng4@huawei.com \
/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.