[DRBD-user] compilation error with drbd-0.7_pre8 and Linux 2.4 (RS6000 station- PowerPC)

Benoit.Ropartz at alcatel.fr Benoit.Ropartz at alcatel.fr
Tue Jun 22 19:04:22 CEST 2004

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


For last point, i suggest you add correction in drbd_int.h when
KERNEL-RELEASE < 2.6 ??


---------------------- Forwarded by Benoit ROPARTZ/FR/ALCATEL on 22/06/2004
19:03 ---------------------------


Lars Ellenberg <lars.ellenberg at linbit.com>@linbit.com on 22/06/2004
13:39:40

Sent by:    drbd-user-admin at linbit.com


To:    drbd-user <drbd-user at linbit.com>
cc:
Subject:    Re: [DRBD-user] compilation error with drbd-0.7_pre8 and Linux
       2.4 (RS6000 station- PowerPC)


On Mon, Jun 21, 2004 at 03:50:37PM +0200, Benoit.Ropartz at alcatel.fr wrote:
> Hello,
>
> I have found 4 errors during DRBD compilation :
>
> 1) drbd_generic_make_request in drbd_compact_wrapper.h:
>
> Error 'mdev' undeclared
>
> ==> Add drbd_dev *mdev = drbd_conf -1 ; (like drbd_generic_make-request
for
> kernel > 2.5)

ugly hack anyways...
ok.

> 2) warning: implicit declaration of function `kmalloc/kfree' in
> drbd_bitmap.c :
>
> Add  #include<linux/slab.h> ds drbd_bitmap.c

thanks.

> 3) warning: implicit declaration of function `find_next_bit' in
> drbd_bitmap.c :
>
> My bitops.h version don't implement this fonction...

ok, we'll add it into compat.h or somewhere there.

> 4) warning: implicit declaration of function `ALIGN' in drbd_bitmap.c :
>
> Where can i find this function in 2.4 ??

its a macro
#define ALIGN(x,s)  (((x) + (s-1)) & ~(s-1))
or some such...

 lge
_______________________________________________
drbd-user mailing list
drbd-user at lists.linbit.com
 http://lists.linbit.com/mailman/listinfo/drbd-user






More information about the drbd-user mailing list