binfmt_flat: provide an asm-generic/flat.h
authorChristoph Hellwig <hch@lst.de>
Thu, 13 Jun 2019 07:08:59 +0000 (09:08 +0200)
committerGreg Ungerer <gerg@kernel.org>
Sun, 23 Jun 2019 23:16:47 +0000 (09:16 +1000)
commit7a8998c9d830b59626e049a827678ba444fcf8e2
treee49c18fba9af2e182f1675ebb8025dcbb1277da6
parentcf9a566c2c06ac34425c4faf6d32ac55ddbeea7a
binfmt_flat: provide an asm-generic/flat.h

This file implements the flat get/put reloc helpers for architectures
that do not need to overload the relocs by simply using get_user/put_user.

Note that many nommu architectures currently use {get,put}_unaligned, which
looks a little bogus and should probably later be switched over to this
version as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
arch/arm/include/asm/Kbuild
arch/arm/include/asm/flat.h [deleted file]
arch/m68k/include/asm/flat.h
include/asm-generic/flat.h [new file with mode: 0644]