From: "ext Kanigeri, Hari" <h-kanige...@ti.com> Subject: RE: [PATCH 4/4][v4] OMAP:iommu- add TLB preservation support Date: Sat, 24 Apr 2010 01:43:19 +0200
> Hi Hiroshi, > >> >> diff --git a/arch/arm/plat-omap/iommu.c b/arch/arm/plat-omap/iommu.c >> index 1e83fac..d09a0a1 100644 >> --- a/arch/arm/plat-omap/iommu.c >> +++ b/arch/arm/plat-omap/iommu.c >> @@ -25,6 +25,9 @@ >> >> #include "iopgtable.h" >> >> +#define for_each_iotlb_cr(obj, n, i, cr) \ >> + for (i = 0; (i < n) && (cr = get_iotlb_cr(obj, i)); i++) >> + > -- This code is giving compilation error. Should be like: +#define for_each_iotlb_cr(obj, n, __i, cr) \ + for (__i = 0; \ + (__i < (n)) && (cr = __iotlb_read_cr((obj), __i), true); \ + __i++) + -- 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