Skip to content

Commit

Permalink
intel-iommu: make init_dmars() static
Browse files Browse the repository at this point in the history
init_dmars() is not used outside of drivers/pci/intel-iommu.c

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Mark McLoughlin authored and Joerg Roedel committed Jan 3, 2009
1 parent 015ab17 commit 519a054
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/pci/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1589,7 +1589,7 @@ static inline void iommu_prepare_isa(void)
}
#endif /* !CONFIG_DMAR_FLPY_WA */

int __init init_dmars(void)
static int __init init_dmars(void)
{
struct dmar_drhd_unit *drhd;
struct dmar_rmrr_unit *rmrr;
Expand Down
1 change: 0 additions & 1 deletion include/linux/dma_remapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ struct device_domain_info {
struct dmar_domain *domain; /* pointer to domain */
};

extern int init_dmars(void);
extern void free_dmar_iommu(struct intel_iommu *iommu);

extern int dmar_disabled;
Expand Down

0 comments on commit 519a054

Please sign in to comment.