]> git.baikalelectronics.ru Git - kernel.git/commit
initrd: cast `initrd_start' to `void *'
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 30 Jul 2008 05:33:36 +0000 (22:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Jul 2008 16:41:45 +0000 (09:41 -0700)
commit849a0ff1fb36fc2a20a429ac6814f8580158a502
treeb2334952d5e070042fab29715a4ef228d0cd96a2
parent95491ef5c5383922f6d28b4ea3b29477eb51e487
initrd: cast `initrd_start' to `void *'

commit 7f5b3b12f44e8ea42854a6b964c1f967b08b0dd3 (initrd: Fix virtual/physical
mix-up in overwrite test) introduced the compiler warning below on mips,
as its virt_to_page() doesn't cast the passed address to unsigned long
internally, unlike on most other architectures:

init/main.c: In function `start_kernel':
init/main.c:633: warning: passing argument 1 of `virt_to_phys' makes pointer from integer without a cast
init/main.c:636: warning: passing argument 1 of `virt_to_phys' makes pointer from integer without a cast

For now, kill the warning by explicitly casting initrd_start to `void *', as
that's the type it should really be.

Reported-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/main.c