2 Replies Latest reply on Jul 15, 2017 7:50 PM by rgadsdon

    Linux Host:  Kernel 4.13-rc1 Breaks vmnet..

    rgadsdon Novice

      Tested VMware 12.5.7 with Kernel 4.13-rc1 (Fedora 26, GCC 7.1.1) and vmmon compiles OK, but vmnet fails:

       

      /home/rgadsdon/kernel/vmnet-only/bridge.c: In function ‘VNetBridgeReceiveFromVNet’:

      /home/rgadsdon/kernel/vmnet-only/bridge.c:639:14: error: passing argument 1 of ‘atomic_inc’ from incompatible pointer type [-Werror=incompatible-pointer-types]

         atomic_inc(&clone->users);

                    ^

      In file included from ./include/linux/atomic.h:4:0,

                       from ./include/linux/rcupdate.h:38,

                       from ./include/linux/rculist.h:10,

                       from ./include/linux/pid.h:4,

                       from ./include/linux/sched.h:13,

                       from /home/rgadsdon/kernel/vmnet-only/bridge.c:25:

      ./arch/x86/include/asm/atomic.h:89:29: note: expected ‘atomic_t * {aka struct <anonymous> *}’ but argument is of type ‘refcount_t * {aka struct refcount_struct *}’

      static __always_inline void atomic_inc(atomic_t *v)

                                   ^~~~~~~~~~

      cc1: some warnings being treated as errors

      make[2]: *** [scripts/Makefile.build:303: /home/rgadsdon/kernel/vmnet-only/bridge.o] Error 1

      make[1]: *** [Makefile:1511: _module_/home/rgadsdon/kernel/vmnet-only] Error 2

      make[1]: Leaving directory '/usr/src/linux-4.13-rc1'

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

       

      Robert Gadsdon.

      rglinuxtech.com