• Meelis Roos's avatar
    alpha: fix mkbb compilation warnings · aeb3f462
    Meelis Roos authored
    In current 2.6.23-rc1+git, make bootimage gives the following warnings while
    compiling mkbb.c.  The patch below fixes these warnings by using the proper
    include for exit() and using appropriate printf format.
    
      HOSTCC  arch/alpha/boot/tools/mkbb
    arch/alpha/boot/tools/mkbb.c: In function 'main':
    arch/alpha/boot/tools/mkbb.c:95: warning: implicit declaration of function 'exit'
    arch/alpha/boot/tools/mkbb.c:95: warning: incompatible implicit declaration of built-in function 'exit'
    arch/alpha/boot/tools/mkbb.c:102: warning: incompatible implicit declaration of built-in function 'exit'
    arch/alpha/boot/tools/mkbb.c:110: warning: incompatible implicit declaration of built-in function 'exit'
    arch/alpha/boot/tools/mkbb.c:117: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
    arch/alpha/boot/tools/mkbb.c:118: warning: incompatible implicit declaration of built-in function 'exit'
    arch/alpha/boot/tools/mkbb.c:125: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
    arch/alpha/boot/tools/mkbb.c:126: warning: incompatible implicit declaration of built-in function 'exit'
    arch/alpha/boot/tools/mkbb.c:143: warning: incompatible implicit declaration of built-in function 'exit'
    arch/alpha/boot/tools/mkbb.c:148: warning: incompatible implicit declaration of built-in function 'exit'
    Signed-off-by: default avatarMeelis 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: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    aeb3f462
mkbb.c 3.48 KB