summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-11-19 19:49:14 +0100
committerAlejandro Colomar <alx.manpages@gmail.com>2021-11-20 14:45:32 +0100
commitdab0e175d72711f1155da8908f28e7078710da49 (patch)
tree04f9e6b2f289f91593e7c82e12865fe6b2b5c150
parenta7457639b307972bf2871c4b7db0e762bc2c88e6 (diff)
tools/firewire/: Don't redefine ARRAY_SIZE()
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r--tools/firewire/nosy-dump.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/firewire/nosy-dump.h b/tools/firewire/nosy-dump.h
index 69e5e594f284..62253329a021 100644
--- a/tools/firewire/nosy-dump.h
+++ b/tools/firewire/nosy-dump.h
@@ -2,7 +2,11 @@
#ifndef __nosy_dump_h__
#define __nosy_dump_h__
-#define array_length(array) (sizeof(array) / sizeof(array[0]))
+
+#include <linux/array_size.h>
+
+
+#define array_length(a) ARRAY_SIZE(a)
#define ACK_NO_ACK 0x0
#define ACK_DONE(a) ((a >> 2) == 0)