From a5c0d9614921e6933543f17484d7da33b5f3a3e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sat, 29 Jun 2019 15:12:25 +0200 Subject: [PATCH] linux4.4: add patch to reduce gcc-9.1.0 warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For the next update unless upstream fixes it. Signed-off-by: Jürgen Buchmüller --- srcpkgs/linux4.4/patches/gcc9.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/linux4.4/patches/gcc9.patch diff --git a/srcpkgs/linux4.4/patches/gcc9.patch b/srcpkgs/linux4.4/patches/gcc9.patch new file mode 100644 index 00000000000..e367f0c0347 --- /dev/null +++ b/srcpkgs/linux4.4/patches/gcc9.patch @@ -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 +