vmware-host-modules/vmmon-only
Michal Kubecek 05e69f5a4e modules: fix build with -Wmissing-prototypes
Mainline commit 0fcb70851fbf ("Makefile.extrawarn: turn on
missing-prototypes globally") in 6.8-rc1 enables -Wmissing-prototypes
globally, revealing a lot of unclean code and also some actual problems.
This is also the case in vmmon and vmnet modules.

Most of them are addressed by making functions used only within one file
static. A special case are Vmx86_MapPage() and Vmx86_UnmapPage() which were
defined since Workstation 14.0.0 but they are not actually used anywhere
until 15.0.0 so that dropping them seems to be the best option.

The missing prototype of random_get_entropy_fallback() is handled by
including <linux/timex.h> rather than <asm/timex.h>.

Finally, there are four functions in vmnet module which are actually used
in multiple files but instead of proper declarations, their prototype is
duplicated in vmnet-only/driver.c, risking that the two copies won't match
(which actually happened in one case). The cleanest solution would be
creating separate header files for them (bridge.h, netif.h, userif.h and
vnetUserListener.h) and including them in the respective source file and
driver.c. As the developers already handle similar cases by simply putting
the declarations into vnetInt.h, let us do the same to keep things simple.
2024-01-19 09:00:13 +01:00
..
autoconf import Workstation 14.0.0 module sources 2017-09-30 21:05:11 +02:00
bootstrap modules: fix build with -Wmissing-prototypes 2024-01-19 09:00:13 +01:00
common modules: fix build with -Wmissing-prototypes 2024-01-19 09:00:13 +01:00
include vmmon: drop old fallback thread/process iteration macro definitions 2023-09-29 16:30:21 +02:00
linux modules: fix build with -Wmissing-prototypes 2024-01-19 09:00:13 +01:00
vmcore import Workstation 14.0.0 module sources 2017-09-30 21:05:11 +02:00
COPYING import Workstation 12.5.5 module sources 2017-05-31 09:36:09 +02:00
Makefile modules: replace SUBDIRS with M 2019-01-07 13:38:07 +01:00
Makefile.kernel modules: remove .cache.mk on make clean 2018-08-20 07:57:39 +02:00
Makefile.normal import Workstation 14.0.0 module sources 2017-09-30 21:05:11 +02:00
README import Workstation 14.0.0 module sources 2017-09-30 21:05:11 +02:00

README

This files in this directory and its subdirectories are the kernel module
portion of the VMware Virtual Machine Monitor.  In order to build, make
certain the Makefile is correct, especially in whether or not your system
is multi-processor and then just type

        make

from this directory.  A copy of the module will be left in

        driver-<kernel version>/vmmon.o

(e.g. driver-up-2.0.32/vmmon.o).

If you have any problems or questions, send mail to support@vmware.com