[DRBD-user] Compilation Problems on xen host

Katharina Haselhorst brandlk at Mathematik.Uni-Marburg.de
Fri May 7 21:30:27 CEST 2010

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


Hello,

When compiling the drbd kernel modules on a xen host, I get the
following error:

/home2/ag-ds/Download/drbd-8.3.7/drbd/drbd_req.c: In function
'_drbd_start_io_acct':
/home2/ag-ds/Download/drbd-8.3.7/drbd/drbd_req.c:63: error: too few
arguments to function 'part_inc_in_flight'
/home2/ag-ds/Download/drbd-8.3.7/drbd/drbd_req.c: In function
'_drbd_end_io_acct':
/home2/ag-ds/Download/drbd-8.3.7/drbd/drbd_req.c:85: error: too few
arguments to function 'part_dec_in_flight'
make[4]: *** [/home2/ag-ds/Download/drbd-8.3.7/drbd/drbd_req.o] Error 1
make[3]: *** [_module_/home2/ag-ds/Download/drbd-8.3.7/drbd] Error 2
make[2]: *** [sub-make] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.31.12-0.2'
make[1]: *** [kbuild] Error 2
make[1]: Leaving directory `/home2/ag-ds/Download/drbd-8.3.7/drbd'
make: *** [module] Error 2

I am running a 32-bit 2.6.31 xen kernel.

Did anyone have a similar error and could solve the issue? The problem
seems to be related to the macro definitions in drbd_wrapper.h:

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
#define part_inc_in_flight(A, B) part_inc_in_flight(A)
#define part_dec_in_flight(A, B) part_dec_in_flight(A)
#endif

So, the error message above make sense from the point of view of these
definitions, since my kernel version is < 2.6.32 and the functions are
called with two (instead of only one) parameter...

Any ideas would be great.

K. Haselhorst



More information about the drbd-user mailing list