powerpc: define FUNC_START/FUNC_END
authorAnton Blanchard <anton@samba.org>
Thu, 30 Jun 2016 22:19:44 +0000 (08:19 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 5 Jul 2016 15:05:16 +0000 (23:05 +0800)
gcc provides FUNC_START/FUNC_END macros to help with creating
assembly functions. Mirror these in the kernel so we can more easily
share code between userspace and the kernel. FUNC_END is just a
stub since we don't currently annotate the end of kernel functions.

It might make sense to do a wholesale search and replace, but for
now just create a couple of defines.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/powerpc/include/asm/ppc_asm.h

index 2b31632..051af61 100644 (file)
@@ -286,6 +286,9 @@ n:
 
 #endif
 
+#define FUNC_START(name)       _GLOBAL(name)
+#define FUNC_END(name)
+
 /* 
  * LOAD_REG_IMMEDIATE(rn, expr)
  *   Loads the value of the constant expression 'expr' into register 'rn'