summaryrefslogtreecommitdiffstats
path: root/include/linux/flat.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-06-13 03:08:54 -0400
committerGreg Ungerer <gerg@kernel.org>2019-06-23 19:16:46 -0400
commit3f8b76a66e0d49e3afaba595b9762c126448e783 (patch)
tree0d1bf5f06bff37e55a3ac7b78f5a99444211e397 /include/linux/flat.h
parent38e63483a31747ef8a964ba3f0184c1e5b507749 (diff)
binfmt_flat: consolidate two version of flat_v2_reloc_t
Two branches of the ifdef maze actually have the same content, so merge them. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Diffstat (limited to 'include/linux/flat.h')
-rw-r--r--include/linux/flat.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/flat.h b/include/linux/flat.h
index 2b7cda6e9c1b..19c586b74b99 100644
--- a/include/linux/flat.h
+++ b/include/linux/flat.h
@@ -69,15 +69,13 @@ struct flat_hdr {
69typedef union { 69typedef union {
70 unsigned long value; 70 unsigned long value;
71 struct { 71 struct {
72# if defined(mc68000) && !defined(CONFIG_COLDFIRE) 72#if defined(__LITTLE_ENDIAN_BITFIELD) || \
73 (defined(mc68000) && !defined(CONFIG_COLDFIRE))
73 signed long offset : 30; 74 signed long offset : 30;
74 unsigned long type : 2; 75 unsigned long type : 2;
75# elif defined(__BIG_ENDIAN_BITFIELD) 76# elif defined(__BIG_ENDIAN_BITFIELD)
76 unsigned long type : 2; 77 unsigned long type : 2;
77 signed long offset : 30; 78 signed long offset : 30;
78# elif defined(__LITTLE_ENDIAN_BITFIELD)
79 signed long offset : 30;
80 unsigned long type : 2;
81# else 79# else
82# error "Unknown bitfield order for flat files." 80# error "Unknown bitfield order for flat files."
83# endif 81# endif