diff options
author | Johannes Berg <johannes.berg@intel.com> | 2020-02-21 09:56:12 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2020-03-21 15:31:20 +0100 |
commit | f5a03ac353fb6d5f6ab1fab547e90e5822ff96f9 (patch) | |
tree | 0b1f034d2385c3b2f768996db8f57eba3cab511b | |
parent | 1366e05947113c52b587510e5b3e41c7c1ac029a (diff) |
backports: suppress attribute((cold)) warnings with gcc 9
Upstream commit eea7eb88324405d9ed90ff0b430d631f5f25b0e0
Since my last system upgrade I started building with gcc 9,
and that complains that a function is cold when the one we
create locally here isn't - mark it as cold always, I don't
think it would complain the other way around.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | backport/backport-include/linux/module.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backport/backport-include/linux/module.h b/backport/backport-include/linux/module.h index 1a2c82f4..675d8d77 100644 --- a/backport/backport-include/linux/module.h +++ b/backport/backport-include/linux/module.h @@ -33,7 +33,7 @@ extern void backport_dependency_symbol(void); backport_dependency_symbol(); \ return initfn(); \ } \ - int init_module(void) __attribute__((alias("__init_backport")));\ + int init_module(void) __attribute__((cold,alias("__init_backport")));\ BACKPORT_MOD_VERSIONS /* @@ -58,7 +58,7 @@ extern void backport_dependency_symbol(void); exitfn(); \ rcu_barrier(); \ } \ - void cleanup_module(void) __attribute__((alias("__exit_compat"))); + void cleanup_module(void) __attribute__((cold,alias("__exit_compat"))); #endif #if LINUX_VERSION_IS_LESS(3,3,0) |