summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-11-19 19:21:32 +0100
committerAlejandro Colomar <alx.manpages@gmail.com>2021-11-20 14:45:31 +0100
commitb5ffd6f335d2be07ae3941d9a363bc3cf9f97ec5 (patch)
tree702ad1f3c3104d5eef5ee1e94bc8c74974817b3a
parentf5acf6fd58b11b3042aa483c4c7e1db1c9493b81 (diff)
arch/powerpc/: Don't redefine ARRAY_SIZE()
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r--arch/powerpc/boot/types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/boot/types.h b/arch/powerpc/boot/types.h
index 8a4c418b7260..1e14a8eff358 100644
--- a/arch/powerpc/boot/types.h
+++ b/arch/powerpc/boot/types.h
@@ -2,9 +2,10 @@
#ifndef _TYPES_H_
#define _TYPES_H_
+
+#include <linux/array_size.h>
#include <stdbool.h>
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
typedef unsigned char u8;
typedef unsigned short u16;