[Pkg-xen-devel] Bug#874751: blktap-dkms: module FTBFS for Linux 4.12

Andreas Beckmann
Sat, 09 Sep 2017 13:07:23 -0000

Package: blktap-dkms
Version: 2.0.93-0.10
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts

Hi,

blktap-dkms fails to build a module for Linux 4.12:

Selecting previously unselected package blktap-dkms.
(Reading database ... 34976 files and directories currently installed.)
Preparing to unpack .../blktap-dkms_2.0.93-0.10_amd64.deb ...
Unpacking blktap-dkms (2.0.93-0.10) ...
Setting up blktap-dkms (2.0.93-0.10) ...
Loading new blktap-2.0.93 DKMS files...
It is likely that 4.6.0-1-amd64 belongs to a chroot's host
Building for 4.12.0-1-amd64
Building initial module for 4.12.0-1-amd64
Error! Bad return status for module build on kernel: 4.12.0-1-amd64 (x86_64)
Consult /var/lib/dkms/blktap/2.0.93/build/make.log for more information.


DKMS make.log for blktap-2.0.93 for kernel 4.12.0-1-amd64 (x86_64)
Sat Sep  9 13:04:28 UTC 2017
make: Entering directory '/usr/src/linux-headers-4.12.0-1-amd64'
  CC [M]  /var/lib/dkms/blktap/2.0.93/build/control.o
  CC [M]  /var/lib/dkms/blktap/2.0.93/build/ring.o
  CC [M]  /var/lib/dkms/blktap/2.0.93/build/device.o
  CC [M]  /var/lib/dkms/blktap/2.0.93/build/request.o
  CC [M]  /var/lib/dkms/blktap/2.0.93/build/sysfs.o
In file included from /var/lib/dkms/blktap/2.0.93/build/linux-blktap.h:66:0,
                 from /var/lib/dkms/blktap/2.0.93/build/blktap.h:33,
                 from /var/lib/dkms/blktap/2.0.93/build/request.c:31:
/var/lib/dkms/blktap/2.0.93/build/linux-blktap.h:119:24: warning: variably
modified 'pending' at file scope
        sizeof(((struct blktap_sring *)0)->ring[0])))
                        ^
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:15:59:
note: in definition of macro '__RD2'
 #define __RD2(_x)  (((_x) & 0x00000002) ? 0x2         : ((_x) & 0x1))
                                                           ^~
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:17:66:
note: in expansion of macro '__RD4'
 #define __RD8(_x)  (((_x) & 0x000000f0) ? __RD4((_x)>>4)<<4
: __RD4(_x))
                                                                  ^~~~~
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:18:66:
note: in expansion of macro '__RD8'
 #define __RD16(_x) (((_x) & 0x0000ff00) ? __RD8((_x)>>8)<<8
: __RD8(_x))
                                                                  ^~~~~
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:19:66:
note: in expansion of macro '__RD16'
 #define __RD32(_x) (((_x) & 0xffff0000) ? __RD16((_x)>>16)<<16
: __RD16(_x))
                                                                  ^~~~~~
/var/lib/dkms/blktap/2.0.93/build/linux-blktap.h:117:8: note: in expansion of
macro '__RD32'
  ((int)__RD32((BLKTAP_PAGE_SIZE -    \
        ^~~~~~
/var/lib/dkms/blktap/2.0.93/build/blktap.h:77:41: note: in expansion of macro
'BLKTAP_RING_SIZE'
  struct blktap_request         *pending[BLKTAP_RING_SIZE];
                                         ^~~~~~~~~~~~~~~~
/var/lib/dkms/blktap/2.0.93/build/request.c: In function
'blktap_request_alloc':
/var/lib/dkms/blktap/2.0.93/build/request.c:138:2: warning: this 'if'
clause does not guard... [-Wmisleading-indentation]
  if (request)
  ^~
/var/lib/dkms/blktap/2.0.93/build/request.c:140:6: note: ...this statement, but
the latter is misleadingly indented as if it is guarded by the 'if'
      sg_init_table(request->sg_table, ARRAY_SIZE(request->sg_table));
      ^~~~~~~~~~~~~
In file included from /var/lib/dkms/blktap/2.0.93/build/linux-blktap.h:66:0,
                 from /var/lib/dkms/blktap/2.0.93/build/blktap.h:33,
                 from /var/lib/dkms/blktap/2.0.93/build/control.c:30:
/var/lib/dkms/blktap/2.0.93/build/linux-blktap.h:119:24: warning: variably
modified 'pending' at file scope
        sizeof(((struct blktap_sring *)0)->ring[0])))
                        ^
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:15:59:
note: in definition of macro '__RD2'
 #define __RD2(_x)  (((_x) & 0x00000002) ? 0x2         : ((_x) & 0x1))
                                                           ^~
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:17:66:
note: in expansion of macro '__RD4'
 #define __RD8(_x)  (((_x) & 0x000000f0) ? __RD4((_x)>>4)<<4
: __RD4(_x))
                                                                  ^~~~~
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:18:66:
note: in expansion of macro '__RD8'
 #define __RD16(_x) (((_x) & 0x0000ff00) ? __RD8((_x)>>8)<<8
