Thread (8 messages) 8 messages, 4 authors, 2012-03-07

Re: [PATCH] powerpc/srio: Fix the compile errors when building with 64bit

flat view

From: Kumar Gala <hidden>
Date: 2012-03-06 17:46:53
Also in: lkml

On Mar 5, 2012, at 8:20 AM, Liu Gang wrote:
Hi, Kumar,
=20
On Fri, 2012-03-02 at 09:11 -0600, Kumar Gala wrote:
quoted
quoted
diff --git a/arch/powerpc/sysdev/fsl_rmu.c =
b/arch/powerpc/sysdev/fsl_rmu.c
quoted
quoted
index 1548578..468011e 100644
--- a/arch/powerpc/sysdev/fsl_rmu.c
+++ b/arch/powerpc/sysdev/fsl_rmu.c
@@ -311,8 +311,8 @@ fsl_rio_dbell_handler(int irq, void =
*dev_instance)
quoted
quoted
=20
	/* XXX Need to check/dispatch until queue empty */
	if (dsr & DOORBELL_DSR_DIQI) {
-		u32 dmsg =3D
-			(u32) fsl_dbell->dbell_ring.virt +
+		unsigned long dmsg =3D
+			(unsigned long) fsl_dbell->dbell_ring.virt +
			(in_be32(&fsl_dbell->dbell_regs->dqdpar) & =
0xfff);

How about a struct instead:

struct rmu_dmsg {
	u16	dummy;
	u16	tid;
	u16	sid;
	u16	info;
};

	struct rmu_dmsg *dmsg =3D fsl_dbell->dbell_ring.virt + =
(in_be32(&fsl_dbell->dbell_regs->dqdpar) & 0xfff);

Than you can git rid of the DBELL_* macros.


- k
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help