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/flask | |
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/flask')
-rw-r--r-- | xen/xsm/flask/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/xsm/flask/hooks.c b/xen/xsm/flask/hooks.c index 782e28c358..ead5958770 100644 --- a/xen/xsm/flask/hooks.c +++ b/xen/xsm/flask/hooks.c @@ -1550,7 +1550,7 @@ static struct xsm_operations flask_ops = { .cpupool_op = flask_cpupool_op, .sched_op = flask_sched_op, - .__do_xsm_op = do_flask_op, + .do_xsm_op = do_flask_op, #ifdef CONFIG_X86 .shadow_control = flask_shadow_control, |