vmware-host-modules/vmmon-only
Michal Kubecek aeb85e0798 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. 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-13 02:08:13 +01:00
..
autoconf import Workstation 14.0.0 module sources 2017-09-30 21:05:11 +02:00
bootstrap vmmon: drop pointless check 2022-07-26 22:42:33 +02:00
common modules: fix build with -Wmissing-prototypes 2024-01-13 02:08:13 +01:00
include vmmon: use get_user_pages to get page PFN 2023-09-29 11:29:26 +02:00
linux modules: fix build with -Wmissing-prototypes 2024-01-13 02:08:13 +01:00
COPYING import Workstation 12.5.5 module sources 2017-05-31 09:36:09 +02:00
Makefile import Workstation 16.0.0 module sources 2020-09-15 17:05:51 +02:00
Makefile.kernel modules: remove .cache.mk on make clean 2022-07-26 22:43:40 +02:00
Makefile.normal import Workstation 16.2.0 module sources 2021-10-17 15:44:31 +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