Skip to content

Commit

Permalink
um: kernel: ksyms: Export symbol syscall() for fixing modpost issue
Browse files Browse the repository at this point in the history
syscall() is implemented in libc.so/a (e.g. for glibc, in "syscall.o"),
so for normal ".o" files, it is undefined, neither can be found within
kernel wide, so will break modpost.

Since ".o" files is OK, can simply export 'syscall' symbol, let modpost
know about that, then can fix this issue.

The related error (with allmodconfig under um):

    MODPOST 1205 modules
  ERROR: "syscall" [fs/hostfs/hostfs.ko] undefined!

Signed-off-by: Chen Gang <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
  • Loading branch information
Chen-Gang authored and richardweinberger committed May 31, 2015
1 parent 5f32943 commit a791b15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/um/kernel/ksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ EXPORT_SYMBOL(os_makedev);
EXPORT_SYMBOL(add_sigio_fd);
EXPORT_SYMBOL(ignore_sigio_fd);
EXPORT_SYMBOL(sigio_broken);

extern long int syscall (long int __sysno, ...);
EXPORT_SYMBOL(syscall);

0 comments on commit a791b15

Please sign in to comment.