32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
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
|
|
|