From: Karel Zak Date: Mon, 16 Jul 2012 16:43:53 +0000 (+0200) Subject: hwclock: fix compiler warning [-Wmissing-prototypes] X-Git-Tag: v2.22-rc1~139 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93f90e13326d86e4600c7f885e7e83fb8a7719af;p=thirdparty%2Futil-linux.git hwclock: fix compiler warning [-Wmissing-prototypes] Signed-off-by: Karel Zak --- diff --git a/sys-utils/hwclock-cmos.c b/sys-utils/hwclock-cmos.c index 85452b5c24..61a15a3fb2 100644 --- a/sys-utils/hwclock-cmos.c +++ b/sys-utils/hwclock-cmos.c @@ -82,12 +82,12 @@ int inb(int c __attribute__ ((__unused__))) extern unsigned int inb(unsigned long port); extern void outb(unsigned char b, unsigned long port); #else -void outb(int a __attribute__ ((__unused__)), +static void outb(int a __attribute__ ((__unused__)), int b __attribute__ ((__unused__))) { } -int inb(int c __attribute__ ((__unused__))) +static int inb(int c __attribute__ ((__unused__))) { return 0; } diff --git a/sys-utils/hwclock-kd.c b/sys-utils/hwclock-kd.c index ec98f45ba5..bfe50dc15f 100644 --- a/sys-utils/hwclock-kd.c +++ b/sys-utils/hwclock-kd.c @@ -2,6 +2,7 @@ * kd.c - KDGHWCLK stuff, possibly m68k only, likely to be deprecated */ +# include "hwclock.h" #ifdef __m68k__ @@ -13,8 +14,6 @@ # include "nls.h" # include "usleep.h" -# include "hwclock.h" - /* Get defines for KDGHWCLK and KDSHWCLK (m68k) */ # include