[DRBD-user] In drbd-8.3.7 'make km-rpm' failed unter openSUSE-11.2 x86_64

Henrik Kuhn henrik.kuhn at origenis.de
Mon Jan 25 15:51:11 CET 2010

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


Hi,

compiling the kernel-module with 'make km-rpm' failed with
CC [M] /usr/src/packages/BUILD/drbd-8.3.7/drbd/drbd_req.o
/usr/src/packages/BUILD/drbd-8.3.7/drbd/drbd_req.c: In function
‘_drbd_start_io_acct’:
/usr/src/packages/BUILD/drbd-8.3.7/drbd/drbd_req.c:63: error: too few
arguments to function ‘part_inc_in_flight’
/usr/src/packages/BUILD/drbd-8.3.7/drbd/drbd_req.c: In function
‘_drbd_end_io_acct’:
/usr/src/packages/BUILD/drbd-8.3.7/drbd/drbd_req.c:85: error: too few
arguments to function ‘part_dec_in_flight’


I got a successful compilation after applying the following changes in
drbd/drbd_wrappers.h
125,126c125,126
< #define part_inc_in_flight(A, B) part_inc_in_flight(A)
< #define part_dec_in_flight(A, B) part_dec_in_flight(A)
---
> //#define part_inc_in_flight(A, B) part_inc_in_flight(A)
> //#define part_dec_in_flight(A, B) part_dec_in_flight(A)

By the way 'uname -a' answers with
Linux sinus 2.6.31.8-0.1-xen #1 SMP 2009-12-15 23:55:40 +0100 x86_64
x86_64 x86_64 GNU/Linux

It seems to me that the kernel version dependent macro is not valid for
this kernel.
Does this procedure results in the generation of a correct & functional
drbd-module?

Kind regards,
Henrik





More information about the drbd-user mailing list