diff options
| author | mydongistiny <jaysonedson@gmail.com> | 2015-11-23 17:01:42 -0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2018-11-29 12:38:19 +0100 |
| commit | ff505baaf412985af758d5820cd620ed9f1a7e05 (patch) | |
| tree | 6486963ab0ffa407e1d67cbd539a968c7ab1c615 /include/linux | |
| parent | 3d29fcecea03b179e8a07cd7f025402aa344f12e (diff) | |
GCC: Fix up for gcc 5+
Signed-off-by: mydongistiny <jaysonedson@gmail.com>
Signed-off-by: Mister Oyster <oysterized@gmail.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/compiler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index a1df48993..9974e409e 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -3,6 +3,9 @@ #ifndef __ASSEMBLY__ +/* Make the optimizer believe the variable can be manipulated arbitrarily. */ +#define OPTIMIZER_HIDE_VAR(var) __asm__ ("" : "=r" (var) : "0" (var)) + #ifdef __CHECKER__ # define __user __attribute__((noderef, address_space(1))) # define __kernel __attribute__((address_space(0))) |
