diff options
author | Suman Anna <s-anna@ti.com> | 2015-07-20 18:33:26 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-08-03 10:03:52 -0400 |
commit | ad8e29a0804494bff5f0059df3805423ed2020b8 (patch) | |
tree | 0a590706db6ff2c2bb266d948ddd688c1675a61c /drivers/iommu/omap-iopgtable.h | |
parent | 69c2c196328e73d3091dd0be89ab4b0c2af4b210 (diff) |
iommu/omap: Protect omap-iopgtable.h against double inclusion
Protect the omap-pgtable.h header against double inclusion in
source code by using the standard include guard mechanism.
Signed-off-by: Suman Anna <s-anna@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/omap-iopgtable.h')
-rw-r--r-- | drivers/iommu/omap-iopgtable.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iommu/omap-iopgtable.h b/drivers/iommu/omap-iopgtable.h index f891683e3f05..bfde5405f514 100644 --- a/drivers/iommu/omap-iopgtable.h +++ b/drivers/iommu/omap-iopgtable.h | |||
@@ -10,6 +10,9 @@ | |||
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #ifndef _OMAP_IOPGTABLE_H | ||
14 | #define _OMAP_IOPGTABLE_H | ||
15 | |||
13 | /* | 16 | /* |
14 | * "L2 table" address mask and size definitions. | 17 | * "L2 table" address mask and size definitions. |
15 | */ | 18 | */ |
@@ -93,3 +96,5 @@ static inline phys_addr_t omap_iommu_translate(u32 d, u32 va, u32 mask) | |||
93 | /* to find an entry in the second-level page table. */ | 96 | /* to find an entry in the second-level page table. */ |
94 | #define iopte_index(da) (((da) >> IOPTE_SHIFT) & (PTRS_PER_IOPTE - 1)) | 97 | #define iopte_index(da) (((da) >> IOPTE_SHIFT) & (PTRS_PER_IOPTE - 1)) |
95 | #define iopte_offset(iopgd, da) (iopgd_page_vaddr(iopgd) + iopte_index(da)) | 98 | #define iopte_offset(iopgd, da) (iopgd_page_vaddr(iopgd) + iopte_index(da)) |
99 | |||
100 | #endif /* _OMAP_IOPGTABLE_H */ | ||