I have also run into this problem in Tumbleweed when installing VMWare Workstation 12 Pro.
I followed the instructions to unpack and make from source as root and ran into the following error:
gjjohnson@p50:/usr/lib/vmware/modules/source> su -
Password:
p50:~ # cd /usr/lib/vmware/modules/source
p50:/usr/lib/vmware/modules/source # tar -xvf vmnet.tar
vmnet-only/
vmnet-only/compat_module.h
vmnet-only/vnetEvent.c
vmnet-only/vnet.h
vmnet-only/nfhook_uses_skb.c
vmnet-only/compat_sock.h
vmnet-only/vmware_pack_init.h
vmnet-only/vm_basic_asm.h
vmnet-only/netif.c
vmnet-only/compat_netdevice.h
vmnet-only/compat_autoconf.h
vmnet-only/vnetKernel.h
vmnet-only/vm_basic_defs.h
vmnet-only/skblin.c
vmnet-only/userif.c
vmnet-only/vnetEvent.h
vmnet-only/compat_version.h
vmnet-only/Makefile.kernel
vmnet-only/vm_oui.h
vmnet-only/smac.c
vmnet-only/driver-config.h
vmnet-only/net.h
vmnet-only/vnetInt.h
vmnet-only/vmware_pack_begin.h
vmnet-only/monitorAction_exported.h
vmnet-only/Makefile
vmnet-only/vm_device_version.h
vmnet-only/vnetFilter.h
vmnet-only/smac.h
vmnet-only/vm_basic_asm_x86_64.h
vmnet-only/includeCheck.h
vmnet-only/vm_assert.h
vmnet-only/smac_compat.h
vmnet-only/vnetFilterInt.h
vmnet-only/smac_compat.c
vmnet-only/netdev_has_dev_net.c
vmnet-only/hub.c
vmnet-only/vm_basic_types.h
vmnet-only/x86cpuid.h
vmnet-only/vm_atomic.h
vmnet-only/vnetUserListener.c
vmnet-only/vm_basic_asm_x86_common.h
vmnet-only/geninclude.c
vmnet-only/community_source.h
vmnet-only/vm_basic_asm_x86.h
vmnet-only/bridge.c
vmnet-only/compat_skbuff.h
vmnet-only/driver.c
vmnet-only/COPYING
vmnet-only/procfs.c
vmnet-only/Makefile.normal
vmnet-only/vmnetInt.h
vmnet-only/netdev_has_net.c
vmnet-only/vmware_pack_end.h
p50:/usr/lib/vmware/modules/source # ls -l
total 5308
-rw-r–r-- 1 root root 839680 Jun 9 08:46 vmblock.tar
-rw-r–r-- 1 root root 1300480 Jun 9 08:46 vmci.tar
-rw-r–r-- 1 root root 1310720 Jun 9 08:46 vmmon.tar
drwxr-xr-x 2 root root 4096 Apr 14 16:48 vmnet-only
-rw-r–r-- 1 root root 880640 Jun 9 08:46 vmnet.tar
-rw-r–r-- 1 root root 1095680 Jun 9 08:46 vsock.tar
p50:/usr/lib/vmware/modules/source # cd vmnet-only
p50:/usr/lib/vmware/modules/source/vmnet-only # make
Using kernel build system.
make -C /lib/modules/4.6.0-1-default/build/include/… SUBDIRS=$PWD SRCROOT=$PWD/.
MODULEBUILDDIR= modules
make[1]: Entering directory ‘/usr/src/linux-4.6.0-1-obj/x86_64/default’
CC [M] /usr/lib/vmware/modules/source/vmnet-only/driver.o
CC [M] /usr/lib/vmware/modules/source/vmnet-only/hub.o
CC [M] /usr/lib/vmware/modules/source/vmnet-only/userif.o
In file included from /usr/src/linux-4.6.0-1/arch/x86/include/asm/processor.h:15:0,
from /usr/src/linux-4.6.0-1/arch/x86/include/asm/cpufeature.h:4,
from /usr/src/linux-4.6.0-1/arch/x86/include/asm/thread_info.h:52,
from /usr/src/linux-4.6.0-1/include/linux/thread_info.h:54,
from /usr/src/linux-4.6.0-1/arch/x86/include/asm/preempt.h:6,
from /usr/src/linux-4.6.0-1/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-1/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-1/include/linux/wait.h:8,
from /usr/src/linux-4.6.0-1/include/linux/fs.h:5,
from /usr/src/linux-4.6.0-1/include/linux/highmem.h:4,
from /usr/lib/vmware/modules/source/vmnet-only/userif.c:26:
/usr/lib/vmware/modules/source/vmnet-only/userif.c: In function ‘UserifLockPage’:
/usr/src/linux-4.6.0-1/arch/x86/include/asm/current.h:17:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast -Wint-conversion]
#define current get_current()
^
/usr/lib/vmware/modules/source/vmnet-only/userif.c:116:28: note: in expansion of macro ‘current’
retval = get_user_pages(current, current->mm, addr,
^
In file included from /usr/src/linux-4.6.0-1/include/linux/highmem.h:7:0,
from /usr/lib/vmware/modules/source/vmnet-only/userif.c:26:
/usr/src/linux-4.6.0-1/include/linux/mm.h:1266: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 /usr/src/linux-4.6.0-1/arch/x86/include/asm/processor.h:15:0,
from /usr/src/linux-4.6.0-1/arch/x86/include/asm/cpufeature.h:4,
from /usr/src/linux-4.6.0-1/arch/x86/include/asm/thread_info.h:52,
from /usr/src/linux-4.6.0-1/include/linux/thread_info.h:54,
from /usr/src/linux-4.6.0-1/arch/x86/include/asm/preempt.h:6,
from /usr/src/linux-4.6.0-1/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-1/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-1/include/linux/wait.h:8,
from /usr/src/linux-4.6.0-1/include/linux/fs.h:5,
from /usr/src/linux-4.6.0-1/include/linux/highmem.h:4,
from /usr/lib/vmware/modules/source/vmnet-only/userif.c:26:
/usr/src/linux-4.6.0-1/arch/x86/include/asm/current.h:17:17: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast -Wint-conversion]
#define current get_current()
^
/usr/lib/vmware/modules/source/vmnet-only/userif.c:116:37: note: in expansion of macro ‘current’
retval = get_user_pages(current, current->mm, addr,
^
In file included from /usr/src/linux-4.6.0-1/include/linux/highmem.h:7:0,
from /usr/lib/vmware/modules/source/vmnet-only/userif.c:26:
/usr/src/linux-4.6.0-1/include/linux/mm.h:1266: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,
^
/usr/lib/vmware/modules/source/vmnet-only/userif.c:117:10: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast -Wint-conversion]
1, 1, 0, &page, NULL);
^
In file included from /usr/src/linux-4.6.0-1/include/linux/highmem.h:7:0,
from /usr/lib/vmware/modules/source/vmnet-only/userif.c:26:
/usr/src/linux-4.6.0-1/include/linux/mm.h:1266:6: note: expected ‘struct page **’ but argument is of type ‘int’
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/usr/lib/vmware/modules/source/vmnet-only/userif.c:116:13: error: too many arguments to function ‘get_user_pages’
retval = get_user_pages(current, current->mm, addr,
^
In file included from /usr/src/linux-4.6.0-1/include/linux/highmem.h:7:0,
from /usr/lib/vmware/modules/source/vmnet-only/userif.c:26:
/usr/src/linux-4.6.0-1/include/linux/mm.h:1266:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/usr/src/linux-4.6.0-1/scripts/Makefile.build:292: recipe for target ‘/usr/lib/vmware/modules/source/vmnet-only/userif.o’ failed
make[4]: *** [/usr/lib/vmware/modules/source/vmnet-only/userif.o] Error 1
/usr/src/linux-4.6.0-1/Makefile:1454: recipe for target ‘module/usr/lib/vmware/modules/source/vmnet-only’ failed
make[3]: *** [module/usr/lib/vmware/modules/source/vmnet-only] Error 2
Makefile:146: recipe for target ‘sub-make’ failed
make[2]: *** [sub-make] Error 2
Makefile:24: recipe for target ‘__sub-make’ failed
make[1]: *** [__sub-make] Error 2
make[1]: Leaving directory ‘/usr/src/linux-4.6.0-1-obj/x86_64/default’
Makefile:120: recipe for target ‘vmnet.ko’ failed
make: *** [vmnet.ko] Error 2
p50:/usr/lib/vmware/modules/source/vmnet-only #
Any suggestions???