diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-11 02:50:05 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-11 02:50:05 -0500 |
| commit | 73cf7e111ed69d8e1b59a3ae41b14bc77215e9ee (patch) | |
| tree | 02cd3308d328bce9cf97bf2c1c9d5e932103ebfe /include/linux/libgcc.h | |
| parent | 328257099077e8affd438c179d8a938948de2e7f (diff) | |
| parent | 50c4c4e268a2d7a3e58ebb698ac74da0de40ae36 (diff) | |
Merge 4.15-rc3 into driver-core-next
We want the fixes and changes in here for testing.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/libgcc.h')
| -rw-r--r-- | include/linux/libgcc.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/include/linux/libgcc.h b/include/linux/libgcc.h new file mode 100644 index 000000000000..32e1e0f4b2d0 --- /dev/null +++ b/include/linux/libgcc.h | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | /* | ||
| 2 | * include/lib/libgcc.h | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program; if not, see the file COPYING, or write | ||
| 16 | * to the Free Software Foundation, Inc. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #ifndef __LIB_LIBGCC_H | ||
| 20 | #define __LIB_LIBGCC_H | ||
| 21 | |||
| 22 | #include <asm/byteorder.h> | ||
| 23 | |||
| 24 | typedef int word_type __attribute__ ((mode (__word__))); | ||
| 25 | |||
| 26 | #ifdef __BIG_ENDIAN | ||
| 27 | struct DWstruct { | ||
| 28 | int high, low; | ||
| 29 | }; | ||
| 30 | #elif defined(__LITTLE_ENDIAN) | ||
| 31 | struct DWstruct { | ||
| 32 | int low, high; | ||
| 33 | }; | ||
| 34 | #else | ||
| 35 | #error I feel sick. | ||
| 36 | #endif | ||
| 37 | |||
| 38 | typedef union { | ||
| 39 | struct DWstruct s; | ||
| 40 | long long ll; | ||
| 41 | } DWunion; | ||
| 42 | |||
| 43 | #endif /* __ASM_LIBGCC_H */ | ||
