All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Kiryl Shutsemau (Meta)" <kas@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [kas:pte_size 11/69] ../../../mm/vma.h:233:21: error: 'struct vm_area_struct' has no member named 'vm_pteoff'; did you mean 'vm_pgoff'?
Date: Sun, 03 May 2026 04:12:10 +0200	[thread overview]
Message-ID: <202605030410.vFOcLBYt-lkp@intel.com> (raw)

Hi Kiryl,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git pte_size
head:   3453a5ad954365409373c2762ba237c7e31a623b
commit: f5f8a46a7c252a67e59b61ee475f5ef67c6b3988 [11/69] mm/vma: Use pteoff in vma_merge_struct and mmap_state
config: x86_64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260503/202605030410.vFOcLBYt-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260503/202605030410.vFOcLBYt-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/202605030410.vFOcLBYt-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from shared.h:12,
                    from main.c:3:
   ../../../mm/vma.h: In function 'vma_pte_offset':
>> ../../../mm/vma.h:233:21: error: 'struct vm_area_struct' has no member named 'vm_pteoff'; did you mean 'vm_pgoff'?
     233 |         return vma->vm_pteoff + ((addr - vma->vm_start) >> PTE_SHIFT);
         |                     ^~~~~~~~~
         |                     vm_pgoff
>> ../../../mm/vma.h:233:60: error: 'PTE_SHIFT' undeclared (first use in this function); did you mean 'PAGE_SHIFT'?
     233 |         return vma->vm_pteoff + ((addr - vma->vm_start) >> PTE_SHIFT);
         |                                                            ^~~~~~~~~
         |                                                            PAGE_SHIFT
   ../../../mm/vma.h:233:60: note: each undeclared identifier is reported only once for each function it appears in
   ../../../mm/vma.h: In function 'set_vma_from_desc':
   ../../../mm/vma.h:309:14: error: 'struct vm_area_struct' has no member named 'vm_pteoff'; did you mean 'vm_pgoff'?
     309 |         vma->vm_pteoff = desc->pteoff;
         |              ^~~~~~~~~
         |              vm_pgoff
>> ../../../mm/vma.h:309:32: error: 'struct vm_area_desc' has no member named 'pteoff'; did you mean 'pgoff'?
     309 |         vma->vm_pteoff = desc->pteoff;
         |                                ^~~~~~
         |                                pgoff
   In file included from main.c:10:
   ../../../mm/vma.c: In function 'can_vma_merge_before':
>> ../../../mm/vma.c:201:32: error: 'struct vm_area_struct' has no member named 'vm_pteoff'; did you mean 'vm_pgoff'?
     201 |                 if (vmg->next->vm_pteoff == vmg->pteoff + ptelen)
         |                                ^~~~~~~~~
         |                                vm_pgoff
   ../../../mm/vma.c: In function 'can_vma_merge_after':
   ../../../mm/vma.c:221:32: error: 'struct vm_area_struct' has no member named 'vm_pteoff'; did you mean 'vm_pgoff'?
     221 |                 if (vmg->prev->vm_pteoff + vma_pages(vmg->prev) == vmg->pteoff)
         |                                ^~~~~~~~~
         |                                vm_pgoff
   ../../../mm/vma.c: In function 'vma_merge_existing_range':
   ../../../mm/vma.c:922:37: error: 'struct vm_area_struct' has no member named 'vm_pteoff'; did you mean 'vm_pgoff'?
     922 |                 vmg->pteoff = prev->vm_pteoff;
         |                                     ^~~~~~~~~
         |                                     vm_pgoff
   ../../../mm/vma.c:941:37: error: 'struct vm_area_struct' has no member named 'vm_pteoff'; did you mean 'vm_pgoff'?
     941 |                 vmg->pteoff = prev->vm_pteoff;
         |                                     ^~~~~~~~~
         |                                     vm_pgoff
   ../../../mm/vma.c:964:45: error: 'struct vm_area_struct' has no member named 'vm_pteoff'; did you mean 'vm_pgoff'?
     964 |                         vmg->pteoff = next->vm_pteoff - ptelen;
         |                                             ^~~~~~~~~
         |                                             vm_pgoff
   ../../../mm/vma.c:970:47: error: 'struct vm_area_struct' has no member named 'vm_pteoff'; did you mean 'vm_pgoff'?
     970 |                         vmg->pteoff = middle->vm_pteoff;
         |                                               ^~~~~~~~~
         |                                               vm_pgoff
   ../../../mm/vma.c: In function 'vma_merge_new_range':
   ../../../mm/vma.c:1078:37: error: 'struct vm_area_struct' has no member named 'vm_pteoff'; did you mean 'vm_pgoff'?
    1078 |                 vmg->pteoff = prev->vm_pteoff;
         |                                     ^~~~~~~~~
         |                                     vm_pgoff
   ../../../mm/vma.c: In function 'set_desc_from_map':
