summaryrefslogtreecommitdiff
path: root/drivers/vfio
diff options
context:
space:
mode:
authorBharat Bhushan <Bharat.Bhushan@freescale.com>2014-04-16 09:15:06 (GMT)
committerJose Rivera <German.Rivera@freescale.com>2014-04-18 03:50:11 (GMT)
commita204f182819fde737aaac2f0d8aa3570e8f94266 (patch)
tree484048c7e7aec2af1c0a7a29d8f902e70ca8a909 /drivers/vfio
parent59abe64904d98a6a4069595ccb85d2bbc8dd437d (diff)
downloadlinux-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>
Diffstat (limited to 'drivers/vfio')
-rw-r--r--drivers/vfio/vfio_iommu_fsl_pamu.c4
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