git.samba.org
/
sfrench
/
cifs-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17b57b1
)
iommu/amd: Move iommu_init_pci() to .init section
author
Joerg Roedel
<jroedel@suse.de>
Fri, 5 Oct 2018 10:32:46 +0000
(12:32 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Fri, 5 Oct 2018 10:32:46 +0000
(12:32 +0200)
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>
drivers/iommu/amd_iommu_init.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/amd_iommu_init.c
b/drivers/iommu/amd_iommu_init.c
index 84b3e4445d46d0a6064437dc57f1ff0ecbdd9f36..9c3d610e1e19be74bda8794c3764ba789060efd5 100644
(file)
--- a/
drivers/iommu/amd_iommu_init.c
+++ b/
drivers/iommu/amd_iommu_init.c
@@
-1709,7
+1709,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;