binfmt_flat: remove the uapi <linux/flat.h> header
authorChristoph Hellwig <hch@lst.de>
Thu, 13 Jun 2019 07:08:52 +0000 (09:08 +0200)
committerGreg Ungerer <gerg@kernel.org>
Sun, 23 Jun 2019 23:16:46 +0000 (09:16 +1000)
commit06d2bfedd147d26af6908e4202466586133e73a7
tree159e287803d69311243279f996f3fb6c06f564cc
parentbdd15a288492f2f496a904c69c4b332057ae2ef6
binfmt_flat: remove the uapi <linux/flat.h> header

The split between the two flat.h files is completely arbitrary, and the
uapi version even contains CONFIG_ ifdefs that can't work in userspace.
The only userspace program known to use the header is elf2flt, and it
ships with its own version of the combined header.

Use the chance to move the <asm/flat.h> inclusion out of this file, as it
is in no way needed for the format defintion, but just for the binfmt
implementation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Vladimir Murzin <vladimir.murzin@arm.com>
Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
fs/binfmt_flat.c
include/linux/flat.h
include/uapi/linux/flat.h [deleted file]