sections.h: simplify LINUX_SECTION_ALIGNMENT()

This does not need to use __typeof__(), since we have
the name just refer to it directly. There are quite
a few users of this style in the kernel already as well,
example, one example: net/netfilter/xt_repldata.h

It doesn't seem worth generalizing this into
include/linux/compiler-gcc.h as we're providing all our
attributes in one shot.

Signed-off-by: Luis R. Rodriguez <>
diff --git a/include/linux/sections.h b/include/linux/sections.h
index 3274a97..1af8af1 100644
--- a/include/linux/sections.h
+++ b/include/linux/sections.h
@@ -23,7 +23,7 @@
-#define LINUX_SECTION_ALIGNMENT(name)	__alignof__(__typeof__(name[0]))
+#define LINUX_SECTION_ALIGNMENT(name)	__alignof__(*name)
 #define LINUX_SECTION_SIZE(name)	((name##__end) - (name))
 #define LINUX_SECTION_EMPTY(name)	(LINUX_RANGE_SIZE(name) == 0)
 #define LINUX_SECTION_START(name)	name