[PATCH] Fix implicit declaration of inb/outb

Bernhard Walle bwalle at suse.de
Mon Jun 2 19:20:06 EDT 2008

This patch fixes following compiler warning:

    purgatory/arch/i386/console-x86.c:84: \
        warning: implicit declaration of function `outb'
    purgatory/arch/i386/console-x86.c:89: \
        warning: implicit declaration of function `inb'

Found on x86_64. The problem did not happen with i386.
Fix tested on x86_64-suse-linux and i586-suse-linux.

Signed-off-by: Bernhard Walle <bwalle at suse.de>
 purgatory/arch/i386/console-x86.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/purgatory/arch/i386/console-x86.c b/purgatory/arch/i386/console-x86.c
index 9773573..68f5daf 100644
--- a/purgatory/arch/i386/console-x86.c
+++ b/purgatory/arch/i386/console-x86.c
@@ -1,5 +1,5 @@
 #include <stdint.h>
-#include <arch/io.h>
+#include <sys/io.h>
 #include <purgatory.h>

More information about the kexec mailing list