diff options
author | Andreas Henriksson | 2015-08-21 16:13:29 +0200 |
---|---|---|
committer | Karel Zak | 2015-08-24 10:55:44 +0200 |
commit | 3baf5ac739aa2710d68c1567ff80d5d93cc4812d (patch) | |
tree | 72dd94924cc2c3ded99dc19dd3b3bf90ae1ea054 /sys-utils/hwclock-cmos.c | |
parent | hwclock: fix fgets unchecked return value warning on alpha (diff) | |
download | kernel-qcow2-util-linux-3baf5ac739aa2710d68c1567ff80d5d93cc4812d.tar.gz kernel-qcow2-util-linux-3baf5ac739aa2710d68c1567ff80d5d93cc4812d.tar.xz kernel-qcow2-util-linux-3baf5ac739aa2710d68c1567ff80d5d93cc4812d.zip |
hwclock: fix iopl implicit declaration warning on alpha
Build warning:
sys-utils/hwclock-cmos.c: In function 'i386_iopl':
sys-utils/hwclock-cmos.c:611:9: warning: implicit declaration of function 'iopl' [-Wimplicit-function-declaration]
return iopl(level);
^
sys-utils/hwclock-cmos.c:611:2: warning: nested extern declaration of 'iopl' [-Wnested-externs]
return iopl(level);
^
Also:
checking sys/io.h usability... yes
checking sys/io.h presence... yes
checking for sys/io.h... yes
Full build log:
https://buildd.debian.org/status/fetch.php?pkg=util-linux&arch=alpha&ver=2.26.2-9&stamp=1440078034
Detected by/via:
https://qa.debian.org/bls/packages/u/util-linux.html
Please note that this has never been (build-)tested, but should hopefully
resolve the warning.
Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Diffstat (limited to 'sys-utils/hwclock-cmos.c')
-rw-r--r-- | sys-utils/hwclock-cmos.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys-utils/hwclock-cmos.c b/sys-utils/hwclock-cmos.c index de678ab9e..7f564e70e 100644 --- a/sys-utils/hwclock-cmos.c +++ b/sys-utils/hwclock-cmos.c @@ -79,9 +79,14 @@ int inb(int c __attribute__ ((__unused__))) #endif /* __i386__ __x86_64__ */ #elif defined(__alpha__) +# ifdef HAVE_SYS_IO_H +# include <sys/io.h> +# else /* <asm/io.h> fails to compile, probably because of u8 etc */ extern unsigned int inb(unsigned long port); extern void outb(unsigned char b, unsigned long port); +extern int iopl(int level); +# endif #else static void outb(int a __attribute__ ((__unused__)), int b __attribute__ ((__unused__))) |