From: Al Viro Date: Mon, 25 Apr 2005 14:55:58 +0000 (-0700) Subject: [PATCH] ppc sparse annotations: emulate_string_inst() X-Git-Tag: v2.6.12-rc4~223 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=91de1fff2d431fec1162333a1e4fad9a53cd5b9e;p=karo-tx-linux.git [PATCH] 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. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/arch/ppc/kernel/traps.c b/arch/ppc/kernel/traps.c index 002322a1f3ce..361865c4bc84 100644 --- a/arch/ppc/kernel/traps.c +++ b/arch/ppc/kernel/traps.c @@ -403,7 +403,7 @@ static int emulate_string_inst(struct pt_regs *regs, u32 instword) 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 */