diff options
| author | Andrew Morton <akpm@linux-foundation.org> | 2015-11-06 16:30:09 -0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-12-18 17:22:00 +0100 |
| commit | 4990450de21a2978b112f5364cbed9d2559df5a9 (patch) | |
| tree | 1d9c2871d15979b9678db44cbfb2d653a081a07d /include/linux | |
| parent | a088cb6a75b148145aedd4360c95f77735252f4d (diff) | |
include/linux/compiler-gcc.h: improve __visible documentation
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/compiler-gcc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index fb9a6490d..3b2196bd8 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -183,7 +183,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 |
