Skip to content

Commit

Permalink
include/linux/compiler-gcc.h: improve __visible documentation
Browse files Browse the repository at this point in the history
Cc: Andi Kleen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
akpm00 authored and torvalds committed Nov 7, 2015
1 parent 54708d2 commit 9add850
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/linux/compiler-gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9add850

Please sign in to comment.