From d620eaf4e47caf11c8d466061d33fce0d03dbf8e Mon Sep 17 00:00:00 2001 From: Michal Kubecek Date: Thu, 22 Mar 2018 13:45:34 +0100 Subject: [PATCH] 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;