summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-11-19 19:20:38 +0100
committerAlejandro Colomar <alx.manpages@gmail.com>2021-11-20 14:45:31 +0100
commit7ac3580d0d031c750d73cc3badf0266e1f15581d (patch)
tree55a586cf211c6dc140a84081e4ca68da84f06899
parent9ff567cbf6d3a430cd9533bd6cc92843c6e67a35 (diff)
fs/orangefs/: Don't redefine ARRAY_SIZE()
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r--fs/orangefs/orangefs-debug.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/orangefs/orangefs-debug.h b/fs/orangefs/orangefs-debug.h
index 6e079d4230d0..14c6da456655 100644
--- a/fs/orangefs/orangefs-debug.h
+++ b/fs/orangefs/orangefs-debug.h
@@ -13,14 +13,16 @@
#ifndef __ORANGEFS_DEBUG_H
#define __ORANGEFS_DEBUG_H
+
+#include <linux/array_size.h>
#ifdef __KERNEL__
#include <linux/types.h>
#include <linux/kernel.h>
#else
#include <stdint.h>
-#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
#endif
+
#define GOSSIP_NO_DEBUG (__u64)0
#define GOSSIP_SUPER_DEBUG ((__u64)1 << 0)