The series brings a bit of order to arch/x86/include/asm/io.h by re-using definitions in the generic header. The series has been tested on Intel Broxton hardware in 32- and 64-bit modes. Since v2: - add cleanup patches in accordance to re-use what's defined in generic header - split to few patches - hopefully nail down an issue kbuild bot complained about - append tags (Wolfram) Andy Shevchenko (5): x86/io: Define IO accessors by preprocessor x86/io: Include asm-generic/io.h to architectural code x86/io: Remove mem*io() duplications x86/io: Remove xlate_dev_kmem_ptr() duplication x86/io: Make readq() / writeq() API consistent arch/x86/include/asm/io.h | 98 +++++++++++++++++++++++------------------------ include/asm-generic/io.h | 27 +++++++++++++ 2 files changed, 74 insertions(+), 51 deletions(-) -- 2.11.0