]> git.baikalelectronics.ru Git - kernel.git/commit
s390: move dummy io_remap_pfn_range() to asm/pgtable.h
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Apr 2013 15:46:19 +0000 (08:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Apr 2013 15:46:19 +0000 (08:46 -0700)
commitd755181f7386b7d4dd9353a503e9176baac99bc1
treee3db7f25b417c3cc50f316166f072215f939e895
parent3a9426203c5fc16f120b51bc798a96e20cacd136
s390: move dummy io_remap_pfn_range() to asm/pgtable.h

Commit 2c9d6bdafa93 ("vm: add vm_iomap_memory() helper function") added
a helper function wrapper around io_remap_pfn_range(), and every other
architecture defined it in <asm/pgtable.h>.

The s390 choice of <asm/io.h> may make sense, but is not very convenient
for this case, and gratuitous differences like that cause unexpected errors like this:

   mm/memory.c: In function 'vm_iomap_memory':
   mm/memory.c:2439:2: error: implicit declaration of function 'io_remap_pfn_range' [-Werror=implicit-function-declaration]

Glory be the kbuild test robot who noticed this, bisected it, and
reported it to the guilty parties (ie me).

Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/s390/include/asm/io.h
arch/s390/include/asm/pgtable.h