Skip to contentSkip to conversation

16550 compile err: ‘RTDM_IRQ_ENABLE’ undeclared (first use in this function)

Xenomai-core Jim Cromie 3 participants 3 messages Feb 28, 2006 – Mar 1, 2006

lore
Share & tools
lore

Jim Cromie

author
#0 lore raw

LD drivers/xenomai/16550A/built-in.o
CC [M] drivers/xenomai/16550A/16550A.o
/mnt/dilbert/jimc/dilbert/lxbuild/linux-2.6.15.1-ipipe-121/drivers/xenomai/16550A/16550A.c: In function ‘rt_16550_interrupt’:
/mnt/dilbert/jimc/dilbert/lxbuild/linux-2.6.15.1-ipipe-121/drivers/xenomai/16550A/16550A.c:269: error: ‘RTDM_IRQ_ENABLE’ undeclared (first use in this function) /mnt/dilbert/jimc/dilbert/lxbuild/linux-2.6.15.1-ipipe-121/drivers/xenomai/16550A/16550A.c:269: error: (Each undeclared identifier is reported only once /mnt/dilbert/jimc/dilbert/lxbuild/linux-2.6.15.1-ipipe-121/drivers/xenomai/16550A/16550A.c:269: error: for each function it appears in.) make[4]: *** [drivers/xenomai/16550A/16550A.o] Error 1
make[3]: *** [drivers/xenomai/16550A] Error 2
make[2]: *** [drivers/xenomai] Error 2
make[1]: *** [drivers] Error 2
make: *** [_all] Error 2

I de-configured 16550, it built fine, so I suspect some recent change missed this item.

that said, I havent tried _NOENABLE, since im guessing blind.

#1 lore raw

Re: [Xenomai-core] 16550 compile err: ?RTDM_IRQ_ENABLE? undeclared (first use in this function)

Quoted 17 lines · Jim Cromie

LD drivers/xenomai/16550A/built-in.o
CC [M] drivers/xenomai/16550A/16550A.o
/mnt/dilbert/jimc/dilbert/lxbuild/linux-2.6.15.1-ipipe-121/drivers/xenomai/16550A/16550A.c:
In function ?rt_16550_interrupt?:
/mnt/dilbert/jimc/dilbert/lxbuild/linux-2.6.15.1-ipipe-121/drivers/xenomai/16550A/16550A.c:269:
error: ?RTDM_IRQ_ENABLE? undeclared (first use in this function) /mnt/dilbert/jimc/dilbert/lxbuild/linux-2.6.15.1-ipipe-121/drivers/xenomai/16550A/16550A.c:269:
error: (Each undeclared identifier is reported only once /mnt/dilbert/jimc/dilbert/lxbuild/linux-2.6.15.1-ipipe-121/drivers/xenomai/16550A/16550A.c:269:
error: for each function it appears in.)
make[4]: *** [drivers/xenomai/16550A/16550A.o] Error 1
make[3]: *** [drivers/xenomai/16550A] Error 2
make[2]: *** [drivers/xenomai] Error 2
make[1]: *** [drivers] Error 2
make: *** [_all] Error 2

Quoted 5 lines

I de-configured 16550, it built fine, so I suspect some recent change missed this item.

that said, I havent tried _NOENABLE, since im guessing blind.

Yeah, I'm on it. Here is half of the patch I'm currently preparing:

ksrc/drivers/16550A/16550A.c (Arbeitskopie) renamed from ksrc/drivers/16550A/16550A.c (Revision 624) +2 -2
@@ -238,7 +238,7 @@
     int                     rbytes = 0;
     int                     events = 0;
     int                     modem;
-    int                     ret = RTDM_IRQ_PROPAGATE;
+    int                     ret = RTDM_IRQ_NONE;
 
 
     ctx = rtdm_irq_get_arg(irq_context, struct rt_16550_context);
@@ -266,7 +266,7 @@
                 events |= RTSER_EVENT_MODEMLO;
         }
 
-        ret = RTDM_IRQ_ENABLE | RTDM_IRQ_HANDLED;
+        ret = RTDM_IRQ_HANDLED;
     }
 
     if (ctx->in_nwait > 0) {

Jan

#2 lore raw

Re: [Xenomai-core] 16550 compile err: ?RTDM_IRQ_ENABLE? undeclared (first use in this function)

Quoted 43 lines · Jan Kiszka
Quoted 3 lines · Jim Cromie

LD drivers/xenomai/16550A/built-in.o
CC [M] drivers/xenomai/16550A/16550A.o
/mnt/dilbert/jimc/dilbert/lxbuild/linux-2.6.15.1-ipipe-121

/drivers/xenomai/16550A/16550A.c:

Quoted 2 lines

In function ?rt_16550_interrupt?:
/mnt/dilbert/jimc/dilbert/lxbuild/linux-2.6.15.1-ipipe-121

/drivers/xenomai/16550A/16550A.c:269:

Quoted 2 lines

error: ?RTDM_IRQ_ENABLE? undeclared (first use in this function) /mnt/dilbert/jimc/dilbert/lxbuild/linux-2.6.15.1-ipipe-121

/drivers/xenomai/16550A/16550A.c:269:

Quoted 2 lines

error: (Each undeclared identifier is reported only once /mnt/dilbert/jimc/dilbert/lxbuild/linux-2.6.15.1-ipipe-121

/drivers/xenomai/16550A/16550A.c:269:

Quoted 8 lines

error: for each function it appears in.) make[4]: *** [drivers/xenomai/16550A/16550A.o] Error 1 make[3]: *** [drivers/xenomai/16550A] Error 2 make[2]: *** [drivers/xenomai] Error 2 make[1]: *** [drivers] Error 2
make: *** [_all] Error 2

Quoted 5 lines

I de-configured 16550, it built fine, so I suspect some recent change missed this item.

that said, I havent tried _NOENABLE, since im guessing blind.

Yeah, I'm on it. Here is half of the patch I'm currently preparing:

ksrc/drivers/16550A/16550A.c (Arbeitskopie) renamed from ksrc/drivers/16550A/16550A.c (Revision 624) +1 -1
@@ -238,7 +238,7 @@
     int                     rbytes = 0;
     int                     events = 0;
     int                     modem;
-    int                     ret = RTDM_IRQ_PROPAGATE;
+    int                     ret = RTDM_IRQ_NONE;
 
 
     ctx = rtdm_irq_get_arg(irq_context, struct rt_16550_context);

ksrc/drivers/16550A/16550A.c (Arbeitskopie) line 272

Quoted 8 lines
ksrc/drivers/16550A/16550A.c (Arbeitskopie) renamed from ksrc/drivers/16550A/16550A.c (Revision 624) +1 -1
@@ -266,7 +266,7 @@
                 events |= RTSER_EVENT_MODEMLO;
         }
 
-        ret = RTDM_IRQ_ENABLE | RTDM_IRQ_HANDLED;
+        ret = RTDM_IRQ_HANDLED;
     }
 
     if (ctx->in_nwait > 0) {

My fault, sorry. I should have fixed that but overlooked again.

Jan

Quoted 1 line

--
Best regards,
Dmitry Adamushko