diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-11-19 19:18:12 +0100 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2021-11-20 17:04:53 +0100 |
commit | 0600e770de700023d120846f677808cb3bdd4792 (patch) | |
tree | 0c25e97e46cc7d4490f14602f32c699a701c5029 | |
parent | 48bce197a5eeed11275fcd7d53f7df17cd4daa9e (diff) |
scripts/mod/: Don't redefine ARRAY_SIZE()
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r-- | scripts/mod/file2alias.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 49aba862073e..beef3cb65a57 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c @@ -10,6 +10,7 @@ * of the GNU General Public License, incorporated herein by reference. */ + #include "modpost.h" #include "devicetable-offsets.h" @@ -31,6 +32,9 @@ typedef Elf64_Addr kernel_ulong_t; #include <ctype.h> #include <stdbool.h> +#include <linux/array_size.h> + + typedef uint32_t __u32; typedef uint16_t __u16; typedef unsigned char __u8; @@ -723,8 +727,6 @@ static int do_vio_entry(const char *filename, void *symval, return 1; } -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) - static void do_input(char *alias, kernel_ulong_t *arr, unsigned int min, unsigned int max) { |