linux-next: build failure after merge of the block tree
Mark Brown <[email protected]> Mon, 3 Aug 2026 17:52:35 +0100
| Newsgroups | org.kernel.vger.linux-next,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
--IF7RZ+LnkIY2MC39
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
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 f=
unction 'bio_iov_iter_get_pages'
1037 | ret =3D 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)
=66rom the block tree and
36f199c8d0ee4 (iomap: add simple dio path for small direct I/O)
=66rom 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:
=46rom 5bf17d9828d05688ad4fd04cc07b64642d4ba295 Mon Sep 17 00:00:00 2001
=46rom: 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 f=
unction 'bio_iov_iter_get_pages'
1037 | ret =3D 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, s=
truct iov_iter *iter,
bio->bi_iter.bi_sector =3D iomap_sector(&iomi->iomap, iomi->pos);
bio->bi_ioprio =3D iocb->ki_ioprio;
=20
- ret =3D bio_iov_iter_get_pages(bio, iter, alignment - 1);
+ ret =3D bio_iov_iter_get_pages(bio, iter, bdev_dma_alignment(bio->bi_bdev=
),
+ alignment - 1);
if (unlikely(ret))
goto out_bio_put;
=20
--=20
2.47.3
--IF7RZ+LnkIY2MC39
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmpwx1IACgkQJNaLcl1U
h9CAyQf/RoehCPJtRXzuYLKZv1DM6Mv02x0BM7KtG3uEf8DHfmW0LU020zv6pkFV
TEHklHPy00Kmy20hPqD30NYvVjzzm9vbap46FnwdbnMQxiT6rpiSRoR3uIlmigy5
bcn0Nc5cKKKT6jmzJKT3StuEKCmIU+cfkpo3bbg1J3wUFMTOlF++5ORzV5SoEVin
4cx31963lJz1+SZtmqB1EN4NO90bHna6nlfSN/OcUI+JPbRh9CUYt0O7RysGDG8f
r1a0QLfrsD2MCu5NN8G8e+Q0NADCd3uSIrha6D2o7bpaVU1MPlx6AGWUFzcttAMC
ADJHHUAkbque/EkYe91BebK/OJ6n6w==
=7LD9
-----END PGP SIGNATURE-----
--IF7RZ+LnkIY2MC39--