: __RD8(_x))
                                                                  ^~~~~
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:19:66:
note: in expansion of macro '__RD16'
 #define __RD32(_x) (((_x) & 0xffff0000) ? __RD16((_x)>>16)<<16
: __RD16(_x))
                                                                  ^~~~~~
/var/lib/dkms/blktap/2.0.93/build/linux-blktap.h:117:8: note: in expansion of
macro '__RD32'
  ((int)__RD32((BLKTAP_PAGE_SIZE -    \
        ^~~~~~
/var/lib/dkms/blktap/2.0.93/build/blktap.h:77:41: note: in expansion of macro
'BLKTAP_RING_SIZE'
  struct blktap_request         *pending[BLKTAP_RING_SIZE];
                                         ^~~~~~~~~~~~~~~~
/var/lib/dkms/blktap/2.0.93/build/control.c: In function
'blktap_control_ioctl':
/var/lib/dkms/blktap/2.0.93/build/control.c:165:7: error: implicit declaration
of function 'copy_to_user' [-Werror=implicit-function-declaration]
   if (copy_to_user(ptr, &info, sizeof(info))) {
       ^~~~~~~~~~~~
In file included from /var/lib/dkms/blktap/2.0.93/build/linux-blktap.h:66:0,
                 from /var/lib/dkms/blktap/2.0.93/build/blktap.h:33,
                 from /var/lib/dkms/blktap/2.0.93/build/sysfs.c:30:
/var/lib/dkms/blktap/2.0.93/build/linux-blktap.h:119:24: warning: variably
modified 'pending' at file scope
        sizeof(((struct blktap_sring *)0)->ring[0])))
                        ^
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:15:59:
note: in definition of macro '__RD2'
 #define __RD2(_x)  (((_x) & 0x00000002) ? 0x2         : ((_x) & 0x1))
                                                           ^~
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:17:66:
note: in expansion of macro '__RD4'
 #define __RD8(_x)  (((_x) & 0x000000f0) ? __RD4((_x)>>4)<<4
: __RD4(_x))
                                                                  ^~~~~
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:18:66:
note: in expansion of macro '__RD8'
 #define __RD16(_x) (((_x) & 0x0000ff00) ? __RD8((_x)>>8)<<8
: __RD8(_x))
                                                                  ^~~~~
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:19:66:
note: in expansion of macro '__RD16'
 #define __RD32(_x) (((_x) & 0xffff0000) ? __RD16((_x)>>16)<<16
: __RD16(_x))
                                                                  ^~~~~~
/var/lib/dkms/blktap/2.0.93/build/linux-blktap.h:117:8: note: in expansion of
macro '__RD32'
  ((int)__RD32((BLKTAP_PAGE_SIZE -    \
        ^~~~~~
/var/lib/dkms/blktap/2.0.93/build/blktap.h:77:41: note: in expansion of macro
'BLKTAP_RING_SIZE'
  struct blktap_request         *pending[BLKTAP_RING_SIZE];
                                         ^~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/blktap/2.0.93/build/linux-blktap.h:66:0,
                 from /var/lib/dkms/blktap/2.0.93/build/blktap.h:33,
                 from /var/lib/dkms/blktap/2.0.93/build/ring.c:39:
/var/lib/dkms/blktap/2.0.93/build/linux-blktap.h:119:24: warning: variably
modified 'pending' at file scope
        sizeof(((struct blktap_sring *)0)->ring[0])))
                        ^
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:15:59:
note: in definition of macro '__RD2'
 #define __RD2(_x)  (((_x) & 0x00000002) ? 0x2         : ((_x) & 0x1))
                                                           ^~
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:17:66:
note: in expansion of macro '__RD4'
 #define __RD8(_x)  (((_x) & 0x000000f0) ? __RD4((_x)>>4)<<4
: __RD4(_x))
                                                                  ^~~~~
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:18:66:
note: in expansion of macro '__RD8'
 #define __RD16(_x) (((_x) & 0x0000ff00) ? __RD8((_x)>>8)<<8
: __RD8(_x))
                                                                  ^~~~~
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:19:66:
note: in expansion of macro '__RD16'
 #define __RD32(_x) (((_x) & 0xffff0000) ? __RD16((_x)>>16)<<16
: __RD16(_x))
                                                                  ^~~~~~
