Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=145e9230760e4db27cf5f00fd04b005c79ca1c12
Commit:     145e9230760e4db27cf5f00fd04b005c79ca1c12
Parent:     df922075f2a55b1ae71a6fe589c1cc1b91381f4f
Author:     Geert Uytterhoeven <[EMAIL PROTECTED]>
AuthorDate: Thu Feb 7 23:10:28 2008 +0100
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Feb 7 14:15:55 2008 -0800

    m68k: correct setting of struct user.u_ar0
    
    Commit 6e16d89bcd668a95eb22add24c02d80890232b66 ("Sanitize the type of
    struct user.u_ar0") forgot to change the m68k setting code, causing the
    following compiler warning:
    
        arch/m68k/kernel/process.c:338: warning: assignment makes integer from 
pointer without a cast
    
    Signed-off-by: Geert Uytterhoeven <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 arch/m68k/kernel/process.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/m68k/kernel/process.c b/arch/m68k/kernel/process.c
index 3ee9186..f85b928 100644
--- a/arch/m68k/kernel/process.c
+++ b/arch/m68k/kernel/process.c
@@ -335,7 +335,7 @@ void dump_thread(struct pt_regs * regs, struct user * dump)
        if (dump->start_stack < TASK_SIZE)
                dump->u_ssize = ((unsigned long) (TASK_SIZE - 
dump->start_stack)) >> PAGE_SHIFT;
 
-       dump->u_ar0 = (struct user_regs_struct *)((int)&dump->regs - (int)dump);
+       dump->u_ar0 = offsetof(struct user, regs);
        sw = ((struct switch_stack *)regs) - 1;
        dump->regs.d1 = regs->d1;
        dump->regs.d2 = regs->d2;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to