linux-next: build failure after merge of the block tree

Mark Brown <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.kernel.next
Message-ID <[email protected]>
Hi all,

After merging the block tree, today's linux-next build
(arm64 allnoconfig) failed like this:

/tmp/next/build/fs/iomap/direct-io.c: In function '__iomap_dio_read_simple':
/tmp/next/build/fs/iomap/direct-io.c:1037:15: error: too few arguments to function 'bio_iov_iter_get_pages'
 1037 |         ret = bio_iov_iter_get_pages(bio, iter, alignment - 1);
      |               ^~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/next/build/include/linux/bio-integrity.h:5,
                 from /tmp/next/build/fs/iomap/direct-io.c:6:
/tmp/next/build/include/linux/bio.h:524:5: note: declared here
  524 | int bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter,
      |     ^~~~~~~~~~~~~~~~~~~~~~

caused by a sematic conflict between

  14b007e178811 (block: validate user space vectors during extraction)

from the block tree and

  36f199c8d0ee4 (iomap: add simple dio path for small direct I/O)

from the vfs-brauner tree.  I have applied the fixup patch below and can
carry as needed, you should ensure you flag this to Linus when sending
PRs:

From 5bf17d9828d05688ad4fd04cc07b64642d4ba295 Mon Sep 17 00:00:00 2001
From: Mark Brown <[email protected]>
Date: Mon, 3 Aug 2026 15:53:13 +0100
Subject: [PATCH] fs: Fix up semantic conflict with bio_iov_iter_get_pages

/tmp/next/build/fs/iomap/direct-io.c: In function '__iomap_dio_read_simple':
/tmp/next/build/fs/iomap/direct-io.c:1037:15: error: too few arguments to function 'bio_iov_iter_get_pages'
 1037 |         ret = bio_iov_iter_get_pages(bio, iter, alignment - 1);
      |               ^~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/next/build/include/linux/bio-integrity.h:5,
                 from /tmp/next/build/fs/iomap/direct-io.c:6:
/tmp/next/build/include/linux/bio.h:524:5: note: declared here
  524 | int bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter,
      |     ^~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Mark Brown <[email protected]>
---
 fs/iomap/direct-io.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/iomap/direct-io.c b/fs/iomap/direct-io.c
index 2b3e916dedc77..2aa71be36c996 100644
--- a/fs/iomap/direct-io.c
+++ b/fs/iomap/direct-io.c
@@ -1034,7 +1034,8 @@ ssize_t __iomap_dio_read_simple(struct kiocb *iocb, struct iov_iter *iter,
 	bio->bi_iter.bi_sector = iomap_sector(&iomi->iomap, iomi->pos);
 	bio->bi_ioprio = iocb->ki_ioprio;
 
-	ret = bio_iov_iter_get_pages(bio, iter, alignment - 1);
+	ret = bio_iov_iter_get_pages(bio, iter, bdev_dma_alignment(bio->bi_bdev),
+				     alignment - 1);
 	if (unlikely(ret))
 		goto out_bio_put;
 
-- 
2.47.3
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmpwx1IACgkQJNaLcl1U
h9CAyQf/RoehCPJtRXzuYLKZv1DM6Mv02x0BM7KtG3uEf8DHfmW0LU020zv6pkFV
TEHklHPy00Kmy20hPqD30NYvVjzzm9vbap46FnwdbnMQxiT6rpiSRoR3uIlmigy5
bcn0Nc5cKKKT6jmzJKT3StuEKCmIU+cfkpo3bbg1J3wUFMTOlF++5ORzV5SoEVin
4cx31963lJz1+SZtmqB1EN4NO90bHna6nlfSN/OcUI+JPbRh9CUYt0O7RysGDG8f
r1a0QLfrsD2MCu5NN8G8e+Q0NADCd3uSIrha6D2o7bpaVU1MPlx6AGWUFzcttAMC
ADJHHUAkbque/EkYe91BebK/OJ6n6w==
=7LD9
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.