Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Christoph Hellwig and committed by
Greg Ungerer
02da2833 2f3196d4

+4 -6
-2
arch/arm/include/asm/flat.h
··· 30 30 #endif 31 31 } 32 32 33 - #define flat_get_relocate_addr(rel) (rel) 34 - 35 33 #endif /* __ARM_FLAT_H__ */
-1
arch/c6x/include/asm/flat.h
··· 17 17 put_unaligned(addr, (__force u32 *)rp); 18 18 return 0; 19 19 } 20 - #define flat_get_relocate_addr(rel) (rel) 21 20 22 21 #endif /* __ASM_C6X_FLAT_H */
-1
arch/m68k/include/asm/flat.h
··· 28 28 return put_user(addr, rp); 29 29 #endif 30 30 } 31 - #define flat_get_relocate_addr(rel) (rel) 32 31 33 32 #define FLAT_PLAT_INIT(regs) \ 34 33 do { \
-1
arch/sh/include/asm/flat.h
··· 24 24 put_unaligned(addr, (__force u32 *)rp); 25 25 return 0; 26 26 } 27 - #define flat_get_relocate_addr(rel) (rel) 28 27 29 28 #define FLAT_PLAT_INIT(_r) \ 30 29 do { _r->regs[0]=0; _r->regs[1]=0; _r->regs[2]=0; _r->regs[3]=0; \
-1
arch/xtensa/include/asm/flat.h
··· 17 17 put_unaligned(addr, (__force u32 *)rp); 18 18 return 0; 19 19 } 20 - #define flat_get_relocate_addr(rel) (rel) 21 20 22 21 #endif /* __ASM_XTENSA_FLAT_H */
+4
fs/binfmt_flat.c
··· 43 43 #include <asm/cacheflush.h> 44 44 #include <asm/page.h> 45 45 46 + #ifndef flat_get_relocate_addr 47 + #define flat_get_relocate_addr(rel) (rel) 48 + #endif 49 + 46 50 /****************************************************************************/ 47 51 48 52 /*