summaryrefslogtreecommitdiffstats
path: root/scripts/include/linux/kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/include/linux/kernel.h')
-rw-r--r--scripts/include/linux/kernel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/include/linux/kernel.h b/scripts/include/linux/kernel.h
index dc2e64e164..f3083ff354 100644
--- a/scripts/include/linux/kernel.h
+++ b/scripts/include/linux/kernel.h
@@ -9,6 +9,7 @@
#define __ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask))
#define ALIGN(x, a) __ALIGN_MASK(x, (typeof(x))(a) - 1)
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+#define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x)
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))