Skip to contentSkip to conversation

linux-next: build failure after merge of the dwmw2-iommu tree

PATCH Stephen Rothwell 2 participants 4 messages Oct 12, 2015 – Oct 15, 2015 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi David,

After merging the dwmw2-iommu tree, today's linux-next build (i386 defconfig) failed like this:

In file included from drivers/gpu/drm/i915/i915_drv.h:50:0,

                 from drivers/gpu/drm/i915/i915_drv.c:34:
include/linux/intel-iommu.h:477:22: error: field 'notifier' has incomplete type
  struct mmu_notifier notifier;
                      ^

Caused by commit

a7002bccff99 ("iommu/vt-d: Add intel_svm_{un,}bind_mm() functions")

I have added the following patch for today:

From: Stephen Rothwell <[email protected]>
Date: Mon, 12 Oct 2015 17:51:50 +1100
Subject: [PATCH] iommu/vt-d: fix for "Add intel_svm_{un,}bind_mm() functions"

---
 include/linux/intel-iommu.h | 2 ++
 1 file changed, 2 insertions(+)
include/linux/intel-iommu.h +2 -0
index aa7e02d623c9..39a382cbbbd4 100644
@@ -474,7 +474,9 @@ extern int intel_svm_finish_prq(struct intel_iommu *iommu);
 
 struct intel_svm {
 	struct kref kref;
+#ifdef CONFIG_MMU_NOTIFIER
 	struct mmu_notifier notifier;
+#endif
 	struct mm_struct *mm;
 	struct intel_iommu *iommu;
 	struct device *dev;
Signature · 9 lines
2.5.3




-- 
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/
#1 lore raw

Hi David,

Quoted 41 lines · On Mon, 12 Oct 2015 18:32:57 +1100 Stephen Rothwell <[email protected]>…

After merging the dwmw2-iommu tree, today's linux-next build (i386 defconfig) failed like this:

In file included from drivers/gpu/drm/i915/i915_drv.h:50:0,

                 from drivers/gpu/drm/i915/i915_drv.c:34:
include/linux/intel-iommu.h:477:22: error: field 'notifier' has incomplete type
  struct mmu_notifier notifier;
                      ^

Caused by commit

a7002bccff99 ("iommu/vt-d: Add intel_svm_{un,}bind_mm() functions")

I have added the following patch for today:

From: Stephen Rothwell <[email protected]>
Date: Mon, 12 Oct 2015 17:51:50 +1100
Subject: [PATCH] iommu/vt-d: fix for "Add intel_svm_{un,}bind_mm() functions"

---
 include/linux/intel-iommu.h | 2 ++
 1 file changed, 2 insertions(+)
include/linux/intel-iommu.h +2 -0
index aa7e02d623c9..39a382cbbbd4 100644
@@ -474,7 +474,9 @@ extern int intel_svm_finish_prq(struct intel_iommu *iommu);
 
 struct intel_svm {
 	struct kref kref;
+#ifdef CONFIG_MMU_NOTIFIER
 	struct mmu_notifier notifier;
+#endif
 	struct mm_struct *mm;
 	struct intel_iommu *iommu;
 	struct device *dev;
Signature · 1 line
2.5.3

Ping?

Of course my patch did not apply today since the kref has now vanished in a rebase ...

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#2 lore raw
Quoted 5 lines · Stephen Rothwell

Ping?

Of course my patch did not apply today since the kref has now vanished in a rebase ...

The problem which required said patch should also be gone, though — CONFIG_INTEL_IOMMU_SVM now selects CONFIG_MMU_NOTIFIER, and its data structures are guarded with #ifdef CONFIG_INTEL_IOMMU_SVM.

Apologies for the lack of an explicit response (other than the implicit one of fixing the problem). It should have occurred to me that you'd be trying to carry the patch forward.

Signature · 1 line
dwmw2
#3 lore raw

Hi David,

Quoted 8 lines · On Thu, 15 Oct 2015 07:54:55 +0100 David Woodhouse <[email protected]> wrote:

The problem which required said patch should also be gone, though — CONFIG_INTEL_IOMMU_SVM now selects CONFIG_MMU_NOTIFIER, and its data structures are guarded with #ifdef CONFIG_INTEL_IOMMU_SVM.

Apologies for the lack of an explicit response (other than the implicit one of fixing the problem). It should have occurred to me that you'd be trying to carry the patch forward.

Thanks, I will drop the patch now.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]