Skip to contentSkip to conversation

x86: ksysfs.c build fix

PATCH New Dave Young 1 participant 1 message Jan 3, 2014

Subsystems (3)
lore
Share & tools
lore

Dave Young

author
#0 lore raw

PATCH 1/1 x86: ksysfs.c build fix

kbuild test robot report below error for randconfig:

arch/x86/kernel/ksysfs.c: In function 'get_setup_data_paddr':

Quoted 1 line
Quoted 1 line

arch/x86/kernel/ksysfs.c:81:3: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]

      data = ioremap_cache(pa_data, sizeof(*data));
      ^
Quoted 1 line
Quoted 1 line

arch/x86/kernel/ksysfs.c:86:3: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]

      iounmap(data);
      ^

Fix it by including <asm/io.h> in ksysfs.c

---
 arch/x86/kernel/ksysfs.c |    1 +
 1 file changed, 1 insertion(+)
arch/x86/kernel/ksysfs.c +1 -0
Index: linux/arch/x86/kernel/ksysfs.c
===================================================================
@@ -16,6 +16,7 @@
 #include <linux/stat.h>
 #include <linux/slab.h>
 #include <linux/mm.h>
+#include <asm/io.h>
 
 #include <asm/setup.h>
 

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec