Gilles Chanteperdrix wrote:
> Sebastian Smolorz wrote:
> > Hi Philippe,
> >
> > with latest head it is not possible to build the POSIX skin as module.
> > It gives:
> >
> > ERROR: "xnarch_divrem_billion"
> > [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!
> >
> > Obviously an
> >
> > EXPORT_SYMBOL(xnarch_divrem_billion);
> >
> > is missing.
>
> Well, no. The definition of xnarh_divrem_billion is in the timeconv.h
> header, which should be included in places where this function is
> needed. So, what is missing is probably a #include.

Hm, I don't think so. The error only appears when building the POSIX skin as 
module. The attached patch fixes the problem.

-- 
Sebastian

diff --git a/include/asm-generic/bits/timeconv.h b/include/asm-generic/bits/timeconv.h
index 7d823f7..79060b3 100644
--- a/include/asm-generic/bits/timeconv.h
+++ b/include/asm-generic/bits/timeconv.h
@@ -93,6 +93,7 @@ static inline void xnarch_init_timeconv(unsigned long long freq)
 #ifdef __KERNEL__
 EXPORT_SYMBOL(xnarch_tsc_to_ns);
 EXPORT_SYMBOL(xnarch_ns_to_tsc);
+EXPORT_SYMBOL(xnarch_divrem_billion);
 #endif /* __KERNEL__ */
 
 #endif /* !_XENO_ASM_GENERIC_BITS_TIMECONV_H */
_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to