[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


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Wed, 16 Jan 2013 08:22:23 +0000
  • Delivery-date: Wed, 16 Jan 2013 08:22:28 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.