2012-08-01 09:06:29

by Sachin Kamat

[permalink] [raw]
Subject: [PATCH] iommu/exynos: Fix build error

Fixes the following build error introduced by commit 3177bb76a8
("iommu/exynos: Implement DOMAIN_ATTR_GEOMETRY attribute"):

drivers/iommu/exynos-iommu.c: In function ‘exynos_iommu_domain_init’:
drivers/iommu/exynos-iommu.c:735:2: error: ‘dom’ undeclared
(first use in this function)

Signed-off-by: Sachin Kamat <[email protected]>
---
drivers/iommu/exynos-iommu.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c
index 45350ff..80bad32 100644
--- a/drivers/iommu/exynos-iommu.c
+++ b/drivers/iommu/exynos-iommu.c
@@ -732,9 +732,9 @@ static int exynos_iommu_domain_init(struct iommu_domain *domain)
spin_lock_init(&priv->pgtablelock);
INIT_LIST_HEAD(&priv->clients);

- dom->geometry.aperture_start = 0;
- dom->geometry.aperture_end = ~0UL;
- dom->geometry.force_aperture = true;
+ domain->geometry.aperture_start = 0;
+ domain->geometry.aperture_end = ~0UL;
+ domain->geometry.force_aperture = true;

domain->priv = priv;
return 0;
--
1.7.4.1


2012-08-01 09:31:41

by Kukjin Kim

[permalink] [raw]
Subject: RE: [PATCH] iommu/exynos: Fix build error

Sachin Kamat wrote:
>
> Fixes the following build error introduced by commit 3177bb76a8
> ("iommu/exynos: Implement DOMAIN_ATTR_GEOMETRY attribute"):
>
> drivers/iommu/exynos-iommu.c: In function ‘exynos_iommu_domain_init’:
> drivers/iommu/exynos-iommu.c:735:2: error: ‘dom’ undeclared
> (first use in this function)
>
> Signed-off-by: Sachin Kamat <[email protected]>

Acked-by: Kukjin Kim <[email protected]>

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

2012-08-03 14:10:40

by Joerg Roedel

[permalink] [raw]
Subject: Re: [PATCH] iommu/exynos: Fix build error

On Wed, Aug 01, 2012 at 02:35:17PM +0530, Sachin Kamat wrote:
> Fixes the following build error introduced by commit 3177bb76a8
> ("iommu/exynos: Implement DOMAIN_ATTR_GEOMETRY attribute"):
>
> drivers/iommu/exynos-iommu.c: In function ‘exynos_iommu_domain_init’:
> drivers/iommu/exynos-iommu.c:735:2: error: ‘dom’ undeclared
> (first use in this function)
>
> Signed-off-by: Sachin Kamat <[email protected]>

Applied to iommu/fixes, thanks Sachin.

--
AMD Operating System Research Center

Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach
General Managers: Alberto Bozzo
Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632