From: kernel test robot <lkp@intel.com>
To: Jianhui Zhou <jianhuizzzzz@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev,
David Hildenbrand <david@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [akpm-mm:mm-unstable 34/207] include/linux/hugetlb.h:1214:16: error: implicit declaration of function 'linear_page_index'
Date: Sat, 07 Mar 2026 12:04:58 +0800 [thread overview]
Message-ID: <202603071127.YdvMepoW-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
head: 49cb736d092aaa856283e33b78ec3afb3964d82f
commit: cd9119a9480d9d93fdf06792f8f9917cc4f9999c [34/207] mm/userfaultfd: fix hugetlb fault mutex hash calculation
config: nios2-allnoconfig (https://download.01.org/0day-ci/archive/20260307/202603071127.YdvMepoW-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260307/202603071127.YdvMepoW-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/202603071127.YdvMepoW-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from io_uring/rsrc.c:9:
include/linux/hugetlb.h: In function 'vma_hugecache_offset':
>> include/linux/hugetlb.h:1214:16: error: implicit declaration of function 'linear_page_index' [-Werror=implicit-function-declaration]
1214 | return linear_page_index(vma, address);
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from mm/show_mem.c:12:
include/linux/hugetlb.h: In function 'vma_hugecache_offset':
>> include/linux/hugetlb.h:1214:16: error: implicit declaration of function 'linear_page_index' [-Werror=implicit-function-declaration]
1214 | return linear_page_index(vma, address);
| ^~~~~~~~~~~~~~~~~
In file included from include/linux/swap.h:13,
from mm/show_mem.c:15:
include/linux/pagemap.h: At top level:
>> include/linux/pagemap.h:1079:23: error: conflicting types for 'linear_page_index'; have 'long unsigned int(const struct vm_area_struct *, const long unsigned int)'
1079 | static inline pgoff_t linear_page_index(const struct vm_area_struct *vma,
| ^~~~~~~~~~~~~~~~~
In file included from mm/show_mem.c:12:
include/linux/hugetlb.h:1214:16: note: previous implicit declaration of 'linear_page_index' with type 'int()'
1214 | return linear_page_index(vma, address);
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/linear_page_index +1214 include/linux/hugetlb.h
1210
1211 static inline pgoff_t vma_hugecache_offset(struct hstate *h,
1212 struct vm_area_struct *vma, unsigned long address)
1213 {
> 1214 return linear_page_index(vma, address);
1215 }
1216
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-03-07 4:05 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=202603071127.YdvMepoW-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=jianhuizzzzz@gmail.com \
--cc=linux-mm@kvack.org \
--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