Skip to contentSkip to conversation

ppc sparse annotations: emulate_string_inst()

PATCH New Al Viro 1 participant 1 message Apr 25, 2005

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 ppc sparse annotations: emulate_string_inst()

replaced declaration of EA from u32 to unsigned long - this beast
is used only to cast it to (userland) pointer and proper integer type for that is unsigned long.

----

arch/ppc/kernel/traps.c +1 -1
diff -urN RC12-rc3-mveth/arch/ppc/kernel/traps.c RC12-rc3-ppc-traps/arch/ppc/kernel/traps.c
@@ -403,7 +403,7 @@
 	u8 rA = (instword >> 16) & 0x1f;
 	u8 NB_RB = (instword >> 11) & 0x1f;
 	u32 num_bytes;
-	u32 EA;
+	unsigned long EA;
 	int pos = 0;
 
 	/* Early out if we are an invalid form of lswx */