* [PATCH] fix alpha boot/main.c warning
@ 2007-07-28 17:34 Meelis Roos
0 siblings, 0 replies; only message in thread
From: Meelis Roos @ 2007-07-28 17:34 UTC (permalink / raw)
To: Linux Kernel list, Jay Estabrook, Ivan Kokshaysky, Richard Henderson
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>
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",
bootfile);
- return callback_read(dev, count, addr, boot_size/512 + 1);
+ return callback_read(dev, count, (void *)addr, boot_size/512 + 1);
}
/*
--
Meelis Roos (mroos@linux.ee)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-28 17:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-28 17:34 [PATCH] fix alpha boot/main.c warning Meelis Roos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®