Patchwork pseries/iommu: use correct return type in dupe_ddw_if_already_created

login
register
mail settings
Submitter Nishanth Aravamudan
Date May 11, 2011, 9:07 p.m.
Message ID <1305148071-30824-1-git-send-email-nacc@us.ibm.com>
Download mbox | patch
Permalink /patch/95184/
State Accepted, archived
Commit 23a6c484047bb8ac50e6d5bb718f8d178a4bf32e
Delegated to: Benjamin Herrenschmidt
Headers show

Comments

Nishanth Aravamudan - May 11, 2011, 9:07 p.m.
Otherwise we get silent truncations.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Cc: Anton Blanchard <anton@samba.org>
Cc: Milton Miller <miltonm@bga.com>
Cc: linuxppc-dev@ozlabs.org

---

 arch/powerpc/platforms/pseries/iommu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/powerpc/platforms/pseries/iommu.c b/arch/powerpc/platforms/pseries/iommu.c
index 6d5412a..31e2ac4 100644
--- a/arch/powerpc/platforms/pseries/iommu.c
+++ b/arch/powerpc/platforms/pseries/iommu.c
@@ -693,7 +693,7 @@  static void remove_ddw(struct device_node *np)
 }
 
 
-static int dupe_ddw_if_already_created(struct pci_dev *dev, struct device_node *pdn)
+static u64 dupe_ddw_if_already_created(struct pci_dev *dev, struct device_node *pdn)
 {
 	struct device_node *dn;
 	struct pci_dn *pcidn;