All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android15-6.6-2026-07 0/1] fs/proc/task_mmu.c:1858:8: warning: no previous prototype for '__pagemap_lseek'
Date: Thu, 02 Jul 2026 11:07:07 +0800	[thread overview]
Message-ID: <202607021122.C8sowvZw-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-07-02  3:08 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=202607021122.C8sowvZw-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cros-kernel-buildreports@googlegroups.com \
    --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.