diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-11-19 19:21:44 +0100 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2021-11-20 14:45:31 +0100 |
commit | f5acf6fd58b11b3042aa483c4c7e1db1c9493b81 (patch) | |
tree | 97c655e06521fbad74d64b547de41bf30984ea51 | |
parent | 78347d718990ddca695832bd25f8be709a5bb93a (diff) |
arch/mips/: Don't redefine ARRAY_SIZE()
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r-- | arch/mips/boot/tools/relocs.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/boot/tools/relocs.h b/arch/mips/boot/tools/relocs.h index 607ff0103064..672dc45e03a4 100644 --- a/arch/mips/boot/tools/relocs.h +++ b/arch/mips/boot/tools/relocs.h @@ -2,6 +2,8 @@ #ifndef RELOCS_H #define RELOCS_H + +#include <linux/array_size.h> #include <stdio.h> #include <stdarg.h> #include <stdlib.h> @@ -16,6 +18,7 @@ #include <endian.h> #include <regex.h> + void die(char *fmt, ...); /* @@ -29,8 +32,6 @@ void die(char *fmt, ...); #define R_MIPS_PC26_S2 61 #endif -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) - enum symtype { S_ABS, S_REL, |