Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi Dietmar! On 09/05/15, at 10:19:00 PM you wrote: > Hi all, > > we update our kernel to 4.2, and detected that drbd9 module does not compile. > I get: > > make -C /lib/modules/4.2.0-1-pve/build > SUBDIRS=/home/dietmar/pve4-devel/pve-kernel/drbd-9.0.0/drbd modules > CHK /home/dietmar/pve4-devel/pve-kernel/drbd-9.0.0/drbd/compat.h > UPD /home/dietmar/pve4-devel/pve-kernel/drbd-9.0.0/drbd/compat.h > CC [M] /home/dietmar/pve4-devel/pve-kernel/drbd-9.0.0/drbd/drbd_debugfs.o > CC [M] /home/dietmar/pve4-devel/pve-kernel/drbd-9.0.0/drbd/drbd_bitmap.o > CC [M] /home/dietmar/pve4-devel/pve-kernel/drbd-9.0.0/drbd/drbd_proc.o > CC [M] /home/dietmar/pve4-devel/pve-kernel/drbd-9.0.0/drbd/drbd_sender.o > CC [M] /home/dietmar/pve4-devel/pve-kernel/drbd-9.0.0/drbd/drbd_receiver.o > CC [M] /home/dietmar/pve4-devel/pve-kernel/drbd-9.0.0/drbd/drbd_req.o > /home/dietmar/pve4-devel/pve-kernel/drbd-9.0.0/drbd/drbd_req.c: In function > ‘remote_due_to_read_balancing’: > /home/dietmar/pve4-devel/pve-kernel/drbd-9.0.0/drbd/drbd_req.c:1177:3: error: > implicit declaration of function ‘bdi_read_congested’ > [-Werror=implicit-function-declaration] > return bdi_read_congested(bdi); > ^ > cc1: some warnings being treated as errors > scripts/Makefile.build:258: recipe for target > '/home/dietmar/pve4-devel/pve-kernel/drbd-9.0.0/drbd/drbd_req.o' failed > > Somebody already wrote a patch for that? See upstream kernel commit 703c270887bb510 The patch should be very simple, just replace 'bdi_read_congested(bdi)' with 'inode_write_congested(inode)' or 'inode_write_congested(mapping->host)' if appropriate. -- WBR et al.