All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/android/binder_alloc.c:234:21: warning: 'binder_page_lookup' defined but not used
@ 2026-09-08  9:29 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-08  9:29 UTC (permalink / raw)
  To: Bo Zhang; +Cc: oe-kbuild-all, 0day robot

tree:   https://github.com/intel-lab-lkp/linux/commits/Bo-Zhang/binder-switch-alloc-mutex-to-spinlock-for-buffer-metadata/20260904-190447
head:   0eaa7c96e838c958ee4182433326639329ee3733
commit: 0eaa7c96e838c958ee4182433326639329ee3733 binder: add install_mutex to serialize page install and shrinker zap
date:   2 days ago
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20260908/202609081155.54SVIR98-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260908/202609081155.54SVIR98-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/202609081155.54SVIR98-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/android/binder_alloc.c:234:21: warning: 'binder_page_lookup' defined but not used [-Wunused-function]
     234 | static struct page *binder_page_lookup(struct binder_alloc *alloc,
         |                     ^~~~~~~~~~~~~~~~~~


vim +/binder_page_lookup +234 drivers/android/binder_alloc.c

072010abc3ad98b Carlos Llamas 2024-12-10  233  
9e2aa76549b9fd2 Carlos Llamas 2024-12-10 @234  static struct page *binder_page_lookup(struct binder_alloc *alloc,
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  235  				       unsigned long addr)
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  236  {
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  237  	struct mm_struct *mm = alloc->mm;
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  238  	struct page *page;
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  239  	long npages = 0;
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  240  
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  241  	/*
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  242  	 * Find an existing page in the remote mm. If missing,
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  243  	 * don't attempt to fault-in just propagate an error.
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  244  	 */
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  245  	mmap_read_lock(mm);
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  246  	if (binder_alloc_is_mapped(alloc))
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  247  		npages = get_user_pages_remote(mm, addr, 1, FOLL_NOFAULT,
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  248  					       &page, NULL);
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  249  	mmap_read_unlock(mm);
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  250  
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  251  	return npages > 0 ? page : NULL;
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  252  }
9e2aa76549b9fd2 Carlos Llamas 2024-12-10  253  

--
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-09-08  9:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-08  9:29 drivers/android/binder_alloc.c:234:21: warning: 'binder_page_lookup' defined but not used 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.