[PATCH] abstract type/size specification for assembly

From: Jan Beulich
Date: Mon Jan 30 2006 - 04:10:34 EST


Andrew,

would you consider merging attached trivial patch to simplify specifying the size and, for functions, also the type in
assembly files?

Thanks, Jan
From: Jan Beulich <jbeulich@xxxxxxxxxx>

Provide abstraction for generating type and size information of
assembly routines and data.

Signed-Off-By: Jan Beulich <jbeulich@xxxxxxxxxx>

diff -Npru /home/jbeulich/tmp/linux-2.6.16-rc1/include/linux/linkage.h 2.6.16-rc1-end-endproc/include/linux/linkage.h
--- /home/jbeulich/tmp/linux-2.6.16-rc1/include/linux/linkage.h 2006-01-03 04:21:10.000000000 +0100
+++ 2.6.16-rc1-end-endproc/include/linux/linkage.h 2006-01-25 10:41:49.000000000 +0100
@@ -39,6 +39,11 @@
ALIGN; \
name:

+#define ENDPROC(name) \
+ .type name, @function; \
+ END(name)
+#define END(name) \
+ .size name, .-name

#endif