diff options
author | Daniel Solano Gómez <daniel@solanogomez.org> | 2018-05-22 17:09:43 -0500 |
---|---|---|
committer | Daniel Solano Gómez <daniel@solanogomez.org> | 2018-05-22 17:09:43 -0500 |
commit | 5f4cae99e75ff69455c2f8a30b7d3f99f2f5e40f (patch) | |
tree | a535f14d3ea8b31ce393d22105d36376825d3c66 /app-emulation/vmware-modules/files/329-01-vmmon-fix-always_inline-attribute-usage.patch | |
parent | Update to vmware-workstation-14.1.1.7528167-r3 (diff) | |
download | sattvik-5f4cae99e75ff69455c2f8a30b7d3f99f2f5e40f.tar.gz sattvik-5f4cae99e75ff69455c2f8a30b7d3f99f2f5e40f.tar.bz2 sattvik-5f4cae99e75ff69455c2f8a30b7d3f99f2f5e40f.zip |
Update vmware-*
Diffstat (limited to 'app-emulation/vmware-modules/files/329-01-vmmon-fix-always_inline-attribute-usage.patch')
-rw-r--r-- | app-emulation/vmware-modules/files/329-01-vmmon-fix-always_inline-attribute-usage.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app-emulation/vmware-modules/files/329-01-vmmon-fix-always_inline-attribute-usage.patch b/app-emulation/vmware-modules/files/329-01-vmmon-fix-always_inline-attribute-usage.patch new file mode 100644 index 0000000..f9fb7a7 --- /dev/null +++ b/app-emulation/vmware-modules/files/329-01-vmmon-fix-always_inline-attribute-usage.patch @@ -0,0 +1,31 @@ +From c46d05eb1e2d32d82ec377a4c9b0dd0164eee68e Mon Sep 17 00:00:00 2001 +From: Michal Kubecek <mkubecek@suse.cz> +Date: Thu, 22 Mar 2018 13:45:34 +0100 +Subject: [PATCH 08/10] vmmon: fix always_inline attribute usage + +Function declared with __attribute__((always_inline)) should also be +declared as inline, otherwise gcc issues a warning "always_inline function +might not be inlinable". It's just cosmetic but getting rid of known +harmless warnings makes it easier to spot actual problems. Use the +__always_inline macro for LinuxDriverSyncReadTSCs() as this is how always +inline functions should be declared in kernel code. +--- + vmmon-only/linux/driver.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/vmmon-only/linux/driver.c b/vmmon-only/linux/driver.c +index 1905aa4..b37454c 100644 +--- a/vmmon-only/linux/driver.c ++++ b/vmmon-only/linux/driver.c +@@ -981,7 +981,7 @@ LinuxDriverReadTSC(void *data, // OUT: TSC values + *----------------------------------------------------------------------------- + */ + +-__attribute__((always_inline)) static Bool ++__always_inline static Bool + LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min + { + TSCDelta tscDelta; +-- +2.17.0 + |