]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iommu/amd: Move iommu_init_pci() to .init section
authorJoerg Roedel <jroedel@suse.de>
Fri, 5 Oct 2018 10:32:46 +0000 (12:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2019 08:53:05 +0000 (10:53 +0200)
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

index db85cc5791dce369ff506c2e6ef2f253712f016e..6a69b5bb231f82e2f748d5bc2973af4b1a89e61e 100644 (file)
@@ -1223,7 +1223,7 @@ static const struct attribute_group *amd_iommu_groups[] = {
        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;