From: Randy Dunlap I see MODPOST warnings for all modules in some (random) configs; e.g.: (This is a short list; I see >100 of these.) WARNING: "do_check_likely" [net/sched/cls_basic.ko] undefined! WARNING: "do_check_likely" [net/netfilter/x_tables.ko] undefined! WARNING: "do_check_likely" [net/key/af_key.ko] undefined! WARNING: "do_check_likely" [kernel/rcutorture.ko] undefined! WARNING: "do_check_likely" [fs/xfs/xfs.ko] undefined! WARNING: "do_check_likely" [fs/sysv/sysv.ko] undefined! WARNING: "do_check_likely" [fs/reiserfs/reiserfs.ko] undefined! WARNING: "do_check_likely" [fs/ntfs/ntfs.ko] undefined! WARNING: "do_check_likely" [fs/minix/minix.ko] undefined! Signed-off-by: Randy Dunlap Cc: Daniel Walker Cc: Hua Zhong Signed-off-by: Andrew Morton --- lib/likely_prof.c | 2 ++ 1 files changed, 2 insertions(+) diff -puN lib/likely_prof.c~profile_likely-export-do_check_likely lib/likely_prof.c --- a/lib/likely_prof.c~profile_likely-export-do_check_likely +++ a/lib/likely_prof.c @@ -10,6 +10,7 @@ */ #include +#include #include #include #include @@ -50,6 +51,7 @@ int do_check_likely(struct likeliness *l return ret; } +EXPORT_SYMBOL(do_check_likely); static void * lp_seq_start(struct seq_file *out, loff_t *pos) { _