]> git.sur5r.net Git - u-boot/blobdiff - tools/mips-relocs.c
Merge branch 'master' of git://git.denx.de/u-boot-usb
[u-boot] / tools / mips-relocs.c
index b690fa53c4be7137c256be1667f28c0646b1932f..442cc8f6d2283968f4b147f5a19ccfbce833bffe 100644 (file)
@@ -1,15 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * MIPS Relocation Data Generator
  *
  * Copyright (c) 2017 Imagination Technologies Ltd.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
+#include <assert.h>
 #include <elf.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <limits.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/mman.h>
        case 8:                                                 \
                _val = is_be ? htobe64(val) : htole64(val);     \
                break;                                          \
+       default:                                                \
+               /* We should never reach here */                \
+               _val = 0;                                       \
+               assert(0);                                      \
+               break;                                          \
        }                                                       \
                                                                \
        if (is_64)                                              \