diff -Nru vhba-module-20190831/debian/changelog vhba-module-20200106/debian/changelog --- vhba-module-20190831/debian/changelog 2019-08-31 09:14:43.000000000 +0000 +++ vhba-module-20200106/debian/changelog 2020-01-06 11:00:00.000000000 +0000 @@ -1,3 +1,7 @@ +vhba-module (20200106-1ubuntu1~eoan1~ppa1) eoan; urgency=low + * Updated to 20200106 + -- Rok Mandeljc Mon, 06 Jan 2020 12:00:00 +0100 + vhba-module (20190831-1ubuntu1~eoan1~ppa1) eoan; urgency=low * Updated to 20190831 -- Rok Mandeljc Sat, 31 Aug 2019 12:00:00 +0100 diff -Nru vhba-module-20190831/Makefile vhba-module-20200106/Makefile --- vhba-module-20190831/Makefile 2019-08-31 08:38:40.000000000 +0000 +++ vhba-module-20200106/Makefile 2020-01-06 16:23:51.000000000 +0000 @@ -1,4 +1,4 @@ -VHBA_VERSION := 20190831 +VHBA_VERSION := 20200106 KERNELRELEASE ?= $(shell uname -r) KDIR ?= /lib/modules/$(KERNELRELEASE)/build diff -Nru vhba-module-20190831/README vhba-module-20200106/README --- vhba-module-20190831/README 2019-08-31 08:38:40.000000000 +0000 +++ vhba-module-20200106/README 2020-01-06 16:23:51.000000000 +0000 @@ -28,7 +28,7 @@ 2. Requirements: ~~~~~~~~~~~~~~~~ - - Kernel development headers >= 3.16 + - Kernel development headers >= 3.0 3. Installation: diff -Nru vhba-module-20190831/vhba.c vhba-module-20200106/vhba.c --- vhba-module-20190831/vhba.c 2019-08-31 08:38:40.000000000 +0000 +++ vhba-module-20200106/vhba.c 2020-01-06 16:23:51.000000000 +0000 @@ -55,6 +55,12 @@ #define DPRINTK(fmt, args...) #endif +/* scmd_dbg was introduced in 3.15 */ +#ifndef scmd_dbg +#define scmd_dbg(scmd, fmt, a...) \ + dev_dbg(&(scmd)->device->sdev_gendev, fmt, ##a) +#endif + #define VHBA_MAX_SECTORS_PER_IO 256 #define VHBA_MAX_BUS 16 #define VHBA_MAX_ID 16 /* Usually 8 or 16 */ @@ -845,6 +851,13 @@ return -ENODEV; } } + case 0xBEEF002: { + int device_number = vdev->num; + if (copy_to_user((void *)arg, &device_number, sizeof(device_number))) { + return -EFAULT; + } + return 0; + } } return -ENOTTY;