Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9add850c authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

include/linux/compiler-gcc.h: improve __visible documentation



Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 54708d28
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -205,7 +205,10 @@

#if GCC_VERSION >= 40600
/*
 * Tell the optimizer that something else uses this function or variable.
 * When used with Link Time Optimization, gcc can optimize away C functions or
 * variables which are referenced only from assembly code.  __visible tells the
 * optimizer that something else uses this function or variable, thus preventing
 * this.
 */
#define __visible	__attribute__((externally_visible))
#endif