]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[PATCH] ppc sparse annotations: emulate_string_inst()
authorAl Viro <viro@www.linux.org.uk>
Mon, 25 Apr 2005 14:55:58 +0000 (07:55 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 25 Apr 2005 14:55:58 +0000 (07:55 -0700)
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 <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/kernel/traps.c

index 002322a1f3cedd02ab18a25fe135dfedeebc0bc6..361865c4bc84b59e44f4d93d1e36f97dfc7696e6 100644 (file)
@@ -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 */