Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] Hostfs: update for new glibc - add missing symbol exports

Today, when compiling UML, I got warnings for two used unexported symbols:
readdir64 and truncate64. Indeed, my glibc headers are aliasing readdir to
readdir64 and truncate to truncate64 (and so on).

I'm then adding additional exports. Since I've no idea if the symbols where
always provided in the supported glibc's, I've added weak definitions too.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Paolo 'Blaisorblade' Giarrusso and committed by
Linus Torvalds
74433c0f 30f04a4e

+5
+5
arch/um/os-Linux/user_syms.c
··· 34 34 int sym(void); \ 35 35 EXPORT_SYMBOL(sym); 36 36 37 + extern void readdir64(void) __attribute__((weak)); 38 + EXPORT_SYMBOL(readdir64); 39 + extern void truncate64(void) __attribute__((weak)); 40 + EXPORT_SYMBOL(truncate64); 41 + 37 42 #ifdef SUBARCH_i386 38 43 EXPORT_SYMBOL(vsyscall_ehdr); 39 44 EXPORT_SYMBOL(vsyscall_end);