From patchwork Tue Apr 26 14:52:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 8939561 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 76C5DBF440 for ; Tue, 26 Apr 2016 14:55:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 754DF201F2 for ; Tue, 26 Apr 2016 14:55:07 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 678E220121 for ; Tue, 26 Apr 2016 14:55:05 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1av4MS-0007cl-EA; Tue, 26 Apr 2016 14:53:12 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1av4MR-0007Xj-IY for xen-devel@lists.xenproject.org; Tue, 26 Apr 2016 14:53:11 +0000 Received: from [85.158.137.68] by server-3.bemta-3.messagelabs.com id F7/39-03294-7D08F175; Tue, 26 Apr 2016 14:53:11 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRWlGSWpSXmKPExsXitHSDve61Bvl wg0ubNC2+b5nM5MDocfjDFZYAxijWzLyk/IoE1oxdm5awF7SyV9z+dpS1gXESWxcjJ4eEgL/E ly+H2EFsNgEdiYtzdwLFOThEBFQkbu81AAkzCxRLfF3VxwpiCwuESKy6uIgJxGYRUJW42foXr JVXwFXi1OyHzBAjdSVO7t4EFucEim9e8AqsXkjARWLJpsdQ9YISJ2c+YYGYrynRuv03O4QtL9 G8dTYzRL2iRP+8B2DnSAhwS/zttp/AyD8LSfcsJN2zkHQvYGRexahRnFpUllqka2iil1SUmZ5 RkpuYmaNraGCsl5taXJyYnpqTmFSsl5yfu4kRGIAMQLCDccV2z0OMkhxMSqK89/Lkw4X4kvJT KjMSizPii0pzUosPMcpwcChJ8JrUA+UEi1LTUyvSMnOAsQCTluDgURLhbQJJ8xYXJOYWZ6ZDp E4x6nIs+HF7LZMQS15+XqqUOO8UkCIBkKKM0jy4EbC4vMQoKyXMywh0lBBPQWpRbmYJqvwrRn EORiVh3hCQKTyZeSVwm14BHcEEdMTlQ7IgR5QkIqSkGhgzHqjt1FrOa3veZv/fm5aCZc+MVws fXnAx5Vbg8vQVM54uW2Z45W5TX9fpc4x6NQHZQZv2fGPSiNjgMunMy4m1LycvPXKv6+CdX24b xC0mSTc6sMX7frrb+mHL5CmGpx6o97Olfr324J3WqYyKl7LfhdbkZH8512oVvu/oHJUJ2Qsvv DRr+VTTq8RSnJFoqMVcVJwIAEd+XJ3GAgAA X-Env-Sender: prvs=917dd492e=roger.pau@citrix.com X-Msg-Ref: server-5.tower-31.messagelabs.com!1461682370!33860613!8 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.28; banners=-,-,- X-VirusChecked: Checked Received: (qmail 64971 invoked from network); 26 Apr 2016 14:53:10 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-5.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 26 Apr 2016 14:53:10 -0000 X-IronPort-AV: E=Sophos;i="5.24,536,1454976000"; d="scan'208";a="356517760" From: Roger Pau Monne To: Date: Tue, 26 Apr 2016 16:52:22 +0200 Message-ID: <1461682343-20597-14-git-send-email-roger.pau@citrix.com> X-Mailer: git-send-email 2.6.4 (Apple Git-63) In-Reply-To: <1461682343-20597-1-git-send-email-roger.pau@citrix.com> References: <1461682343-20597-1-git-send-email-roger.pau@citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Wei Liu , Ian Jackson , Roger Pau Monne Subject: [Xen-devel] [PATCH v2 for-4.7 13/14] oxenstored: fix error when shifting negative value X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP By explicitly casting it to unsigned. Signed-off-by: Roger Pau Monné --- Cc: Ian Jackson Cc: Wei Liu --- tools/ocaml/xenstored/systemd_stubs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ocaml/xenstored/systemd_stubs.c b/tools/ocaml/xenstored/systemd_stubs.c index 1bd5dea..a78a72b 100644 --- a/tools/ocaml/xenstored/systemd_stubs.c +++ b/tools/ocaml/xenstored/systemd_stubs.c @@ -124,7 +124,7 @@ CAMLprim value ocaml_sd_listen_fds(value connect_to) CAMLparam1(connect_to); CAMLlocal1(sock_ret); - sock_ret = Val_int(-1); + sock_ret = Val_int(-1U); CAMLreturn(sock_ret); } @@ -144,7 +144,7 @@ CAMLprim value ocaml_sd_notify_ready(value ignore) CAMLparam1(ignore); CAMLlocal1(ret); - ret = Val_int(-1); + ret = Val_int(-1U); CAMLreturn(ret); }