From: Ian Campbell Subject: Re: [PATCH v5 09/12] libxl: ocaml: add some missing CAML macros Date: Wed, 27 Nov 2013 11:53:56 +0000 Message-ID: <1385553236.23112.177.camel@kazak.uk.xensource.com> References: <1385488371-28875-1-git-send-email-rob.hoes@citrix.com> <1385488371-28875-10-git-send-email-rob.hoes@citrix.com> <1385552869.23112.176.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1385552869.23112.176.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Rob Hoes Cc: ian.jackson@citrix.com, Ian Jackson , dave.scott@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2013-11-27 at 11:47 +0000, Ian Campbell wrote: > On Tue, 2013-11-26 at 17:52 +0000, Rob Hoes wrote: > > Signed-off-by: Rob Hoes > > CC: Ian Campbell > > CC: Ian Jackson > > CC: Dave Scott > > --- > > tools/ocaml/libs/xl/xenlight_stubs.c | 7 +++++-- > > 1 file changed, 5 insertions(+), 2 deletions(-) > > > > diff --git a/tools/ocaml/libs/xl/xenlight_stubs.c b/tools/ocaml/libs/xl/xenlight_stubs.c > > index 01ba3fe..7012045 100644 > > --- a/tools/ocaml/libs/xl/xenlight_stubs.c > > +++ b/tools/ocaml/libs/xl/xenlight_stubs.c > > @@ -58,6 +58,7 @@ static value Val_error (libxl_error error_c); > > > > static void failwith_xl(int error, char *fname) > > { > > + CAMLparam0(); > > CAMLlocal1(arg); > > static value *exc = NULL; > > > > @@ -74,6 +75,7 @@ static void failwith_xl(int error, char *fname) > > Store_field(arg, 1, caml_copy_string(fname)); > > > > caml_raise_with_arg(*exc, arg); > > + CAMLreturn0; > > > raise_with_arg has Noreturn, although this is probably harmless enough > and might keep some stupider compilers happy. Oops, meant to say: Nonetheless: Acked-by: Ian Campbell