linux4.4: add patch to reduce gcc-9.1.0 warnings
For the next update unless upstream fixes it. Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
a6fa9fa7b8
commit
a5c0d96149
1 changed files with 18 additions and 0 deletions
18
srcpkgs/linux4.4/patches/gcc9.patch
Normal file
18
srcpkgs/linux4.4/patches/gcc9.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
--- include/linux/module.h 2019-06-27 02:13:33.000000000 +0200
|
||||
+++ include/linux/module.h 2019-06-29 15:05:26.469682800 +0200
|
||||
@@ -127,13 +127,13 @@
|
||||
#define module_init(initfn) \
|
||||
static inline initcall_t __maybe_unused __inittest(void) \
|
||||
{ return initfn; } \
|
||||
- int init_module(void) __attribute__((alias(#initfn)));
|
||||
+ int init_module(void) __attribute((__copy__(initfn))) __attribute__((alias(#initfn)));
|
||||
|
||||
/* This is only required if you want to be unloadable. */
|
||||
#define module_exit(exitfn) \
|
||||
static inline exitcall_t __maybe_unused __exittest(void) \
|
||||
{ return exitfn; } \
|
||||
- void cleanup_module(void) __attribute__((alias(#exitfn)));
|
||||
+ void cleanup_module(void) __attribute((__copy__(exitfn))) __attribute__((alias(#exitfn)));
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in a new issue