1 2 Previous Next 17 Replies Latest reply on Apr 24, 2019 3:22 AM by sinclairj Go to original post
      • 15. Re: Workstation 12.1 does not compile on kernel 4.6.0-1
        PhilAd Lurker

        thanks dariusd ...

         

        sed -i -e 's/get_user_pages\(_remote\)*/get_user_pages_remote/g' vmmon-only/linux/hostif.c

        and

        sed -i -e 's/get_user_pages\(_remote\)*/get_user_pages_remote/g' vmnet-only/netif.c


        did correct the changes and it worked for me.


        • 16. Re: Workstation 12.1 does not compile on kernel 4.6.0-1
          sinclairj Lurker

          it did not work for me with linux kernel 4.4.0-144-generic and workstation pro 12.5.7. I am getting below error

           

          make: Entering directory `/tmp/modconfig-omDv5m/vmnet-only'

          /usr/bin/make -C /lib/modules/4.4.0-144-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \

            MODULEBUILDDIR= modules

          make[1]: Entering directory `/usr/src/linux-headers-4.4.0-144-generic'

            CC [M]  /tmp/modconfig-omDv5m/vmnet-only/driver.o

            CC [M]  /tmp/modconfig-omDv5m/vmnet-only/hub.o

            CC [M]  /tmp/modconfig-omDv5m/vmnet-only/userif.o

            CC [M]  /tmp/modconfig-omDv5m/vmnet-only/netif.o

          /tmp/modconfig-omDv5m/vmnet-only/userif.c: In function ‘UserifLockPage’:

          /tmp/modconfig-omDv5m/vmnet-only/userif.c:124:4: error: implicit declaration of function ‘get_user_pages_remote’ [-Werror=implicit-function-declaration]

              retval = get_user_pages_remote(current, current->mm, addr,

              ^

          In file included from include/linux/pci.h:35:0,

                           from /tmp/modconfig-omDv5m/vmnet-only/compat_netdevice.h:27,

                           from /tmp/modconfig-omDv5m/vmnet-only/netif.c:43:

          include/linux/pci_ids.h:2253:0: warning: "PCI_VENDOR_ID_VMWARE" redefined [enabled by default]

          #define PCI_VENDOR_ID_VMWARE  0x15ad

          ^

          In file included from /tmp/modconfig-omDv5m/vmnet-only/net.h:38:0,

                           from /tmp/modconfig-omDv5m/vmnet-only/vnetInt.h:26,

                           from /tmp/modconfig-omDv5m/vmnet-only/netif.c:42:

          /tmp/modconfig-omDv5m/vmnet-only/vm_device_version.h:56:0: note: this is the location of the previous definition

          #define PCI_VENDOR_ID_VMWARE                    0x15AD

          ^

          cc1: some warnings being treated as errors

          make[2]: *** [/tmp/modconfig-omDv5m/vmnet-only/userif.o] Error 1

          make[2]: *** Waiting for unfinished jobs....

          make[1]: *** [_module_/tmp/modconfig-omDv5m/vmnet-only] Error 2

          make[1]: Leaving directory `/usr/src/linux-headers-4.4.0-144-generic'

          make: *** [vmnet.ko] Error 2

          make: Leaving directory `/tmp/modconfig-omDv5m/vmnet-only'

          Unable to install all modules.  See log for details.

          • 17. Re: Workstation 12.1 does not compile on kernel 4.6.0-1
            sinclairj Lurker

            Wanted to informed I am able to fix above error with below changes.

             

            replace  in vmnet-only/userif.c

            ---------

            retval = get_user_pages(current, current->mm, addr,

                                       1, 1, 0, &page, NULL);

            -----------

            to

            ----------

            retval = get_user_pages(current, current->mm, addr,

                                       1, 1, &page, NULL);

            -------------------------

             

            Similarly

             

            replace vmmon-only/linux/hostif.c

            -------------

            retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,

                                       numPages, 0, 0, ppages, NULL);

            ----------------

            to

            -----------

            retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,

                                       numPages, 0, ppages, NULL);

            ---------

             

            Note : do the changes depend on your kernel version in mentioned block of get_user_pages

            1 2 Previous Next