]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.2-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Jul 2019 16:54:20 +0000 (18:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Jul 2019 16:54:20 +0000 (18:54 +0200)
added patches:
iommu-iova-fix-compilation-error-with-config_iommu_iova.patch

queue-5.2/iommu-iova-fix-compilation-error-with-config_iommu_iova.patch [new file with mode: 0644]
queue-5.2/series

diff --git a/queue-5.2/iommu-iova-fix-compilation-error-with-config_iommu_iova.patch b/queue-5.2/iommu-iova-fix-compilation-error-with-config_iommu_iova.patch
new file mode 100644 (file)
index 0000000..923a2b1
--- /dev/null
@@ -0,0 +1,31 @@
+From 201c1db90cd643282185a00770f12f95da330eca Mon Sep 17 00:00:00 2001
+From: Joerg Roedel <jroedel@suse.de>
+Date: Tue, 23 Jul 2019 09:51:00 +0200
+Subject: iommu/iova: Fix compilation error with !CONFIG_IOMMU_IOVA
+
+From: Joerg Roedel <jroedel@suse.de>
+
+commit 201c1db90cd643282185a00770f12f95da330eca upstream.
+
+The stub function for !CONFIG_IOMMU_IOVA needs to be
+'static inline'.
+
+Fixes: effa467870c76 ('iommu/vt-d: Don't queue_iova() if there is no flush queue')
+Signed-off-by: Joerg Roedel <jroedel@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ include/linux/iova.h |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/include/linux/iova.h
++++ b/include/linux/iova.h
+@@ -236,7 +236,7 @@ static inline void init_iova_domain(stru
+ {
+ }
+-bool has_iova_flush_queue(struct iova_domain *iovad)
++static inline bool has_iova_flush_queue(struct iova_domain *iovad)
+ {
+       return false;
+ }
index 403bde475599d404de980752aa595256f681fa64..19c8e4ee5b5e8723e473b9dde80f93c9e30a070c 100644 (file)
@@ -201,3 +201,4 @@ powerpc-pmu-set-pmcregs_in_use-in-paca-when-running-as-lpar.patch
 io_uring-fix-the-sequence-comparison-in-io_sequence_defer.patch
 iommu-vt-d-don-t-queue_iova-if-there-is-no-flush-queue.patch
 iommu-iova-remove-stale-cached32_node.patch
+iommu-iova-fix-compilation-error-with-config_iommu_iova.patch