aboutsummaryrefslogtreecommitdiff
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2020-11-27 21:04:53 +0100
committerArnd Bergmann <arnd@arndb.de>2020-11-27 21:04:53 +0100
commit718e43b5f850a8fb52933ac5ecf29f5eef48a349 (patch)
tree7b300d58e0c4c654c62e9d9873097ad0a860367d /include/linux/module.h
parent85ccf83e5c5b032dad0d3b162f3408a7fc32c0e7 (diff)
parent3cea11cd5e3b00d91caf0b4730194039b45c5891 (diff)
Backmerge tag 'v5.10-rc2' into arm/drivers
The SCMI pull request for the arm/drivers branch requires v5.10-rc2 because of dependencies with other git trees, so merge that in here. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 7ccdf87f376f..6264617bab4d 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -740,7 +740,7 @@ static inline bool within_module(unsigned long addr, const struct module *mod)
}
/* Get/put a kernel symbol (calls should be symmetric) */
-#define symbol_get(x) ({ extern typeof(x) x __attribute__((weak)); &(x); })
+#define symbol_get(x) ({ extern typeof(x) x __attribute__((weak,visibility("hidden"))); &(x); })
#define symbol_put(x) do { } while (0)
#define symbol_put_addr(x) do { } while (0)