ia64/xen-unstable

changeset 15365:f1ba2e652724

Make Xen headers lint-clean, and fix xs_wire.h for Solaris compiler.
Signed-off-by: John Levon <john.levon@sun.com>
Signed-off-by: Ryan Scott <ryan.scott@sun.com>
author Keir Fraser <keir@xensource.com>
date Fri Jun 15 11:50:54 2007 +0100 (2007-06-15)
parents ba61ec7df632
children 3b51eebdf9ab 8ad38aaaeb89
files xen/include/public/io/ring.h xen/include/public/io/xs_wire.h
line diff
     1.1 --- a/xen/include/public/io/ring.h	Fri Jun 15 10:36:31 2007 +0100
     1.2 +++ b/xen/include/public/io/ring.h	Fri Jun 15 11:50:54 2007 +0100
     1.3 @@ -133,7 +133,7 @@ typedef struct __name##_back_ring __name
     1.4  #define SHARED_RING_INIT(_s) do {                                       \
     1.5      (_s)->req_prod  = (_s)->rsp_prod  = 0;                              \
     1.6      (_s)->req_event = (_s)->rsp_event = 1;                              \
     1.7 -    memset((_s)->pad, 0, sizeof((_s)->pad));                            \
     1.8 +    (void)memset((_s)->pad, 0, sizeof((_s)->pad));                      \
     1.9  } while(0)
    1.10  
    1.11  #define FRONT_RING_INIT(_r, _s, __size) do {                            \
     2.1 --- a/xen/include/public/io/xs_wire.h	Fri Jun 15 10:36:31 2007 +0100
     2.2 +++ b/xen/include/public/io/xs_wire.h	Fri Jun 15 11:50:54 2007 +0100
     2.3 @@ -60,7 +60,11 @@ struct xsd_errors
     2.4      const char *errstring;
     2.5  };
     2.6  #define XSD_ERROR(x) { x, #x }
     2.7 -static struct xsd_errors xsd_errors[] __attribute__((unused)) = {
     2.8 +static struct xsd_errors xsd_errors[]
     2.9 +#if defined(__GNUC__)
    2.10 +__attribute__((unused))
    2.11 +#endif
    2.12 +    = {
    2.13      XSD_ERROR(EINVAL),
    2.14      XSD_ERROR(EACCES),
    2.15      XSD_ERROR(EEXIST),