* [android-common:android15-6.6-2026-07 0/1] fs/proc/task_mmu.c:1858:8: warning: no previous prototype for '__pagemap_lseek'
@ 2026-07-02 3:07 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-02 3:07 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
Hi Kalesh,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android15-6.6-2026-07
head: 5556e039c32fa02b239611dc8e5ebb958a7f12e1
commit: 0715c0e2078d5e9bf1b2da50fae4a738cd346016 [0/1] ANDROID: 16K: Emulate /proc/pid/pagemap
config: i386-randconfig-003-20260702 (https://download.01.org/0day-ci/archive/20260702/202607021122.C8sowvZw-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/20260702/202607021122.C8sowvZw-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/202607021122.C8sowvZw-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> fs/proc/task_mmu.c:1858:8: warning: no previous prototype for '__pagemap_lseek' [-Wmissing-prototypes]
1858 | loff_t __pagemap_lseek(struct file *file, loff_t offset, int orig)
| ^~~~~~~~~~~~~~~
vim +/__pagemap_lseek +1858 fs/proc/task_mmu.c
1857
> 1858 loff_t __pagemap_lseek(struct file *file, loff_t offset, int orig)
1859 {
1860 unsigned long nr_subpages = __PAGE_SIZE / PAGE_SIZE;
1861 loff_t ret;
1862
1863 /*
1864 * Userspace thinks the pages are larger than they actually are, so adjust the
1865 * offset to compensate.
1866 */
1867 offset *= nr_subpages;
1868
1869 ret = mem_lseek(file, offset, orig); /* borrow this */
1870 if (ret < 0)
1871 return offset;
1872
1873 /* Re-adjust the offset to reflect the larger userspace page size. */
1874 return ret / nr_subpages;
1875 }
1876
--
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:[~2026-07-02 3:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-02 3:07 [android-common:android15-6.6-2026-07 0/1] fs/proc/task_mmu.c:1858:8: warning: no previous prototype for '__pagemap_lseek' 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.