]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.9-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Aug 2019 23:10:45 +0000 (16:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Aug 2019 23:10:45 +0000 (16:10 -0700)
added patches:
iommu-amd-move-iommu_init_pci-to-.init-section.patch

queue-4.9/iommu-amd-move-iommu_init_pci-to-.init-section.patch [new file with mode: 0644]
queue-4.9/series

diff --git a/queue-4.9/iommu-amd-move-iommu_init_pci-to-.init-section.patch b/queue-4.9/iommu-amd-move-iommu_init_pci-to-.init-section.patch
new file mode 100644 (file)
index 0000000..ec2fe1c
--- /dev/null
@@ -0,0 +1,30 @@
+From 24d2c521749d8547765b555b7a85cca179bb2275 Mon Sep 17 00:00:00 2001
+From: Joerg Roedel <jroedel@suse.de>
+Date: Fri, 5 Oct 2018 12:32:46 +0200
+Subject: iommu/amd: Move iommu_init_pci() to .init section
+
+From: Joerg Roedel <jroedel@suse.de>
+
+commit 24d2c521749d8547765b555b7a85cca179bb2275 upstream.
+
+The function is only called from another __init function, so
+it should be moved to .init too.
+
+Signed-off-by: Joerg Roedel <jroedel@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/iommu/amd_iommu_init.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/iommu/amd_iommu_init.c
++++ b/drivers/iommu/amd_iommu_init.c
+@@ -1534,7 +1534,7 @@ static const struct attribute_group *amd
+       NULL,
+ };
+-static int iommu_init_pci(struct amd_iommu *iommu)
++static int __init iommu_init_pci(struct amd_iommu *iommu)
+ {
+       int cap_ptr = iommu->cap_ptr;
+       u32 range, misc, low, high;
index a2742176f6387f2ccb37d6197077135dbfbfd71c..24c037e4c195c5cebb9b2a31ff19942b41c98b30 100644 (file)
@@ -93,3 +93,4 @@ bpf-fix-bpf_jit_limit-knob-for-page_size-64k.patch
 arm64-compat-allow-single-byte-watchpoints-on-all-addresses.patch
 netfilter-conntrack-use-consistent-ct-id-hash-calculation.patch
 input-psmouse-fix-build-error-of-multiple-definition.patch
+iommu-amd-move-iommu_init_pci-to-.init-section.patch