Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Pankaj Raghav <p.raghav@samsung.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC v2 2/2] block: use mm_huge_zero_folio in __blkdev_issue_zero_pages()
Date: Fri, 23 May 2025 14:28:39 +0800	[thread overview]
Message-ID: <202505231432.NPt3C4sm-lkp@intel.com> (raw)
In-Reply-To: <20250522090243.758943-3-p.raghav@samsung.com>

Hi Pankaj,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:

[auto build test ERROR on f1f6aceb82a55f87d04e2896ac3782162e7859bd]

url:    https://github.com/intel-lab-lkp/linux/commits/Pankaj-Raghav/mm-add-THP_HUGE_ZERO_PAGE_ALWAYS-config-option/20250522-170442
base:   f1f6aceb82a55f87d04e2896ac3782162e7859bd
patch link:    https://lore.kernel.org/r/20250522090243.758943-3-p.raghav%40samsung.com
patch subject: [RFC v2 2/2] block: use mm_huge_zero_folio in __blkdev_issue_zero_pages()
config: arm-randconfig-001-20250523 (https://download.01.org/0day-ci/archive/20250523/202505231432.NPt3C4sm-lkp@intel.com/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250523/202505231432.NPt3C4sm-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/202505231432.NPt3C4sm-lkp@intel.com/

All errors (new ones prefixed by >>):

>> block/blk-lib.c:201:15: error: call to undeclared function 'mm_get_huge_zero_folio'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           zero_folio = mm_get_huge_zero_folio(NULL);
                        ^
   block/blk-lib.c:201:15: note: did you mean 'mm_put_huge_zero_folio'?
   include/linux/huge_mm.h:644:20: note: 'mm_put_huge_zero_folio' declared here
   static inline void mm_put_huge_zero_folio(struct mm_struct *mm)
                      ^
>> block/blk-lib.c:201:13: error: incompatible integer to pointer conversion assigning to 'struct folio *' from 'int' [-Wint-conversion]
           zero_folio = mm_get_huge_zero_folio(NULL);
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 errors generated.


vim +/mm_get_huge_zero_folio +201 block/blk-lib.c

   194	
   195	static void __blkdev_issue_zero_pages(struct block_device *bdev,
   196			sector_t sector, sector_t nr_sects, gfp_t gfp_mask,
   197			struct bio **biop, unsigned int flags)
   198	{
   199		struct folio *zero_folio;
   200	
 > 201		zero_folio = mm_get_huge_zero_folio(NULL);
   202		if (!zero_folio)
   203			zero_folio = page_folio(ZERO_PAGE(0));
   204	
   205		while (nr_sects) {
   206			unsigned int nr_vecs = __blkdev_sectors_to_bio_pages(nr_sects);
   207			struct bio *bio;
   208	
   209			bio = bio_alloc(bdev, nr_vecs, REQ_OP_WRITE, gfp_mask);
   210			bio->bi_iter.bi_sector = sector;
   211	
   212			if ((flags & BLKDEV_ZERO_KILLABLE) &&
   213			    fatal_signal_pending(current))
   214				break;
   215	
   216			do {
   217				unsigned int len, added = 0;
   218	
   219				len = min_t(sector_t, folio_size(zero_folio),
   220					    nr_sects << SECTOR_SHIFT);
   221				if (bio_add_folio(bio, zero_folio, len, 0))
   222					added = len;
   223				if (added < len)
   224					break;
   225				nr_sects -= added >> SECTOR_SHIFT;
   226				sector += added >> SECTOR_SHIFT;
   227			} while (nr_sects);
   228	
   229			*biop = bio_chain_and_submit(*biop, bio);
   230			cond_resched();
   231		}
   232	}
   233	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

           reply	other threads:[~2025-05-23  6:29 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20250522090243.758943-3-p.raghav@samsung.com>]

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=202505231432.NPt3C4sm-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=p.raghav@samsung.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox