diff options
author | Bharat Bhushan <Bharat.Bhushan@freescale.com> | 2014-04-16 09:15:06 (GMT) |
---|---|---|
committer | Jose Rivera <German.Rivera@freescale.com> | 2014-04-18 03:50:11 (GMT) |
commit | a204f182819fde737aaac2f0d8aa3570e8f94266 (patch) | |
tree | 484048c7e7aec2af1c0a7a29d8f902e70ca8a909 | |
parent | 59abe64904d98a6a4069595ccb85d2bbc8dd437d (diff) | |
download | linux-fsl-qoriq-a204f182819fde737aaac2f0d8aa3570e8f94266.tar.xz |
vfio: Use compound_head() to fix compilation error
We are getting compilation error because commit id
"9a110858ed2e494b8be683c6959113f73685eb1f" converts
compund_trans_head() to compound_head() and similar change
required in drivers/vfio/vfio_iommu_fsl_pamu.c.
Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com>
Change-Id: Ifdb5f2b1f62bbc58d64883f04e6764e40c356f4e
Reviewed-on: http://git.am.freescale.net:8181/11032
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Mihai Claudiu Caraman <mihai.caraman@freescale.com>
Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
-rw-r--r-- | drivers/vfio/vfio_iommu_fsl_pamu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vfio/vfio_iommu_fsl_pamu.c b/drivers/vfio/vfio_iommu_fsl_pamu.c index 2672e15..d049edc 100644 --- a/drivers/vfio/vfio_iommu_fsl_pamu.c +++ b/drivers/vfio/vfio_iommu_fsl_pamu.c @@ -157,12 +157,12 @@ static bool is_invalid_reserved_pfn(unsigned long pfn) if (pfn_valid(pfn)) { bool reserved; struct page *tail = pfn_to_page(pfn); - struct page *head = compound_trans_head(tail); + struct page *head = compound_head(tail); reserved = !!(PageReserved(head)); if (head != tail) { /* * "head" is not a dangling pointer - * (compound_trans_head takes care of that) + * (compound_head takes care of that) * but the hugepage may have been split * from under us (and we may not hold a * reference count on the head page so it can |