Skip to content

Commit 9965a5d

Browse files
meelisroosLinus Torvalds
authored andcommitted
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 from 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 <mroos@linux.ee> Cc: Jay Estabrook <jay.estabrook@hp.com> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Richard Henderson <rth@twiddle.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 1b2becf commit 9965a5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/alpha/boot/main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static inline long load(long dev, unsigned long addr, unsigned long count)
132132
if (result)
133133
srm_printk("Boot file specification (%s) not implemented\n",
134134
bootfile);
135-
return callback_read(dev, count, addr, boot_size/512 + 1);
135+
return callback_read(dev, count, (void *)addr, boot_size/512 + 1);
136136
}
137137

138138
/*

0 commit comments

Comments
 (0)