lto: Make asmlinkage __visible
authorAndi Kleen <ak@linux.intel.com>
Sat, 8 Feb 2014 08:01:07 +0000 (09:01 +0100)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 14 Feb 2014 04:21:59 +0000 (20:21 -0800)
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391846481-31491-3-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
include/linux/linkage.h

index a6a42dd024661324dbeed5b9cfaa028744bae154..34a513a2727bbe83adff047613a1ad3458684ac2 100644 (file)
@@ -12,9 +12,9 @@
 #endif
 
 #ifdef __cplusplus
-#define CPP_ASMLINKAGE extern "C"
+#define CPP_ASMLINKAGE extern "C" __visible
 #else
-#define CPP_ASMLINKAGE
+#define CPP_ASMLINKAGE __visible
 #endif
 
 #ifndef asmlinkage