vmware-host-modules/vmnet-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
..
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
bridge.c modules: fix build with -Wmissing-prototypes 2024-01-19 09:00:13 +01:00
community_source.h import Workstation 14.0.0 module sources 2017-09-30 21:05:11 +02:00
compat_autoconf.h vmnet: hack around SLE15-SP5 backport of netdevice::dev_addr changes 2022-11-27 01:52:28 +01:00
compat_compiler.h modules: more hacks for old gcc 2022-11-27 12:18:48 +01:00
compat_module.h import Workstation 12.5.5 module sources 2017-05-31 09:36:09 +02:00
compat_netdevice.h vmnet: hack around RHEL 9.1 backport of netif_rx_ni removal 2022-11-27 01:51:38 +01:00
compat_skbuff.h import Workstation 12.5.5 module sources 2017-05-31 09:36:09 +02:00
compat_sock.h import Workstation 12.5.5 module sources 2017-05-31 09:36:09 +02:00
compat_version.h modules: make COMPAT_LINUX_VERSION_CHECK_LT less tricky 2023-08-12 20:08:37 +02:00
driver-config.h import Workstation 12.5.5 module sources 2017-05-31 09:36:09 +02:00
driver.c modules: fix build with -Wmissing-prototypes 2024-01-19 09:00:13 +01:00
geninclude.c import Workstation 12.5.5 module sources 2017-05-31 09:36:09 +02:00
hub.c vmnet: fix argument type mismatch in VNetHub_AllocPvn() and VNetHubAlloc() 2021-05-20 13:08:14 +02:00
includeCheck.h import Workstation 12.5.5 module sources 2017-05-31 09:36:09 +02:00
net.h import Workstation 14.0.0 module sources 2017-09-30 21:05:11 +02:00
netif.c vmnet: hack around SLE15-SP5 backport of netdevice::dev_addr changes 2022-11-27 01:52:28 +01:00
netif_trans_update.c import Workstation 14.1.0 module sources 2017-12-25 10:06:21 +01:00
procfs.c vmnet: avoid using PDE_DATA() on new kernels 2022-01-23 17:19:57 +01:00
smac.c vmnet: use accessors for net_device::dev_addr 2022-01-11 17:42:12 +01:00
smac.h vmnet: use accessors for net_device::dev_addr 2022-01-11 17:42:12 +01:00
smac_compat.c vmnet: use void as argument list in function definitions (#188) 2023-02-17 10:00:45 +01:00
smac_compat.h import Workstation 12.5.5 module sources 2017-05-31 09:36:09 +02:00
userif.c vmnet: open code csum_and_copy_to_user on kernel >= 5.19 2022-06-07 21:55:58 +02:00
vm_assert.h modules: rename conflicting DO_ONCE() macro 2022-08-11 22:30:25 +02:00
vm_atomic.h import Workstation 14.0.0 module sources 2017-09-30 21:05:11 +02:00
vm_basic_asm.h import Workstation 14.0.0 module sources 2017-09-30 21:05:11 +02:00
vm_basic_asm_x86.h import Workstation 14.0.0 module sources 2017-09-30 21:05:11 +02:00
vm_basic_asm_x86_64.h import Workstation 14.0.0 module sources 2017-09-30 21:05:11 +02:00
vm_basic_asm_x86_common.h import Workstation 14.0.0 module sources 2017-09-30 21:05:11 +02:00
vm_basic_defs.h misc: remove some extraneous whitespace in vm_basic_defs.h 2022-09-12 09:41:21 +02:00
vm_basic_types.h import Workstation 14.0.0 module sources 2017-09-30 21:05:11 +02:00
vm_device_version.h vmnet: use standard definition of PCI_VENDOR_ID_VMWARE_VMXNET3 if available 2018-08-20 07:57:39 +02:00
vm_oui.h import Workstation 14.0.0 module sources 2017-09-30 21:05:11 +02:00
vmnetInt.h import Workstation 14.0.0 module sources 2017-09-30 21:05:11 +02:00
vnet.h vmnet: work around field-spanning write warning 2022-10-16 23:39:10 +02:00
vnetEvent.c vmnet: work around field-spanning write warning 2022-10-16 23:39:10 +02:00
vnetEvent.h import Workstation 12.5.5 module sources 2017-05-31 09:36:09 +02:00
vnetFilter.h import Workstation 12.5.5 module sources 2017-05-31 09:36:09 +02:00
vnetInt.h modules: fix build with -Wmissing-prototypes 2024-01-19 09:00:13 +01:00
vnetKernel.h import Workstation 12.5.5 module sources 2017-05-31 09:36:09 +02:00
vnetUserListener.c vmnet: work around field-spanning write warning 2022-10-16 23:39:10 +02:00