Skip to contentSkip to conversation

`planb' doesn't compile on recent BenH kernel.

DISCUSSION Romain Dolbeau 2 participants 3 messages Aug 1, 2001 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hello,

the `planb' module won't comiple on any recent BenH kernel (from rsync penguinppc.org::linux-2.4-benh).

2.4.6pre3 works fine. No 2.4.7* or 2.4.8* work for me. I think some newer 2.4.6pre* didn't work either.

Apparently a locking mechanism was changed but
not all instance updated:

#####
--- linux-2.4.6pre3-benh/drivers/media/video/planb.h Tue Jun 26
12:13:27 2001
+++ linux-2.4.8-pre3-ben0/drivers/media/video/planb.h Wed Aug 1
12:07:03 2001
@@ -174,8 +174,7 @@

        int     user;
        unsigned int tab_size;
        int     maxlines;
-       int lock;
-       wait_queue_head_t lockq;
+       struct semaphore lock;

unsigned int irq; /* interrupt number */
volatile unsigned int intr_mask;
#####

but planb.c still do a ## pb->lock = 0; ## (line 2074).

Here's the compile log:

#####
make[4]: Entering directory `/usr/src/linux-2.4.8-pre3-ben0/drivers/media/video'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.8-pre3-ben0/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring
-DMODULE -c -o planb.o planb.c
planb.c: In function `init_planb':
planb.c:2074: incompatible types in assignment
planb.c: At top level:
planb.c:85: warning: planb_init_done' declared static' but never defined
#####

TIA

--

DOLBEAU Romain               | l'histoire est entierement vraie, puisque
ENS Cachan / Ker Lann        |     je l'ai imaginee d'un bout a l'autre
[email protected]             |           -- Boris Vian

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 11 lines · Romain Dolbeau

Hello,

the `planb' module won't comiple on any recent BenH kernel (from rsync penguinppc.org::linux-2.4-benh).

2.4.6pre3 works fine. No 2.4.7* or 2.4.8* work for me. I think some newer 2.4.6pre* didn't work either.

Apparently a locking mechanism was changed but
not all instance updated:

The attached patch allows the compile. Do you have hardware to test? I have a 7500 but no video hardware around.

Gruss Olaf

--

 $ man clone

BUGS
Main feature not yet implemented...

drivers/media/video/planb.c renamed from tree/linux-2.4.6-pre6/drivers/media/video/planb.c +0 -2
@@ -82,7 +82,6 @@
 static int planb_open(struct video_device *, int);
 static void planb_close(struct video_device *);
 static int planb_ioctl(struct video_device *, unsigned int, void *);
-static int planb_init_done(struct video_device *);
 static int planb_mmap(struct video_device *, const char *, unsigned long);
 static void planb_irq(int, void *, struct pt_regs *);
 static void release_planb(void);
@@ -2071,7 +2070,6 @@
 #endif
 	pb->tab_size = PLANB_MAXLINES + 40;
 	pb->suspend = 0;
-	pb->lock = 0;
 	init_MUTEX(&pb->lock);
 	pb->ch1_cmd = 0;
 	pb->ch2_cmd = 0;
#2 lore raw
Quoted 2 lines · Olaf Hering

The attached patch allows the compile. Do you have hardware to test? I have a 7500 but no video hardware around.

I was already recompiling without line 2074, but unfortunately I don't have video hardware either. I just _hate_ to have hardware without a proper driver :-)

--

DOLBEAU Romain               | l'histoire est entierement vraie, puisque
ENS Cachan / Ker Lann        |     je l'ai imaginee d'un bout a l'autre
[email protected]             |           -- Boris Vian

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/