All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-block:bvec-kmap 35/49] block/bounce.c:251:3: error: 'bounce_page' undeclared; did you mean 'bouce_page'?
@ 2021-05-26  8:57 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-26  8:57 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2841 bytes --]

tree:   git://git.infradead.org/users/hch/block.git bvec-kmap
head:   d34d577cd38500003478ffa0a43a12811ac7b71e
commit: 33032c663656fb0942eb08e8cfc675fe4b45f730 [35/49] block: use memcpy_from_bvec in __blk_queue_bounce
config: i386-randconfig-r022-20210526 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        git remote add hch-block git://git.infradead.org/users/hch/block.git
        git fetch --no-tags hch-block bvec-kmap
        git checkout 33032c663656fb0942eb08e8cfc675fe4b45f730
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   block/bounce.c: In function '__blk_queue_bounce':
>> block/bounce.c:251:3: error: 'bounce_page' undeclared (first use in this function); did you mean 'bouce_page'?
     251 |   bounce_page = mempool_alloc(&page_pool, GFP_NOIO);
         |   ^~~~~~~~~~~
         |   bouce_page
   block/bounce.c:251:3: note: each undeclared identifier is reported only once for each function it appears in
   block/bounce.c:246:16: warning: unused variable 'bouce_page' [-Wunused-variable]
     246 |   struct page *bouce_page;
         |                ^~~~~~~~~~


vim +251 block/bounce.c

   212	
   213	void __blk_queue_bounce(struct request_queue *q, struct bio **bio_orig)
   214	{
   215		struct bio *bio;
   216		int rw = bio_data_dir(*bio_orig);
   217		struct bio_vec *to, from;
   218		struct bvec_iter iter;
   219		unsigned i = 0;
   220		bool bounce = false;
   221		int sectors = 0;
   222	
   223		bio_for_each_segment(from, *bio_orig, iter) {
   224			if (i++ < BIO_MAX_VECS)
   225				sectors += from.bv_len >> 9;
   226			if (PageHighMem(from.bv_page))
   227				bounce = true;
   228		}
   229		if (!bounce)
   230			return;
   231	
   232		if (sectors < bio_sectors(*bio_orig)) {
   233			bio = bio_split(*bio_orig, sectors, GFP_NOIO, &bounce_bio_split);
   234			bio_chain(bio, *bio_orig);
   235			submit_bio_noacct(*bio_orig);
   236			*bio_orig = bio;
   237		}
   238		bio = bounce_clone_bio(*bio_orig);
   239	
   240		/*
   241		 * Bvec table can't be updated by bio_for_each_segment_all(),
   242		 * so retrieve bvec from the table directly. This way is safe
   243		 * because the 'bio' is single-page bvec.
   244		 */
   245		for (i = 0, to = bio->bi_io_vec; i < bio->bi_vcnt; to++, i++) {
   246			struct page *bouce_page;
   247	
   248			if (!PageHighMem(to->bv_page))
   249				continue;
   250	
 > 251			bounce_page = mempool_alloc(&page_pool, GFP_NOIO);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36090 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-26  8:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26  8:57 [hch-block:bvec-kmap 35/49] block/bounce.c:251:3: error: 'bounce_page' undeclared; did you mean 'bouce_page'? 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.