From: Jan Kiszka <jan.kiszka@domain.hid>
To: Dennis Nguyen <dennisnguy@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] make xenomai/serial/16550A module error
Date: Mon, 29 Oct 2007 21:59:43 +0100 [thread overview]
Message-ID: <472649BF.50909@domain.hid> (raw)
In-Reply-To: <472630A3.7020802@domain.hid>
[-- Attachment #1.1: Type: text/plain, Size: 862 bytes --]
Dennis Nguyen wrote:
> I tried to build linux kernel 2.6.20.10 with xenomai 2.3.4 with serial
> 16550A Module (I selected serial 16550A as a M).
> (adeos-ipipe-2.6.20-i386-1.10-10.patch)
>
> I had an error:
> CC [M] drivers/xenomai/serial/16550A.o
> drivers/xenomai/serial/16550A.c: In function ‘rt_16550_open’:
> drivers/xenomai/serial/16550A.c:448: error: incompatible types in assignment
> make[3]: *** [drivers/xenomai/serial/16550A.o] Error 1
> make[2]: *** [drivers/xenomai/serial] Error 2
> make[1]: *** [drivers/xenomai] Error 2
> make: *** [drivers] Error 2
> [root@domain.hid linux-2.6.20.10]#
>
> Any suggestion please?
So far for "please use the latest patch". :-/
Some assumption of the 2.3.x branch about what is when defined became
invalid with ipipe-1.10-10, attached patch fixes it. Philippe, please apply.
Jan
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: fix-lock-wrapping.patch --]
[-- Type: text/x-patch; name="fix-lock-wrapping.patch", Size: 1520 bytes --]
Index: xenomai-2.3.x/include/asm-generic/hal.h
===================================================================
--- xenomai-2.3.x/include/asm-generic/hal.h (Revision 3130)
+++ xenomai-2.3.x/include/asm-generic/hal.h (Arbeitskopie)
@@ -84,20 +84,27 @@
typedef struct ipipe_domain rthal_pipeline_stage_t;
-#ifdef IPIPE_RW_LOCK_UNLOCKED
+#ifdef IPIPE_SPIN_LOCK_UNLOCKED
typedef ipipe_spinlock_t rthal_spinlock_t;
#define RTHAL_SPIN_LOCK_UNLOCKED IPIPE_SPIN_LOCK_UNLOCKED
+#else /* !IPIPE_SPIN_LOCK_UNLOCKED */
+#ifdef RAW_SPIN_LOCK_UNLOCKED
+typedef raw_spinlock_t rthal_spinlock_t;
+#define RTHAL_SPIN_LOCK_UNLOCKED RAW_SPIN_LOCK_UNLOCKED
+#else /* !RAW_SPIN_LOCK_UNLOCKED */
+typedef spinlock_t rthal_spinlock_t;
+#define RTHAL_SPIN_LOCK_UNLOCKED SPIN_LOCK_UNLOCKED
+#endif /* !RAW_SPIN_LOCK_UNLOCKED */
+#endif /* !IPIPE_SPIN_LOCK_UNLOCKED */
+
+#ifdef IPIPE_RW_LOCK_UNLOCKED
typedef ipipe_rwlock_t rthal_rwlock_t;
#define RTHAL_RW_LOCK_UNLOCKED IPIPE_RW_LOCK_UNLOCKED
#else /* !IPIPE_RW_LOCK_UNLOCKED */
#ifdef RAW_RW_LOCK_UNLOCKED
-typedef raw_spinlock_t rthal_spinlock_t;
-#define RTHAL_SPIN_LOCK_UNLOCKED RAW_SPIN_LOCK_UNLOCKED
typedef raw_rwlock_t rthal_rwlock_t;
#define RTHAL_RW_LOCK_UNLOCKED RAW_RW_LOCK_UNLOCKED
#else /* !RAW_RW_LOCK_UNLOCKED */
-typedef spinlock_t rthal_spinlock_t;
-#define RTHAL_SPIN_LOCK_UNLOCKED SPIN_LOCK_UNLOCKED
typedef rwlock_t rthal_rwlock_t;
#define RTHAL_RW_LOCK_UNLOCKED RW_LOCK_UNLOCKED
#endif /* RAW_RW_LOCK_UNLOCKED */
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
next prev parent reply other threads:[~2007-10-29 20:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-29 19:12 [Xenomai-help] make xenomai/serial/16550A module error Dennis Nguyen
2007-10-29 20:59 ` Jan Kiszka [this message]
2007-10-30 9:01 ` 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=472649BF.50909@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=dennisnguy@domain.hid \
--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.