/var/lib/dkms/blktap/2.0.93/build/linux-blktap.h:117:8: note: in expansion of
macro '__RD32'
  ((int)__RD32((BLKTAP_PAGE_SIZE -    \
        ^~~~~~
/var/lib/dkms/blktap/2.0.93/build/blktap.h:77:41: note: in expansion of macro
'BLKTAP_RING_SIZE'
  struct blktap_request         *pending[BLKTAP_RING_SIZE];
                                         ^~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/blktap/2.0.93/build/linux-blktap.h:66:0,
                 from /var/lib/dkms/blktap/2.0.93/build/blktap.h:33,
                 from /var/lib/dkms/blktap/2.0.93/build/device.c:32:
/var/lib/dkms/blktap/2.0.93/build/linux-blktap.h:119:24: warning: variably
modified 'pending' at file scope
        sizeof(((struct blktap_sring *)0)->ring[0])))
                        ^
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:15:59:
note: in definition of macro '__RD2'
 #define __RD2(_x)  (((_x) & 0x00000002) ? 0x2         : ((_x) & 0x1))
                                                           ^~
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:17:66:
note: in expansion of macro '__RD4'
 #define __RD8(_x)  (((_x) & 0x000000f0) ? __RD4((_x)>>4)<<4
: __RD4(_x))
                                                                  ^~~~~
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:18:66:
note: in expansion of macro '__RD8'
 #define __RD16(_x) (((_x) & 0x0000ff00) ? __RD8((_x)>>8)<<8
: __RD8(_x))
                                                                  ^~~~~
/usr/src/linux-headers-4.12.0-1-common/include/xen/interface/io/ring.h:19:66:
note: in expansion of macro '__RD16'
 #define __RD32(_x) (((_x) & 0xffff0000) ? __RD16((_x)>>16)<<16
: __RD16(_x))
                                                                  ^~~~~~
/var/lib/dkms/blktap/2.0.93/build/linux-blktap.h:117:8: note: in expansion of
macro '__RD32'
  ((int)__RD32((BLKTAP_PAGE_SIZE -    \
        ^~~~~~
/var/lib/dkms/blktap/2.0.93/build/blktap.h:77:41: note: in expansion of macro
'BLKTAP_RING_SIZE'
  struct blktap_request         *pending[BLKTAP_RING_SIZE];
                                         ^~~~~~~~~~~~~~~~
/var/lib/dkms/blktap/2.0.93/build/device.c: In function
'blktap_device_make_request':
/var/lib/dkms/blktap/2.0.93/build/device.c:214:8: error: 'struct
request' has no member named 'cmd_type'
  if (rq->cmd_type != REQ_TYPE_FS) {
        ^~
/var/lib/dkms/blktap/2.0.93/build/device.c:214:22: error: 'REQ_TYPE_FS'
undeclared (first use in this function)
  if (rq->cmd_type != REQ_TYPE_FS) {
                      ^~~~~~~~~~~
/var/lib/dkms/blktap/2.0.93/build/device.c:214:22: note: each undeclared
identifier is reported only once for each function it appears in
/var/lib/dkms/blktap/2.0.93/build/device.c: In function
'blktap_device_configure':
/var/lib/dkms/blktap/2.0.93/build/device.c:374:9: error: 'struct
queue_limits' has no member named 'discard_zeroes_data'
   limits->discard_zeroes_data = trz;
         ^~
In file included from
/usr/src/linux-headers-4.12.0-1-common/include/linux/genhd.h:64:0,
                 from
/usr/src/linux-headers-4.12.0-1-common/include/linux/blkdev.h:10,
                 from /var/lib/dkms/blktap/2.0.93/build/device.c:24:
/var/lib/dkms/blktap/2.0.93/build/device.c: In function
'blktap_device_create':
/var/lib/dkms/blktap/2.0.93/build/device.c:582:4: warning: format '%x'
expects argument of type 'unsigned int', but argument 9 has type
'long unsigned int' [-Wformat=]
    "sector-size: %u/%u+%u capacity: %llu"
    ^
/usr/src/linux-headers-4.12.0-1-common/include/linux/device.h:1319:51: note: in
definition of macro 'dev_info'
 #define dev_info(dev, fmt, arg...) _dev_info(dev, fmt, ##arg)
                                                   ^~~
/usr/src/linux-headers-4.12.0-1-common/scripts/Makefile.build:307: recipe for
target '/var/lib/dkms/blktap/2.0.93/build/device.o' failed
make[3]: *** [/var/lib/dkms/blktap/2.0.93/build/device.o] Error 1
make[3]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.12.0-1-common/scripts/Makefile.build:307: recipe for
target '/var/lib/dkms/blktap/2.0.93/build/control.o' failed
make[3]: *** [/var/lib/dkms/blktap/2.0.93/build/control.o] Error 1
/usr/src/linux-headers-4.12.0-1-common/Makefile:1532: recipe for target
'_module_/var/lib/dkms/blktap/2.0.93/build' failed
make[2]: *** [_module_/var/lib/dkms/blktap/2.0.93/build] Error 2
Makefile:152: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/usr/src/linux-headers-4.12.0-1-amd64'


Cheers

Andreas