[DRBD-user] compilation error with drbd-0.7_pre8 and Linux 2.4 (RS6000 station- PowerPC)
Lars Ellenberg
lars.ellenberg at linbit.com
Tue Jun 22 13:39:40 CEST 2004
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
More information about the drbd-user
mailing list