Re: [PATCH 04/11] iommu/omap: Protect omap-iopgtable.h against double inclusion

2015-07-21 Thread Laurent Pinchart
Hi Suman,

Thank you for the patch.

On Monday 20 July 2015 17:33:26 Suman Anna wrote:
 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-a...@ti.com

Reviewed-by: Laurent Pinchart laurent.pinch...@ideasonboard.com

 ---
  drivers/iommu/omap-iopgtable.h | 5 +
  1 file changed, 5 insertions(+)
 
 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 @@
   * published by the Free Software Foundation.
   */
 
 +#ifndef _OMAP_IOPGTABLE_H
 +#define _OMAP_IOPGTABLE_H
 +
  /*
   * L2 table address mask and size definitions.
   */
 @@ -93,3 +96,5 @@ static inline phys_addr_t omap_iommu_translate(u32 d, u32
 va, u32 mask) /* to find an entry in the second-level page table. */
  #define iopte_index(da)  (((da)  IOPTE_SHIFT)  
 (PTRS_PER_IOPTE - 1))
  #define iopte_offset(iopgd, da)  (iopgd_page_vaddr(iopgd) + 
iopte_index(da))
 +
 +#endif /* _OMAP_IOPGTABLE_H */

-- 
Regards,

Laurent Pinchart

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 04/11] iommu/omap: Protect omap-iopgtable.h against double inclusion

2015-07-20 Thread Suman Anna
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-a...@ti.com
---
 drivers/iommu/omap-iopgtable.h | 5 +
 1 file changed, 5 insertions(+)

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 @@
  * published by the Free Software Foundation.
  */
 
+#ifndef _OMAP_IOPGTABLE_H
+#define _OMAP_IOPGTABLE_H
+
 /*
  * L2 table address mask and size definitions.
  */
@@ -93,3 +96,5 @@ static inline phys_addr_t omap_iommu_translate(u32 d, u32 va, 
u32 mask)
 /* to find an entry in the second-level page table. */
 #define iopte_index(da)(((da)  IOPTE_SHIFT)  
(PTRS_PER_IOPTE - 1))
 #define iopte_offset(iopgd, da)(iopgd_page_vaddr(iopgd) + 
iopte_index(da))
+
+#endif /* _OMAP_IOPGTABLE_H */
-- 
2.4.4

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html