diff options
author | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2013-01-10 17:27:58 +0000 |
---|---|---|
committer | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2013-01-10 17:27:58 +0000 |
commit | 58f88f9eb2f2b16f1870c592c3310593039096e8 (patch) | |
tree | 8e8eaf17808e9a4e348ab11c928c35a8898a68a0 /xen/xsm/xsm_core.c | |
parent | 408a9e56343b006c9e58a334f0b97dd2deedf9ac (diff) | |
download | xen-58f88f9eb2f2b16f1870c592c3310593039096e8.tar.gz xen-58f88f9eb2f2b16f1870c592c3310593039096e8.tar.bz2 xen-58f88f9eb2f2b16f1870c592c3310593039096e8.zip |
xsm: Use the dummy XSM module if XSM is disabled
This patch moves the implementation of the dummy XSM module to a
header file that provides inline functions when XSM_ENABLE is not
defined. This reduces duplication between the dummy module and callers
when the implementation of the dummy return is not just "return 0",
and also provides better compile-time checking for completeness of the
XSM implementations in the dummy module.
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/xsm/xsm_core.c')
-rw-r--r-- | xen/xsm/xsm_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/xsm/xsm_core.c b/xen/xsm/xsm_core.c index 46287cb4c1..ca28f914ef 100644 --- a/xen/xsm/xsm_core.c +++ b/xen/xsm/xsm_core.c @@ -113,7 +113,7 @@ int unregister_xsm(struct xsm_operations *ops) long do_xsm_op (XEN_GUEST_HANDLE_PARAM(xsm_op_t) op) { - return __do_xsm_op(op); + return xsm_do_xsm_op(op); } |