diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2019-06-04 18:37:17 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2019-06-04 18:37:53 +0200 |
commit | 433228dd5f06cd483db983fed04388f3486c111b (patch) | |
tree | 5dff3600aa45cf8b293b531231e108657c700b4f /include | |
parent | 3ca57473f904d6ff7c876fffb91cd08fa8c9e33f (diff) |
Compiler Attributes: Fix: add support for __copy (gcc >= 9)
For not gcc >= 9 compilers the fix for gcc9 introduced compiler errors.
| ./include/linux/module.h:131:6: error: ‘init_module’ declared as function returning a function
| int init_module(void) __copy(initfn) __attribute__((alias(#initfn)));
Fixes backport 865ca1d1e
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/compiler_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index ffe05e988c67..554a78ef2d39 100644 --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h @@ -219,7 +219,7 @@ struct ftrace_likely_data { #endif #ifndef __copy -# define __copy +# define __copy(symbol) #endif #ifndef __randomize_layout |