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/include/public/io | |
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/include/public/io')
-rw-r--r-- | xen/include/public/io/fsif.h | 2 | ||||
-rw-r--r-- | xen/include/public/io/xs_wire.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/xen/include/public/io/fsif.h b/xen/include/public/io/fsif.h index 260aac7859..8fc21740ea 100644 --- a/xen/include/public/io/fsif.h +++ b/xen/include/public/io/fsif.h @@ -169,7 +169,7 @@ struct fsif_response { union { uint64_t ret_val; struct fsif_stat_response fstat; - }; + } u; }; typedef struct fsif_response fsif_response_t; diff --git a/xen/include/public/io/xs_wire.h b/xen/include/public/io/xs_wire.h index f6a49ab6bf..24b5619fd8 100644 --- a/xen/include/public/io/xs_wire.h +++ b/xen/include/public/io/xs_wire.h @@ -60,6 +60,7 @@ struct xsd_errors int errnum; const char *errstring; }; +#ifdef EINVAL #define XSD_ERROR(x) { x, #x } /* LINTED: static unused */ static struct xsd_errors xsd_errors[] @@ -82,6 +83,7 @@ __attribute__((unused)) XSD_ERROR(EAGAIN), XSD_ERROR(EISCONN) }; +#endif struct xsd_sockmsg { |