From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Jason Gunthorpe <jgg@nvidia.com>, Joerg Roedel <joro@8bytes.org>
Cc: Joerg Roedel <jroedel@suse.de>, Jason Gunthorpe <jgg@ziepe.ca>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux Next Mailing List <linux-next@vger.kernel.org>
Subject: linux-next: build failure after merge of the iommufd tree
Date: Tue, 15 Aug 2023 21:04:37 +1000 [thread overview]
Message-ID: <20230815210437.12bd89b0@canb.auug.org.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 1811 bytes --]
Hi all,
After merging the iommufd tree, today's linux-next build (x86_64
allmodconfig) failed like this:
drivers/iommu/iommu.c: In function 'iommu_device_register_bus':
drivers/iommu/iommu.c:335:15: error: too few arguments to function 'bus_iommu_probe'
335 | err = bus_iommu_probe(bus);
| ^~~~~~~~~~~~~~~
In file included from drivers/iommu/iommu.c:20:
include/linux/iommu.h:474:12: note: declared here
474 | extern int bus_iommu_probe(const struct bus_type *bus,
| ^~~~~~~~~~~~~~~
Caused by commit
23a1b46f15d5 ("iommufd/selftest: Make the mock iommu driver into a real driver")
interacting with commit
2b4de976b360 ("iommu: Pass in the iommu_device to probe for in bus_iommu_probe()")
from the iommu tree.
I have applied the following fix up patch for today:
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Tue, 15 Aug 2023 20:50:05 +1000
Subject: [PATCH] fix up for "iommufd/selftest: Make the mock iommu driver into a real driver"
interacting with commit
2b4de976b360 ("iommu: Pass in the iommu_device to probe for in bus_iommu_probe()")
from the iommu tree.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/iommu/iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index 20c9a0501760..1e017e1bf5ea 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -332,7 +332,7 @@ int iommu_device_register_bus(struct iommu_device *iommu,
spin_unlock(&iommu_device_lock);
bus->iommu_ops = ops;
- err = bus_iommu_probe(bus);
+ err = bus_iommu_probe(bus, iommu);
if (err) {
iommu_device_unregister_bus(iommu, bus, nb);
return err;
--
2.40.1
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next reply other threads:[~2023-08-15 11:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-15 11:04 Stephen Rothwell [this message]
2023-08-15 11:34 ` linux-next: build failure after merge of the iommufd tree Jason Gunthorpe
-- strict thread matches above, loose matches on Subject: below --
2024-07-12 5:58 Stephen Rothwell
2024-07-12 12:05 ` Jason Gunthorpe
2023-03-30 1:54 Stephen Rothwell
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=20230815210437.12bd89b0@canb.auug.org.au \
--to=sfr@canb.auug.org.au \
--cc=jgg@nvidia.com \
--cc=jgg@ziepe.ca \
--cc=joro@8bytes.org \
--cc=jroedel@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
/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