summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_flat.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-06-13 09:08:49 +0200
committerGreg Ungerer <gerg@kernel.org>2019-06-24 01:16:46 +0200
commit02da283302f7e723a6cef3ea296fbb2313dde992 (patch)
tree0b3d145699733651a60365373134659c74f15c15 /fs/binfmt_flat.c
parentbinfmt_flat: remove flat_set_persistent (diff)
downloadlinux-02da283302f7e723a6cef3ea296fbb2313dde992.tar.xz
linux-02da283302f7e723a6cef3ea296fbb2313dde992.zip
binfmt_flat: provide a default version of flat_get_relocate_addr
This way only the two architectures that do masking need to provide the helper. 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>
Diffstat (limited to 'fs/binfmt_flat.c')
-rw-r--r--fs/binfmt_flat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c
index a4c0b245ab1f..c0e4535dc1ec 100644
--- a/fs/binfmt_flat.c
+++ b/fs/binfmt_flat.c
@@ -43,6 +43,10 @@
#include <asm/cacheflush.h>
#include <asm/page.h>
+#ifndef flat_get_relocate_addr
+#define flat_get_relocate_addr(rel) (rel)
+#endif
+
/****************************************************************************/
/*