VMware workstation 12 not working after upgrade to kernel 4.6.4, Fedora 23

My system info Linux c0rp 4.6.4-201.fc23

If you have same problem as me you will see these errors while running vmware-modconfig --console --install-all:

/tmp/modconfig-Rgeazc/vmnet-only/userif.c:116:13: error: too many arguments to function ‘get_user_pages’
    retval = get_user_pages(current, current->mm, addr,
/tmp/modconfig-Rgeazc/vmmon-only/linux/hostif.c:1165:13: error: too many arguments to function ‘get_user_pages’
    retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,



In file included from include/linux/highmem.h:7:0,  
                 from /tmp/modconfig-Rgeazc/vmnet-only/userif.c:26:
include/linux/mm.h:1266:6: note: declared here  
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
In file included from /tmp/modconfig-Rgeazc/vmnet-only/net.h:38:0,  
                 from /tmp/modconfig-Rgeazc/vmnet-only/vnetInt.h:26,
                 from /tmp/modconfig-Rgeazc/vmnet-only/bridge.c:52:
/tmp/modconfig-Rgeazc/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:35:0,  
                 from /tmp/modconfig-Rgeazc/vmnet-only/compat_netdevice.h:27,
                 from /tmp/modconfig-Rgeazc/vmnet-only/bridge.c:51:
include/linux/pci_ids.h:2253:0: note: this is the location of the previous definition  
 #define PCI_VENDOR_ID_VMWARE  0x15ad

I found solution of the problem here https://communities.vmware.com/thread/536705?start=0&tstart=0

I'm just copying answer here just not to forget it. I hope it will help someone else

Correct answer

after kernel 4.4 (VMWare Workstation 12) need some changes in c code:  
/usr/lib/vmware/modules/source

1) vmmon.tar  
  - untar
  - change ./vmmon-only/linux/hostif.c
  - replace all:
  "get_user_pages" to "get_user_pages_remote"
  - tar and replace original
2) vmnet.tar  
  - untar
  - change ./vmnet-only/userif.c
  - replace all:
  "get_user_pages" to "get_user_pages_remote"
  - tar and replace original

After applying suggested fixes just execute vmware-modconfig --console --install-all again.