Hi,
I just upgraded from 4.2.4 to 4.4:
and now I can't compile drbd-8.4.7-1 (or 8.4.8-1) against this kernel-4.4.67-1, it fails with:
This was working fine with pve-kernel-4.4.8-1-pve. Any ideas?
By the way why was the kernel downgraded from 4.4.8 to 4.4.67?
I just upgraded from 4.2.4 to 4.4:
Code:
# pveversion -v
proxmox-ve: 4.4-89 (running kernel: 4.4.67-1-pve)
pve-manager: 4.4-13 (running version: 4.4-13/7ea56165)
pve-kernel-4.4.6-1-pve: 4.4.6-48
pve-kernel-4.2.6-1-pve: 4.2.6-36
pve-kernel-4.4.8-1-pve: 4.4.8-52
pve-kernel-4.4.67-1-pve: 4.4.67-89
...
and now I can't compile drbd-8.4.7-1 (or 8.4.8-1) against this kernel-4.4.67-1, it fails with:
Code:
CC [M] /usr/src/drbd-8.4.7-1/drbd/drbd_proc.o
/usr/src/drbd-8.4.7-1/drbd/drbd_proc.c: In function ‘drbd_seq_show’:
/usr/src/drbd-8.4.7-1/drbd/drbd_proc.c:292:21: warning: passing argument 1 of ‘bdi_rw_congested’ from incompatible pointer type
bdi_rw_congested(&device->rq_queue->backing_dev_info);
^
In file included from /usr/src/drbd-8.4.7-1/drbd/drbd_int.h:41:0,
from /usr/src/drbd-8.4.7-1/drbd/drbd_proc.c:34:
include/linux/backing-dev.h:520:19: note: expected ‘struct backing_dev_info *’ but argument is of type ‘struct backing_dev_info **’
static inline int bdi_rw_congested(struct backing_dev_info *bdi)
^
CC [M] /usr/src/drbd-8.4.7-1/drbd/drbd_worker.o
CC [M] /usr/src/drbd-8.4.7-1/drbd/drbd_receiver.o
CC [M] /usr/src/drbd-8.4.7-1/drbd/drbd_req.o
/usr/src/drbd-8.4.7-1/drbd/drbd_req.c: In function ‘remote_due_to_read_balancing’:
/usr/src/drbd-8.4.7-1/drbd/drbd_req.c:960:7: warning: assignment from incompatible pointer type
bdi = &device->ldev->backing_bdev->bd_disk->queue->backing_dev_info;
^
CC [M] /usr/src/drbd-8.4.7-1/drbd/drbd_actlog.o
CC [M] /usr/src/drbd-8.4.7-1/drbd/lru_cache.o
CC [M] /usr/src/drbd-8.4.7-1/drbd/drbd_main.o
/usr/src/drbd-8.4.7-1/drbd/drbd_main.c: In function ‘drbd_congested’:
/usr/src/drbd-8.4.7-1/drbd/drbd_main.c:2552:21: warning: passing argument 1 of ‘bdi_congested’ from incompatible pointer type
r = bdi_congested(&q->backing_dev_info, bdi_bits);
^
In file included from /usr/src/drbd-8.4.7-1/drbd/drbd_int.h:41:0,
from /usr/src/drbd-8.4.7-1/drbd/drbd_main.c:58:
include/linux/backing-dev.h:505:19: note: expected ‘struct backing_dev_info *’ but argument is of type ‘struct backing_dev_info **’
static inline int bdi_congested(struct backing_dev_info *bdi, int cong_bits)
^
/usr/src/drbd-8.4.7-1/drbd/drbd_main.c: In function ‘drbd_create_device’:
/usr/src/drbd-8.4.7-1/drbd/drbd_main.c:2927:21: error: request for member ‘congested_fn’ in something not a structure or union
q->backing_dev_info.congested_fn = drbd_congested;
^
/usr/src/drbd-8.4.7-1/drbd/drbd_main.c:2928:21: error: request for member ‘congested_data’ in something not a structure or union
q->backing_dev_info.congested_data = device;
^
/usr/src/drbd-8.4.7-1/drbd/drbd_main.c:2930:28: warning: passing argument 2 of ‘blk_queue_make_request’ from incompatible pointer type
blk_queue_make_request(q, drbd_make_request);
^
In file included from /usr/src/drbd-8.4.7-1/drbd/drbd_int.h:40:0,
from /usr/src/drbd-8.4.7-1/drbd/drbd_main.c:58:
include/linux/blkdev.h:963:13: note: expected ‘blk_qc_t (*)(struct request_queue *, struct bio *)’ but argument is of type ‘int (*)(struct request_queue *, struct bio *)’
extern void blk_queue_make_request(struct request_queue *, make_request_fn *);
^
scripts/Makefile.build:258: recipe for target '/usr/src/drbd-8.4.7-1/drbd/drbd_main.o' failed
make[2]: *** [/usr/src/drbd-8.4.7-1/drbd/drbd_main.o] Error 1
Makefile:1420: recipe for target '_module_/usr/src/drbd-8.4.7-1/drbd' failed
make[1]: *** [_module_/usr/src/drbd-8.4.7-1/drbd] Error 2
Makefile:103: recipe for target 'kbuild' failed
make: *** [kbuild] Error 2
This was working fine with pve-kernel-4.4.8-1-pve. Any ideas?
By the way why was the kernel downgraded from 4.4.8 to 4.4.67?