>> ../../../mm/vma.c:2373:15: error: 'struct vm_area_desc' has no member named 'pteoff'; did you mean 'pgoff'?
    2373 |         desc->pteoff = map->pteoff;
         |               ^~~~~~
         |               pgoff
   ../../../mm/vma.c: In function 'call_mmap_prepare':
   ../../../mm/vma.c:2651:29: error: 'struct vm_area_desc' has no member named 'pteoff'; did you mean 'pgoff'?
    2651 |         map->pteoff = desc->pteoff;
         |                             ^~~~~~
         |                             pgoff
   In file included from main.c:13:
   tests/merge.c: In function 'vmg_set_range':
>> tests/merge.c:47:14: error: 'struct vma_merge_struct' has no member named 'pgoff'; did you mean 'pteoff'?
      47 |         vmg->pgoff = pgoff;
         |              ^~~~~
         |              pteoff
   tests/merge.c: In function 'test_simple_merge':
   tests/merge.c:109:18: error: 'struct vma_merge_struct' has no member named 'pgoff'; did you mean 'pteoff'?
     109 |                 .pgoff = 1,
         |                  ^~~~~
         |                  pteoff
>> tests/merge.c:109:26: error: initialization of 'struct file *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     109 |                 .pgoff = 1,
         |                          ^
   tests/merge.c:109:26: note: (near initialization for 'vmg.file')
   tests/merge.c: In function 'test_simple_expand':
   tests/merge.c:201:18: error: 'struct vma_merge_struct' has no member named 'pgoff'; did you mean 'pteoff'?
     201 |                 .pgoff = 0,
         |                  ^~~~~
         |                  pteoff
   ../../../mm/vma.h: In function 'vma_pte_offset':
>> ../../../mm/vma.h:234:1: warning: control reaches end of non-void function [-Wreturn-type]
     234 | }
         | ^
--
   In file included from shared.h:12,
                    from shared.c:3:
   ../../../mm/vma.h: In function 'vma_pte_offset':
>> ../../../mm/vma.h:233:21: error: 'struct vm_area_struct' has no member named 'vm_pteoff'; did you mean 'vm_pgoff'?
     233 |         return vma->vm_pteoff + ((addr - vma->vm_start) >> PTE_SHIFT);
         |                     ^~~~~~~~~
         |                     vm_pgoff
>> ../../../mm/vma.h:233:60: error: 'PTE_SHIFT' undeclared (first use in this function); did you mean 'PAGE_SHIFT'?
     233 |         return vma->vm_pteoff + ((addr - vma->vm_start) >> PTE_SHIFT);
         |                                                            ^~~~~~~~~
         |                                                            PAGE_SHIFT
   ../../../mm/vma.h:233:60: note: each undeclared identifier is reported only once for each function it appears in
   ../../../mm/vma.h: In function 'set_vma_from_desc':
   ../../../mm/vma.h:309:14: error: 'struct vm_area_struct' has no member named 'vm_pteoff'; did you mean 'vm_pgoff'?
     309 |         vma->vm_pteoff = desc->pteoff;
         |              ^~~~~~~~~
         |              vm_pgoff
>> ../../../mm/vma.h:309:32: error: 'struct vm_area_desc' has no member named 'pteoff'; did you mean 'pgoff'?
     309 |         vma->vm_pteoff = desc->pteoff;
         |                                ^~~~~~
         |                                pgoff

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-05-03  2:13 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=202605030410.vFOcLBYt-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kas@kernel.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 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.