All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Smolorz <smolorz@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] [BUG] [xenomai-head] xeno_posix.ko cannot be built
Date: Mon, 22 Jun 2009 14:35:01 +0200	[thread overview]
Message-ID: <200906221435.02109.smolorz@domain.hid> (raw)
In-Reply-To: <4A3F73B6.1060202@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 686 bytes --]

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


[-- Attachment #2: timeconv.h.patch --]
[-- Type: text/x-patch, Size: 486 bytes --]

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 */

  reply	other threads:[~2009-06-22 12:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-22 10:45 [Xenomai-core] [BUG] [xenomai-head] xeno_posix.ko cannot be built Sebastian Smolorz
2009-06-22 12:06 ` Gilles Chanteperdrix
2009-06-22 12:35   ` Sebastian Smolorz [this message]
2009-06-22 12:37   ` Philippe Gerum
2009-06-22 12:47     ` Gilles Chanteperdrix
2009-06-22 13:01       ` Philippe Gerum
2009-06-22 13:23         ` Gilles Chanteperdrix
2009-06-22 13:42           ` Philippe Gerum
2009-06-22 12:35 ` Philippe Gerum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200906221435.02109.smolorz@domain.hid \
    --to=smolorz@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.