newnut {~} root# vmware-modconfig --console --install-all
[AppLoader] Use shipped Linux kernel AIO access library.
An up-to-date "libaio" or "libaio1" package from your system is preferred.
[AppLoader] GLib does not have GSettings support.
Stopping VMware services:
VMware Authentication Daemon done
VM communication interface socket family done
Virtual machine communication interface done
Virtual machine monitor done
Blocking file system done
make: Entering directory '/tmp/modconfig-gEw4DH/vmmon-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/4.16.3/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-4.16.3'
CC [M] /tmp/modconfig-gEw4DH/vmmon-only/linux/driverLog.o
CC [M] /tmp/modconfig-gEw4DH/vmmon-only/linux/driver.o
CC [M] /tmp/modconfig-gEw4DH/vmmon-only/linux/hostif.o
CC [M] /tmp/modconfig-gEw4DH/vmmon-only/common/memtrack.o
CC [M] /tmp/modconfig-gEw4DH/vmmon-only/common/apic.o
CC [M] /tmp/modconfig-gEw4DH/vmmon-only/common/hashFunc.o
CC [M] /tmp/modconfig-gEw4DH/vmmon-only/common/vmx86.o
In file included from /tmp/modconfig-gEw4DH/vmmon-only/./common/vmx86.h:32:0,
from /tmp/modconfig-gEw4DH/vmmon-only/linux/driver.h:32,
from /tmp/modconfig-gEw4DH/vmmon-only/linux/driver.c:47:
/tmp/modconfig-gEw4DH/vmmon-only/./include/x86msr.h:115:0: warning: "MSR_MISC_FEATURES_ENABLES" redefined
#define MSR_MISC_FEATURES_ENABLES 0x140
^
In file included from ./arch/x86/include/asm/msr.h:5:0,
from ./arch/x86/include/asm/processor.h:21,
from ./arch/x86/include/asm/cpufeature.h:5,
from ./arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:38,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:81,
from ./include/linux/spinlock.h:51,
from ./include/linux/wait.h:9,
from ./include/linux/wait_bit.h:8,
from ./include/linux/fs.h:6,
from ./include/linux/highmem.h:5,
from /tmp/modconfig-gEw4DH/vmmon-only/linux/driver.c:25:
./arch/x86/include/asm/msr-index.h:592:0: note: this is the location of the previous definition
#define MSR_MISC_FEATURES_ENABLES 0x00000140
^
In file included from /tmp/modconfig-gEw4DH/vmmon-only/./common/vmx86.h:32:0,
from /tmp/modconfig-gEw4DH/vmmon-only/linux/driver.h:32,
from /tmp/modconfig-gEw4DH/vmmon-only/linux/driver.c:47:
/tmp/modconfig-gEw4DH/vmmon-only/./include/x86msr.h:439:0: warning: "MSR_K7_HWCR_SMMLOCK" redefined
#define MSR_K7_HWCR_SMMLOCK 0x00000001ULL // Lock SMM environment
^
In file included from ./arch/x86/include/asm/msr.h:5:0,
from ./arch/x86/include/asm/processor.h:21,
from ./arch/x86/include/asm/cpufeature.h:5,
from ./arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:38,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:81,
from ./include/linux/spinlock.h:51,
from ./include/linux/wait.h:9,
from ./include/linux/wait_bit.h:8,
from ./include/linux/fs.h:6,
from ./include/linux/highmem.h:5,
from /tmp/modconfig-gEw4DH/vmmon-only/linux/driver.c:25:
./arch/x86/include/asm/msr-index.h:401:0: note: this is the location of the previous definition
#define MSR_K7_HWCR_SMMLOCK BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)
^
In file included from /tmp/modconfig-gEw4DH/vmmon-only/./include/vm_asm.h:43:0,
from /tmp/modconfig-gEw4DH/vmmon-only/linux/hostif.c:60:
/tmp/modconfig-gEw4DH/vmmon-only/./include/x86msr.h:115:0: warning: "MSR_MISC_FEATURES_ENABLES" redefined
#define MSR_MISC_FEATURES_ENABLES 0x140
^
In file included from ./arch/x86/include/asm/msr.h:5:0,
from ./arch/x86/include/asm/processor.h:21,
from ./arch/x86/include/asm/cpufeature.h:5,
from ./arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:38,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:81,
from ./include/linux/rcupdate.h:40,
from ./include/linux/rculist.h:11,
from ./include/linux/pid.h:5,
from ./include/linux/sched.h:14,
from ./include/linux/binfmts.h:5,
from /tmp/modconfig-gEw4DH/vmmon-only/linux/hostif.c:32:
./arch/x86/include/asm/msr-index.h:592:0: note: this is the location of the previous definition
#define MSR_MISC_FEATURES_ENABLES 0x00000140
^
In file included from /tmp/modconfig-gEw4DH/vmmon-only/./include/vm_asm.h:43:0,
from /tmp/modconfig-gEw4DH/vmmon-only/linux/hostif.c:60:
/tmp/modconfig-gEw4DH/vmmon-only/./include/x86msr.h:439:0: warning: "MSR_K7_HWCR_SMMLOCK" redefined
#define MSR_K7_HWCR_SMMLOCK 0x00000001ULL // Lock SMM environment
^
In file included from ./arch/x86/include/asm/msr.h:5:0,
from ./arch/x86/include/asm/processor.h:21,
from ./arch/x86/include/asm/cpufeature.h:5,
from ./arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:38,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:81,
from ./include/linux/rcupdate.h:40,
from ./include/linux/rculist.h:11,
from ./include/linux/pid.h:5,
from ./include/linux/sched.h:14,
from ./include/linux/binfmts.h:5,
from /tmp/modconfig-gEw4DH/vmmon-only/linux/hostif.c:32:
./arch/x86/include/asm/msr-index.h:401:0: note: this is the location of the previous definition
#define MSR_K7_HWCR_SMMLOCK BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)
^
In file included from /tmp/modconfig-gEw4DH/vmmon-only/./include/vm_asm_x86.h:41:0,
from /tmp/modconfig-gEw4DH/vmmon-only/./include/vm_asm_x86_64.h:40,
from /tmp/modconfig-gEw4DH/vmmon-only/./include/vm_asm.h:46,
from /tmp/modconfig-gEw4DH/vmmon-only/linux/hostif.c:60:
/tmp/modconfig-gEw4DH/vmmon-only/./include/x86_basic_defs.h:78:0: warning: "CR3_PCID_MASK" redefined
#define CR3_PCID_MASK 0xFFF
^
In file included from ./arch/x86/include/asm/irqflags.h:5:0,
from ./include/linux/irqflags.h:16,
from ./include/linux/rcupdate.h:39,
from ./include/linux/rculist.h:11,
from ./include/linux/pid.h:5,
from ./include/linux/sched.h:14,
from ./include/linux/binfmts.h:5,
from /tmp/modconfig-gEw4DH/vmmon-only/linux/hostif.c:32:
./arch/x86/include/asm/processor-flags.h:39:0: note: this is the location of the previous definition
#define CR3_PCID_MASK 0xFFFull
^
In file included from /tmp/modconfig-gEw4DH/vmmon-only/./include/vm_asm_x86.h:41:0,
from /tmp/modconfig-gEw4DH/vmmon-only/./include/vm_asm_x86_64.h:40,
from /tmp/modconfig-gEw4DH/vmmon-only/./include/vm_asm.h:46,
from /tmp/modconfig-gEw4DH/vmmon-only/linux/driver.c:49:
/tmp/modconfig-gEw4DH/vmmon-only/./include/x86_basic_defs.h:78:0: warning: "CR3_PCID_MASK" redefined
#define CR3_PCID_MASK 0xFFF
^
In file included from ./arch/x86/include/asm/processor.h:5:0,
from ./arch/x86/include/asm/cpufeature.h:5,
from ./arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:38,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:81,
from ./include/linux/spinlock.h:51,
from ./include/linux/wait.h:9,
from ./include/linux/wait_bit.h:8,
from ./include/linux/fs.h:6,
from ./include/linux/highmem.h:5,
from /tmp/modconfig-gEw4DH/vmmon-only/linux/driver.c:25:
./arch/x86/include/asm/processor-flags.h:39:0: note: this is the location of the previous definition
#define CR3_PCID_MASK 0xFFFull
^
CC [M] /tmp/modconfig-gEw4DH/vmmon-only/common/cpuid.o
/tmp/modconfig-gEw4DH/vmmon-only/linux/driver.c: In function 'LinuxDriverInitTSCkHz':
/tmp/modconfig-gEw4DH/vmmon-only/linux/driver.c:254:22: warning: assignment from incompatible pointer type
tscTimer.function = LinuxDriverEstimateTSCkHzDeferred;
^
/tmp/modconfig-gEw4DH/vmmon-only/linux/driver.c:256:12: error: 'struct timer_list' has no member named 'data'
tscTimer.data = 0;
^
/tmp/modconfig-gEw4DH/vmmon-only/linux/driver.c: In function 'init_module':
/tmp/modconfig-gEw4DH/vmmon-only/linux/driver.c:338:4: error: implicit declaration of function 'init_timer' [-Werror=implicit-function-declaration]
init_timer(&tscTimer);
^
At top level:
/tmp/modconfig-gEw4DH/vmmon-only/linux/driver.c:981:1: warning: always_inline function might not be inlinable [-Wattributes]
LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min
^
/tmp/modconfig-gEw4DH/vmmon-only/linux/hostif.c: In function 'HostIF_EstimateLockedPageLimit':
cc1: some warnings being treated as errors
/tmp/modconfig-gEw4DH/vmmon-only/linux/hostif.c:1519:4: error: implicit declaration of function 'global_page_state' [-Werror=implicit-function-declaration]
unsigned int lockedPages = global_page_state(NR_PAGETABLE) +
^
/tmp/modconfig-gEw4DH/vmmon-only/linux/hostif.c: In function 'HostIF_InitUptime':
/tmp/modconfig-gEw4DH/vmmon-only/linux/hostif.c:1753:4: error: implicit declaration of function 'init_timer' [-Werror=implicit-function-declaration]
init_timer(&uptimeState.timer);
^
/tmp/modconfig-gEw4DH/vmmon-only/linux/hostif.c:1754:31: warning: assignment from incompatible pointer type
uptimeState.timer.function = HostIFUptimeResyncMono;
^
scripts/Makefile.build:324: recipe for target '/tmp/modconfig-gEw4DH/vmmon-only/linux/driver.o' failed
make[2]: *** [/tmp/modconfig-gEw4DH/vmmon-only/linux/driver.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /tmp/modconfig-gEw4DH/vmmon-only/common/vmx86.h:32:0,
from /tmp/modconfig-gEw4DH/vmmon-only/common/vmx86.c:43:
/tmp/modconfig-gEw4DH/vmmon-only/./include/x86msr.h:115:0: warning: "MSR_MISC_FEATURES_ENABLES" redefined
#define MSR_MISC_FEATURES_ENABLES 0x140
^
In file included from ./arch/x86/include/asm/msr.h:5:0,
from ./arch/x86/include/asm/processor.h:21,
from ./arch/x86/include/asm/cpufeature.h:5,
from ./arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:38,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:81,
from ./include/linux/rcupdate.h:40,
from ./include/linux/rculist.h:11,
from ./include/linux/pid.h:5,
from ./include/linux/sched.h:14,
from /tmp/modconfig-gEw4DH/vmmon-only/common/vmx86.c:31:
./arch/x86/include/asm/msr-index.h:592:0: note: this is the location of the previous definition
#define MSR_MISC_FEATURES_ENABLES 0x00000140
^
In file included from /tmp/modconfig-gEw4DH/vmmon-only/common/vmx86.h:32:0,
from /tmp/modconfig-gEw4DH/vmmon-only/common/vmx86.c:43:
/tmp/modconfig-gEw4DH/vmmon-only/./include/x86msr.h:439:0: warning: "MSR_K7_HWCR_SMMLOCK" redefined
#define MSR_K7_HWCR_SMMLOCK 0x00000001ULL // Lock SMM environment
^
In file included from ./arch/x86/include/asm/msr.h:5:0,
from ./arch/x86/include/asm/processor.h:21,
from ./arch/x86/include/asm/cpufeature.h:5,
from ./arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:38,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:81,
from ./include/linux/rcupdate.h:40,
from ./include/linux/rculist.h:11,
from ./include/linux/pid.h:5,
from ./include/linux/sched.h:14,
from /tmp/modconfig-gEw4DH/vmmon-only/common/vmx86.c:31:
./arch/x86/include/asm/msr-index.h:401:0: note: this is the location of the previous definition
#define MSR_K7_HWCR_SMMLOCK BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)
^
In file included from /tmp/modconfig-gEw4DH/vmmon-only/./include/vm_asm_x86.h:41:0,
from /tmp/modconfig-gEw4DH/vmmon-only/./include/vm_asm_x86_64.h:40,
from /tmp/modconfig-gEw4DH/vmmon-only/./include/vm_asm.h:46,
from /tmp/modconfig-gEw4DH/vmmon-only/common/vmx86.c:46:
/tmp/modconfig-gEw4DH/vmmon-only/./include/x86_basic_defs.h:78:0: warning: "CR3_PCID_MASK" redefined
#define CR3_PCID_MASK 0xFFF
^
In file included from ./arch/x86/include/asm/irqflags.h:5:0,
from ./include/linux/irqflags.h:16,
from ./include/linux/rcupdate.h:39,
from ./include/linux/rculist.h:11,
from ./include/linux/pid.h:5,
from ./include/linux/sched.h:14,
from /tmp/modconfig-gEw4DH/vmmon-only/common/vmx86.c:31:
./arch/x86/include/asm/processor-flags.h:39:0: note: this is the location of the previous definition
#define CR3_PCID_MASK 0xFFFull
^
cc1: some warnings being treated as errors
scripts/Makefile.build:324: recipe for target '/tmp/modconfig-gEw4DH/vmmon-only/linux/hostif.o' failed
make[2]: *** [/tmp/modconfig-gEw4DH/vmmon-only/linux/hostif.o] Error 1
/tmp/modconfig-gEw4DH/vmmon-only/common/vmx86.o: warning: objtool: Vmx86EnableHVOnCPU() falls through to next function Vmx86GetMSR()
Makefile:1561: recipe for target '_module_/tmp/modconfig-gEw4DH/vmmon-only' failed
make[1]: *** [_module_/tmp/modconfig-gEw4DH/vmmon-only] Error 2
make[1]: Leaving directory '/usr/src/linux-4.16.3'
Makefile:110: recipe for target 'vmmon.ko' failed
make: *** [vmmon.ko] Error 2
make: Leaving directory '/tmp/modconfig-gEw4DH/vmmon-only'
make: Entering directory '/tmp/modconfig-gEw4DH/vmnet-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/4.16.3/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-4.16.3'
CC [M] /tmp/modconfig-gEw4DH/vmnet-only/driver.o
CC [M] /tmp/modconfig-gEw4DH/vmnet-only/hub.o
CC [M] /tmp/modconfig-gEw4DH/vmnet-only/userif.o
CC [M] /tmp/modconfig-gEw4DH/vmnet-only/netif.o
In file included from ./include/linux/pci.h:37:0,
from /tmp/modconfig-gEw4DH/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-gEw4DH/vmnet-only/netif.c:43:
./include/linux/pci_ids.h:2263:0: warning: "PCI_VENDOR_ID_VMWARE" redefined
#define PCI_VENDOR_ID_VMWARE 0x15ad
^
In file included from /tmp/modconfig-gEw4DH/vmnet-only/net.h:38:0,
from /tmp/modconfig-gEw4DH/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-gEw4DH/vmnet-only/netif.c:42:
/tmp/modconfig-gEw4DH/vmnet-only/vm_device_version.h:56:0: note: this is the location of the previous definition
#define PCI_VENDOR_ID_VMWARE 0x15AD
^
In file included from ./include/linux/pci.h:37:0,
from /tmp/modconfig-gEw4DH/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-gEw4DH/vmnet-only/netif.c:43:
./include/linux/pci_ids.h:2264:0: warning: "PCI_DEVICE_ID_VMWARE_VMXNET3" redefined
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07b0
^
In file included from /tmp/modconfig-gEw4DH/vmnet-only/net.h:38:0,
from /tmp/modconfig-gEw4DH/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-gEw4DH/vmnet-only/netif.c:42:
/tmp/modconfig-gEw4DH/vmnet-only/vm_device_version.h:73:0: note: this is the location of the previous definition
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07B0
^
CC [M] /tmp/modconfig-gEw4DH/vmnet-only/bridge.o
CC [M] /tmp/modconfig-gEw4DH/vmnet-only/procfs.o
CC [M] /tmp/modconfig-gEw4DH/vmnet-only/smac_compat.o
CC [M] /tmp/modconfig-gEw4DH/vmnet-only/smac.o
CC [M] /tmp/modconfig-gEw4DH/vmnet-only/vnetEvent.o
In file included from /tmp/modconfig-gEw4DH/vmnet-only/net.h:38:0,
from /tmp/modconfig-gEw4DH/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-gEw4DH/vmnet-only/bridge.c:53:
/tmp/modconfig-gEw4DH/vmnet-only/vm_device_version.h:56:0: warning: "PCI_VENDOR_ID_VMWARE" redefined
#define PCI_VENDOR_ID_VMWARE 0x15AD
^
In file included from ./include/linux/pci.h:37:0,
from /tmp/modconfig-gEw4DH/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-gEw4DH/vmnet-only/bridge.c:52:
./include/linux/pci_ids.h:2263:0: note: this is the location of the previous definition
#define PCI_VENDOR_ID_VMWARE 0x15ad
^
In file included from /tmp/modconfig-gEw4DH/vmnet-only/net.h:38:0,
from /tmp/modconfig-gEw4DH/vmnet-only/vnetInt.h:26,
from /tmp/modconfig-gEw4DH/vmnet-only/bridge.c:53:
/tmp/modconfig-gEw4DH/vmnet-only/vm_device_version.h:73:0: warning: "PCI_DEVICE_ID_VMWARE_VMXNET3" redefined
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07B0
^
In file included from ./include/linux/pci.h:37:0,
from /tmp/modconfig-gEw4DH/vmnet-only/compat_netdevice.h:27,
from /tmp/modconfig-gEw4DH/vmnet-only/bridge.c:52:
./include/linux/pci_ids.h:2264:0: note: this is the location of the previous definition
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07b0
^
CC [M] /tmp/modconfig-gEw4DH/vmnet-only/vnetUserListener.o
LD [M] /tmp/modconfig-gEw4DH/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/modconfig-gEw4DH/vmnet-only/vmnet.mod.o
LD [M] /tmp/modconfig-gEw4DH/vmnet-only/vmnet.ko
make[1]: Leaving directory '/usr/src/linux-4.16.3'
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-gEw4DH/vmnet-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-gEw4DH/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory '/tmp/modconfig-gEw4DH/vmnet-only'
make: Entering directory '/tmp/modconfig-gEw4DH/vmci-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/4.16.3/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-4.16.3'
CC [M] /tmp/modconfig-gEw4DH/vmci-only/linux/driver.o
CC [M] /tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.o
CC [M] /tmp/modconfig-gEw4DH/vmci-only/common/vmciDriver.o
CC [M] /tmp/modconfig-gEw4DH/vmci-only/common/vmciResource.o
CC [M] /tmp/modconfig-gEw4DH/vmci-only/common/vmciRoute.o
CC [M] /tmp/modconfig-gEw4DH/vmci-only/common/vmciContext.o
In file included from /tmp/modconfig-gEw4DH/vmci-only/linux/driver.c:60:0:
/tmp/modconfig-gEw4DH/vmci-only/./shared/vm_device_version.h:56:0: warning: "PCI_VENDOR_ID_VMWARE" redefined
#define PCI_VENDOR_ID_VMWARE 0x15AD
^
In file included from ./include/linux/pci.h:37:0,
from /tmp/modconfig-gEw4DH/vmci-only/./shared/compat_pci.h:27,
from /tmp/modconfig-gEw4DH/vmci-only/linux/driver.c:49:
./include/linux/pci_ids.h:2263:0: note: this is the location of the previous definition
#define PCI_VENDOR_ID_VMWARE 0x15ad
^
In file included from /tmp/modconfig-gEw4DH/vmci-only/linux/driver.c:60:0:
/tmp/modconfig-gEw4DH/vmci-only/./shared/vm_device_version.h:73:0: warning: "PCI_DEVICE_ID_VMWARE_VMXNET3" redefined
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07B0
^
In file included from ./include/linux/pci.h:37:0,
from /tmp/modconfig-gEw4DH/vmci-only/./shared/compat_pci.h:27,
from /tmp/modconfig-gEw4DH/vmci-only/linux/driver.c:49:
./include/linux/pci_ids.h:2264:0: note: this is the location of the previous definition
#define PCI_DEVICE_ID_VMWARE_VMXNET3 0x07b0
^
/tmp/modconfig-gEw4DH/vmci-only/linux/driver.c: In function 'VMCIUserVALockPage':
/tmp/modconfig-gEw4DH/vmci-only/linux/driver.c:1470:43: warning: passing argument 5 of 'get_user_pages' from incompatible pointer type
retval = get_user_pages(addr, 1, 1, 0, &page, NULL);
^
In file included from ./include/linux/highmem.h:8:0,
from /tmp/modconfig-gEw4DH/vmci-only/./shared/compat_highmem.h:22,
from /tmp/modconfig-gEw4DH/vmci-only/linux/driver.c:41:
./include/linux/mm.h:1382:6: note: expected 'struct vm_area_struct **' but argument is of type 'struct page **'
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/tmp/modconfig-gEw4DH/vmci-only/linux/driver.c:1470:13: error: too many arguments to function 'get_user_pages'
retval = get_user_pages(addr, 1, 1, 0, &page, NULL);
^
In file included from ./include/linux/highmem.h:8:0,
from /tmp/modconfig-gEw4DH/vmci-only/./shared/compat_highmem.h:22,
from /tmp/modconfig-gEw4DH/vmci-only/linux/driver.c:41:
./include/linux/mm.h:1382:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/tmp/modconfig-gEw4DH/vmci-only/linux/driver.c: In function 'vmci_enable_msix':
/tmp/modconfig-gEw4DH/vmci-only/linux/driver.c:1725:4: error: implicit declaration of function 'pci_enable_msix' [-Werror=implicit-function-declaration]
result = pci_enable_msix(pdev, vmci_dev.msix_entries, VMCI_MAX_INTRS);
^
/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c: In function 'VMCIHost_WaitForCallLocked':
/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:378:4: error: implicit declaration of function 'signal_pending' [-Werror=implicit-function-declaration]
if (signal_pending(current)) {
^
/tmp/modconfig-gEw4DH/vmci-only/linux/driver.c: In function 'vmci_exit':
/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c: In function '__VMCIMemcpyToQueue':
/tmp/modconfig-gEw4DH/vmci-only/linux/driver.c:2493:14: error: void value not ignored as it ought to be
retval = misc_deregister(&linuxState.misc);
^
/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:1205:10: error: implicit declaration of function 'memcpy_fromiovec' [-Werror=implicit-function-declaration]
err = memcpy_fromiovec((uint8 *)va + pageOffset, iov, toCopy);
^
/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c: In function '__VMCIMemcpyFromQueue':
/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:1280:10: error: implicit declaration of function 'memcpy_toiovec' [-Werror=implicit-function-declaration]
err = memcpy_toiovec(iov, (uint8 *)va + pageOffset, toCopy);
^
/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c: In function 'VMCIReleasePages':
/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:1837:7: error: implicit declaration of function 'page_cache_release' [-Werror=implicit-function-declaration]
page_cache_release(pages[i]);
^
/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c: In function 'VMCIHost_GetUserMemory':
/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:2055:28: warning: passing argument 5 of 'get_user_pages' from incompatible pointer type
produceQ->kernelIf->u.h.headerPage,
^
In file included from /tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1382:6: note: expected 'struct vm_area_struct **' but argument is of type 'struct page **'
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:2052:13: error: too many arguments to function 'get_user_pages'
retval = get_user_pages((VA)produceUVA,
^
In file included from /tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1382:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
In file included from ./include/linux/thread_info.h:21:0,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:81,
from ./include/linux/spinlock.h:51,
from ./include/linux/mmzone.h:8,
from ./include/linux/gfp.h:6,
from ./include/linux/mm.h:10,
from /tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:38:
./arch/x86/include/asm/current.h:18:17: warning: passing argument 1 of 'get_user_pages' makes integer from pointer without a cast
#define current get_current()
^
/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:2073:28: note: in expansion of macro 'current'
retval = get_user_pages(current,
^
In file included from /tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1382:6: note: expected 'long unsigned int' but argument is of type 'struct task_struct *'
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
In file included from ./include/linux/thread_info.h:21:0,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:81,
from ./include/linux/spinlock.h:51,
from ./include/linux/mmzone.h:8,
from ./include/linux/gfp.h:6,
from ./include/linux/mm.h:10,
from /tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:38:
./arch/x86/include/asm/current.h:18:17: warning: passing argument 2 of 'get_user_pages' makes integer from pointer without a cast
#define current get_current()
^
/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:2074:28: note: in expansion of macro 'current'
current->mm,
^
In file included from /tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1382:6: note: expected 'long unsigned int' but argument is of type 'struct mm_struct *'
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:2076:28: warning: passing argument 4 of 'get_user_pages' makes pointer from integer without a cast
consumeQ->kernelIf->numPages,
^
In file included from /tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1382:6: note: expected 'struct page **' but argument is of type 'size_t'
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:2077:28: warning: passing argument 5 of 'get_user_pages' makes pointer from integer without a cast
1, 0,
^
In file included from /tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1382:6: note: expected 'struct vm_area_struct **' but argument is of type 'int'
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:2073:13: error: too many arguments to function 'get_user_pages'
retval = get_user_pages(current,
^
In file included from /tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.c:38:0:
./include/linux/mm.h:1382:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
cc1: some warnings being treated as errors
scripts/Makefile.build:324: recipe for target '/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.o' failed
make[2]: *** [/tmp/modconfig-gEw4DH/vmci-only/linux/vmciKernelIf.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
scripts/Makefile.build:324: recipe for target '/tmp/modconfig-gEw4DH/vmci-only/linux/driver.o' failed
make[2]: *** [/tmp/modconfig-gEw4DH/vmci-only/linux/driver.o] Error 1
Makefile:1561: recipe for target '_module_/tmp/modconfig-gEw4DH/vmci-only' failed
make[1]: *** [_module_/tmp/modconfig-gEw4DH/vmci-only] Error 2
make[1]: Leaving directory '/usr/src/linux-4.16.3'
Makefile:110: recipe for target 'vmci.ko' failed
make: *** [vmci.ko] Error 2
make: Leaving directory '/tmp/modconfig-gEw4DH/vmci-only'
Unable to install all modules. See log for details.
newnut {~} root# uname -a
Linux newnut 4.16.3 #1 SMP PREEMPT Sat Apr 21 10:56:04 EDT 2018 x86_64 GNU/Linux
newnut {~} root#