diff options
author | Johannes Berg <johannes.berg@intel.com> | 2023-02-12 20:32:04 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2023-04-20 22:57:00 +0200 |
commit | ce1831fe2febf7a3a03fda43b41d7589caa022cd (patch) | |
tree | 2ddaaeba64174861ffffb465f469bd31f7c8f80f /arch/um/os-Linux | |
parent | 7e364e56293bb98cae1b55fd835f5991c4e96e7d (diff) |
um: add __weak for exported functions
If the exported glibc functions don't exist, we get link
failures. Avoid that by adding __weak so they're allowed
to not exist.
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/os-Linux')
-rw-r--r-- | arch/um/os-Linux/user_syms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/os-Linux/user_syms.c b/arch/um/os-Linux/user_syms.c index fd575ecbcaec..54722c7f884f 100644 --- a/arch/um/os-Linux/user_syms.c +++ b/arch/um/os-Linux/user_syms.c @@ -39,7 +39,7 @@ EXPORT_SYMBOL(printf); * good; so the versions of these symbols will always match */ #define EXPORT_SYMBOL_PROTO(sym) \ - int sym(void); \ + int sym(void) __weak; \ EXPORT_SYMBOL(sym); extern void readdir64(void) __attribute__((weak)); |