* `planb' doesn't compile on recent BenH kernel.
@ 2001-08-01 11:25 Romain Dolbeau
2001-08-01 11:45 ` Olaf Hering
0 siblings, 1 reply; 3+ messages in thread
From: Romain Dolbeau @ 2001-08-01 11:25 UTC (permalink / raw)
To: linuxppc-dev
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
dolbeau@irisa.fr | -- Boris Vian
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: `planb' doesn't compile on recent BenH kernel.
2001-08-01 11:25 `planb' doesn't compile on recent BenH kernel Romain Dolbeau
@ 2001-08-01 11:45 ` Olaf Hering
2001-08-01 11:50 ` Romain Dolbeau
0 siblings, 1 reply; 3+ messages in thread
From: Olaf Hering @ 2001-08-01 11:45 UTC (permalink / raw)
To: Romain Dolbeau; +Cc: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 543 bytes --]
On Wed, Aug 01, Romain Dolbeau wrote:
>
> 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...
[-- Attachment #2: 70__01_00_2.4.6-pre8-fixes --]
[-- Type: text/plain, Size: 717 bytes --]
--- ../tree/linux-2.4.6-pre6/drivers/media/video/planb.c Thu Jun 28 10:39:31 2001
+++ linux/drivers/media/video/planb.c Thu Jun 28 12:25:23 2001
@@ -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;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: `planb' doesn't compile on recent BenH kernel.
2001-08-01 11:45 ` Olaf Hering
@ 2001-08-01 11:50 ` Romain Dolbeau
0 siblings, 0 replies; 3+ messages in thread
From: Romain Dolbeau @ 2001-08-01 11:50 UTC (permalink / raw)
To: Olaf Hering; +Cc: linuxppc-dev
Olaf Hering wrote:
> 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
dolbeau@irisa.fr | -- Boris Vian
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-08-01 11:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-01 11:25 `planb' doesn't compile on recent BenH kernel Romain Dolbeau
2001-08-01 11:45 ` Olaf Hering
2001-08-01 11:50 ` Romain Dolbeau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).