diff options
author | Keir Fraser <keir@xen.org> | 2013-01-11 13:45:09 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2013-01-11 13:45:09 +0000 |
commit | 17ef427485fde825bb8f9a6373e2471e0882290b (patch) | |
tree | d9b3f80a0b29986dfe04431c6064a94bbfec1009 /xen/include/xsm | |
parent | c11edec4d6b2a20e9e808437d73a1010be6e31fb (diff) | |
download | xen-17ef427485fde825bb8f9a6373e2471e0882290b.tar.gz xen-17ef427485fde825bb8f9a6373e2471e0882290b.tar.bz2 xen-17ef427485fde825bb8f9a6373e2471e0882290b.zip |
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@xen.org>
Diffstat (limited to 'xen/include/xsm')
-rw-r--r-- | xen/include/xsm/dummy.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/include/xsm/dummy.h b/xen/include/xsm/dummy.h index 18f36b22bf..1ca82b0680 100644 --- a/xen/include/xsm/dummy.h +++ b/xen/include/xsm/dummy.h @@ -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: |