All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android14-6.1-2024-06 0/5] block/bio.c:1115:30: warning: variable 'page' set but not used
@ 2025-03-25 22:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-25 22:20 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

Hi Matthew,

FYI, the error/warning still remains.

tree:   https://android.googlesource.com/kernel/common android14-6.1-2024-06
head:   f2c25a3fab99d49c777fbf9af2d696fcdc877d76
commit: 9025ee1079291fac79c7fcc20086e9f0015f86f4 [0/5] block: Remove special-casing of compound pages
config: i386-buildonly-randconfig-001-20250325 (https://download.01.org/0day-ci/archive/20250326/202503260609.RBpxcDOW-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250326/202503260609.RBpxcDOW-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/202503260609.RBpxcDOW-lkp@intel.com/

All warnings (new ones prefixed by >>):

   block/bio.c: In function '__bio_release_pages':
>> block/bio.c:1115:30: warning: variable 'page' set but not used [-Wunused-but-set-variable]
    1115 |                 struct page *page;
         |                              ^~~~


vim +/page +1115 block/bio.c

  1109	
  1110	void __bio_release_pages(struct bio *bio, bool mark_dirty)
  1111	{
  1112		struct folio_iter fi;
  1113	
  1114		bio_for_each_folio_all(fi, bio) {
> 1115			struct page *page;
  1116			size_t done = 0;
  1117	
  1118			if (mark_dirty) {
  1119				folio_lock(fi.folio);
  1120				folio_mark_dirty(fi.folio);
  1121				folio_unlock(fi.folio);
  1122			}
  1123			page = folio_page(fi.folio, fi.offset / PAGE_SIZE);
  1124			do {
  1125				folio_put(fi.folio);
  1126				done += PAGE_SIZE;
  1127			} while (done < fi.length);
  1128		}
  1129	}
  1130	EXPORT_SYMBOL_GPL(__bio_release_pages);
  1131	

-- 
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:[~2025-03-25 22:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-25 22:20 [android-common:android14-6.1-2024-06 0/5] block/bio.c:1115:30: warning: variable 'page' set 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.