diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-06-17 07:21:03 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-06-17 07:21:03 +0100 |
commit | 6f1d3ce238905fc7b4c563a3611576ca25a09a49 (patch) | |
tree | 164961c069a3b70d82d0ce105e9a363d71cacaaf /xen/arch/x86/platform_hypercall.c | |
parent | c93bd0e6ea2a0295f56abd4e58cbb0761f299f0d (diff) | |
download | xen-6f1d3ce238905fc7b4c563a3611576ca25a09a49.tar.gz xen-6f1d3ce238905fc7b4c563a3611576ca25a09a49.tar.bz2 xen-6f1d3ce238905fc7b4c563a3611576ca25a09a49.zip |
Introduce mechanism to check standard conformance of headers
While pretty simplistic, it appears to serve the purpose at the moment
(i.e. it spotted two places where a GNU extension was used withou
proper preprocessor conditionals). The "simplistic" here includes that
the checking gets only done for native builds, and ia64 gets excluded
due to its arch-specific header intentionally (for whatever reason)
checking that anonymous struct/unions can be used.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/platform_hypercall.c')
-rw-r--r-- | xen/arch/x86/platform_hypercall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/platform_hypercall.c b/xen/arch/x86/platform_hypercall.c index bb2f31380d..1dc0017a23 100644 --- a/xen/arch/x86/platform_hypercall.c +++ b/xen/arch/x86/platform_hypercall.c @@ -359,7 +359,7 @@ ret_t do_platform_op(XEN_GUEST_HANDLE(xen_platform_op_t) u_xenpf_op) ret = -ENOSYS; break; } - ret = set_px_pminfo(op->u.set_pminfo.id, &op->u.set_pminfo.perf); + ret = set_px_pminfo(op->u.set_pminfo.id, &op->u.set_pminfo.u.perf); break; case XEN_PM_CX: @@ -368,7 +368,7 @@ ret_t do_platform_op(XEN_GUEST_HANDLE(xen_platform_op_t) u_xenpf_op) ret = -ENOSYS; break; } - ret = set_cx_pminfo(op->u.set_pminfo.id, &op->u.set_pminfo.power); + ret = set_cx_pminfo(op->u.set_pminfo.id, &op->u.set_pminfo.u.power); break; case XEN_PM_TX: |