Skip to contentSkip to conversation

xen: arm: Drop trailing ; from DEFINE_XEN_GUEST_HANDLE

PATCH In review Ian Campbell 3 participants 4 messages Dec 14, 2015 – Dec 15, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: arm: Drop trailing ; from DEFINE_XEN_GUEST_HANDLE

This is always present at the point of use, which with -pedantic provokes:

error: ISO C does not allow extra ';' outside of a function [-Werror=edantic]

---
 xen/include/public/arch-arm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/include/public/arch-arm.h +1 -1
index 6322548..870bc3b 100644
@@ -173,7 +173,7 @@
     typedef union { type *p; unsigned long q; }                 \
         __guest_handle_ ## name;                                \
     typedef union { type *p; uint64_aligned_t q; }              \
-        __guest_handle_64_ ## name;
+        __guest_handle_64_ ## name
 
 /*
  * XEN_GUEST_HANDLE represents a guest pointer, when passed as a field
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Ian Campbell

This is always present at the point of use, which with -pedantic provokes:

error: ISO C does not allow extra ';' outside of a function [-Werror=edantic]

Quoted 16 lines
 xen/include/public/arch-arm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/include/public/arch-arm.h +1 -1
index 6322548..870bc3b 100644
@@ -173,7 +173,7 @@
     typedef union { type *p; unsigned long q; }                 \
         __guest_handle_ ## name;                                \
     typedef union { type *p; uint64_aligned_t q; }              \
-        __guest_handle_64_ ## name;
+        __guest_handle_64_ ## name
 
 /*
  * XEN_GUEST_HANDLE represents a guest pointer, when passed as a field
author Applied
#3 lore raw
Quoted 10 lines · Jan Beulich
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 14.12.15 at 17:21, <[email protected]> wrote:

This is always present at the point of use, which with -pedantic provokes:

error: ISO C does not allow extra ';' outside of a function [- Werror=edantic]

FWIW Acked-by: Jan Beulich <[email protected]>

Thanks, applied.