[PATCH 03/14] kernel.h: ARRAY_SIZE neatening

From: Joe Perches
Date: Wed Dec 16 2009 - 03:10:40 EST


Make < 80 column, use array as name

Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
---
include/linux/kernel.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 2cc6d70..9206268 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -39,7 +39,8 @@
#define PTR_ALIGN(p, a) ((typeof(p))ALIGN((unsigned long)(p), (a)))
#define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0)

-#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
+#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]) + \
+ __must_be_array(array))
#define FIELD_SIZEOF(t, f) (sizeof(((t *)0)->f))

#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
--
1.6.6.rc0.57.gad7a

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/