Skip to content

Commit 3195201

Browse files
andy-shevIngo Molnar
authored andcommitted
x86/io: Include asm-generic/io.h to architectural code
asm-generic/io.h defines few helpers which would be useful in the drivers, such as writesb() and readsb(). Include it to the asm/io.h in architectural folder. Signed-off-by: Andy Shevchenko <[email protected]> Acked-by: Wolfram Sang <[email protected]> Cc: Baolin Wang <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Mika Westerberg <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 80b9ece commit 3195201

File tree

1 file changed

+3
-0
lines changed
  • arch/x86/include/asm

1 file changed

+3
-0
lines changed

arch/x86/include/asm/io.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,9 @@ extern bool xen_biovec_phys_mergeable(const struct bio_vec *vec1,
406406

407407
#define IO_SPACE_LIMIT 0xffff
408408

409+
#include <asm-generic/io.h>
410+
#undef PCI_IOBASE
411+
409412
#ifdef CONFIG_MTRR
410413
extern int __must_check arch_phys_wc_index(int handle);
411414
#define arch_phys_wc_index arch_phys_wc_index

0 commit comments

Comments
 (0)