Skip to content

Commit

Permalink
AMD IOMMU: prealloc_protection_domains should be static
Browse files Browse the repository at this point in the history
Impact: cleanup, reduce kernel size a bit, avoid sparse warning

Fixes sparse warning:
arch/x86/kernel/amd_iommu.c:1299:6: warning: symbol 'prealloc_protection_domains' was not declared. Should it be static?

Signed-off-by: Jaswinder Singh Rajput <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
  • Loading branch information
Jaswinder Singh Rajput authored and Joerg Roedel committed Jan 3, 2009
1 parent 8ecaf8f commit 0e93dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ static int amd_iommu_dma_supported(struct device *dev, u64 mask)
* we don't need to preallocate the protection domains anymore.
* For now we have to.
*/
void prealloc_protection_domains(void)
static void prealloc_protection_domains(void)
{
struct pci_dev *dev = NULL;
struct dma_ops_domain *dma_dom;
Expand Down

0 comments on commit 0e93dd8

Please sign in to comment.