]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 4 Sep 2019 06:16:38 +0000 (02:16 -0400)
BugLink: https://bugs.launchpad.net/bugs/1841652
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/iommu/amd_iommu_init.c

index b62738404dd8de2bb0e8a5f55a67f487b5cce139..4b8d353b7acf5ca3f1fb20ab20426813c2b5590a 100644 (file)
@@ -1710,7 +1710,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;