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:
Jürgen Buchmüller 2019-06-29 15:12:25 +02:00
parent a6fa9fa7b8
commit a5c0d96149
No known key found for this signature in database
GPG key ID: DE55AD8DBEBB4EE8

View 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