Commit:     9965a5d5a5aab575f995ba58dc80285aa0f6ecbf
Parent:     1b2becffeed47ce88316724d1ee4cdbc7ee0180e
Author:     Meelis Roos <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 31 00:38:13 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Jul 31 15:39:39 2007 -0700

    alpha: fix boot/main.c warning
    In current 2.6.23-rc1+git, make bootimage gives the following warning while
    compiling arch/alpha/boot/main.c.  The patch below fixes the warning by
    casting callback argument explicitly to void*.  The original value comes 
    START_ADDR macro and is clearly numeric so only cast it for the callback.
      CC      arch/alpha/boot/main.o
    arch/alpha/boot/main.c: In function 'load':
    arch/alpha/boot/main.c:135: warning: passing argument 3 of 'callback_read' 
makes pointer from integer without a cast
    Signed-off-by: Meelis Roos <[EMAIL PROTECTED]>
    Cc: Jay Estabrook <[EMAIL PROTECTED]>
    Cc: Ivan Kokshaysky <[EMAIL PROTECTED]>
    Cc: Richard Henderson <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 arch/alpha/boot/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/alpha/boot/main.c b/arch/alpha/boot/main.c
index 90ed55b..89f3be0 100644
--- a/arch/alpha/boot/main.c
+++ b/arch/alpha/boot/main.c
@@ -132,7 +132,7 @@ static inline long load(long dev, unsigned long addr, 
unsigned long count)
        if (result)
                srm_printk("Boot file specification (%s) not implemented\n",
-       return callback_read(dev, count, addr, boot_size/512 + 1);
+       return callback_read(dev, count, (void *)addr, boot_size/512 + 1);
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

Reply via email to