[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xsm: Dummy hook functions must be always_inline to ensure constant
# HG changeset patch # User Keir Fraser <keir@xxxxxxx> # Date 1357911909 0 # Node ID 32758c974bf8a2302c3ce9fc21c1e77d55bbc9a5 # Parent f54b7b1f65eaa222e2d251ea741da6dcb7adbebe xsm: Dummy hook functions must be always_inline to ensure constant propagation and dead-code elimination makes LINKER_BUG_ON() operate properly. Signed-off-by: Keir Fraser <keir@xxxxxxx> --- diff -r f54b7b1f65ea -r 32758c974bf8 xen/include/xsm/dummy.h --- a/xen/include/xsm/dummy.h Fri Jan 11 12:23:39 2013 +0000 +++ b/xen/include/xsm/dummy.h Fri Jan 11 13:45:09 2013 +0000 @@ -46,15 +46,15 @@ void __xsm_action_mismatch_detected(void * compile-time checks on the xsm_default_t argument to ensure that the behavior * of the dummy XSM module is the same as the behavior with XSM disabled. */ -#define XSM_INLINE inline +#define XSM_INLINE always_inline #define XSM_DEFAULT_ARG xsm_default_t action, #define XSM_DEFAULT_VOID xsm_default_t action #define XSM_ASSERT_ACTION(def) LINKER_BUG_ON(def != action) #endif /* XSM_ENABLE */ -static inline int xsm_default_action(xsm_default_t action, struct domain *src, - struct domain *target) +static always_inline int xsm_default_action( + xsm_default_t action, struct domain *src, struct domain *target) { switch ( action ) { case XSM_HOOK: _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |