From: VMware, Inc <> Date: Thu, 24 Feb 2011 21:52:22 +0000 (-0800) Subject: Changes in shared code that don't affect open-vm-tools functionality. X-Git-Tag: 2011.02.23-368700~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cca3dbfd77ca2c20c2eac403fe29403a9c9c6fa3;p=thirdparty%2Fopen-vm-tools.git Changes in shared code that don't affect open-vm-tools functionality. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/include/vm_basic_types.h b/open-vm-tools/lib/include/vm_basic_types.h index 70e588918..3f4f1e7ab 100644 --- a/open-vm-tools/lib/include/vm_basic_types.h +++ b/open-vm-tools/lib/include/vm_basic_types.h @@ -678,13 +678,16 @@ typedef void * UserVA; #if defined __GNUC__ /* * Starting at version 3.3, gcc does not always inline functions marked - * 'inline' (it depends on their size). To force gcc to do so, one must use the - * extra __always_inline__ attribute. + * 'inline' (it depends on their size and other factors). To force gcc + * to inline a function, one must use the __always_inline__ attribute. + * This attribute should be used sparingly and with care. It is usually + * preferable to let gcc make its own inlining decisions */ -# define INLINE_SINGLE_CALLER INLINE __attribute__((__always_inline__)) +# define INLINE_ALWAYS INLINE __attribute__((__always_inline__)) #else -# define INLINE_SINGLE_CALLER INLINE +# define INLINE_ALWAYS INLINE #endif +#define INLINE_SINGLE_CALLER INLINE_ALWAYS /* * Used when a hard guaranteed of no inlining is needed. Very few