X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tools%2Fmips-relocs.c;h=442cc8f6d2283968f4b147f5a19ccfbce833bffe;hb=a715415bb5948c84cc44c601b193188990f7238b;hp=b690fa53c4be7137c256be1667f28c0646b1932f;hpb=703ec9ddf965063cd79910df281657b056879368;p=u-boot diff --git a/tools/mips-relocs.c b/tools/mips-relocs.c index b690fa53c4..442cc8f6d2 100644 --- a/tools/mips-relocs.c +++ b/tools/mips-relocs.c @@ -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 #include #include #include #include +#include #include #include #include @@ -69,6 +70,11 @@ case 8: \ _val = is_be ? htobe64(val) : htole64(val); \ break; \ + default: \ + /* We should never reach here */ \ + _val = 0; \ + assert(0); \ + break; \ } \ \ if (is_64) \