From patchwork Tue May 24 15:28:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 9133841 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 07BD6607D5 for ; Tue, 24 May 2016 15:30:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF2BA281C3 for ; Tue, 24 May 2016 15:30:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E42E72829D; Tue, 24 May 2016 15:30:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id E0EBD281C3 for ; Tue, 24 May 2016 15:30:15 +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 1b5EFw-000796-I9; Tue, 24 May 2016 15:28:28 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5EFv-00078m-CY for xen-devel@lists.xenproject.org; Tue, 24 May 2016 15:28:27 +0000 Received: from [85.158.137.68] by server-1.bemta-3.messagelabs.com id 41/51-24998-A1374475; Tue, 24 May 2016 15:28:26 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCIsWRWlGSWpSXmKPExsXS6fjDS1ey2CX cYMUmZYvvWyYzOTB6HP5whSWAMYo1My8pvyKBNWPnxEfsBRP5Ko70zGZpYNzF3cXIwSEkkCcx +XBRFyMnB6+AncSNa8eZQGwJAUOJffNXsYHYLAKqEm+e9bKD2GwC6hJtz7azgrSKCBhInDuaB BJmFvCX6Jm3FKxcWMBJovfIBDaQEl4BQYm/O4QhSuwkVtw+wDqBkWsWQmYWkgyErSXx8NctFg hbW2LZwtfMIOXMAtISy/9xQIQdJbad/cSKqgTE9pF4tfIC8wJGjlWMGsWpRWWpRbqGpnpJRZn pGSW5iZk5uoYGxnq5qcXFiempOYlJxXrJ+bmbGIGhxwAEOxjXbPc8xCjJwaQkyvsmzyVciC8p P6UyI7E4I76oNCe1+BCjDAeHkgSveBFQTrAoNT21Ii0zBxgFMGkJDh4lEV4DkDRvcUFibnFmO kTqFKOilDjvukKghABIIqM0D64NFnmXGGWlhHkZgQ4R4ilILcrNLEGVf8UozsGoJMzLATKeJz OvBG76K6DFTECL/b84gywuSURISTUwLg7OZHi7c/ZGvzB2htQjoXFzmufIiVjO/d3+MPW/Rj3 vQ5uWPMk5ZjmnM1snSrZ1PXZ7m3K/NsQxNPmguk17b/85t5uRv/+pS/99aOLqr/U3zG/rtwVi 8lrH1/3czZwcInSja2+NSc96l2AW6TOTBM59OH7o3zT/k3wdws8viExp1Mrk1J2txFKckWiox VxUnAgA3ofgJLcCAAA= X-Env-Sender: JBeulich@suse.com X-Msg-Ref: server-6.tower-31.messagelabs.com!1464103703!15610040!1 X-Originating-IP: [137.65.248.74] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 36665 invoked from network); 24 May 2016 15:28:25 -0000 Received: from prv-mh.provo.novell.com (HELO prv-mh.provo.novell.com) (137.65.248.74) by server-6.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 24 May 2016 15:28:25 -0000 Received: from INET-PRV-MTA by prv-mh.provo.novell.com with Novell_GroupWise; Tue, 24 May 2016 09:28:23 -0600 Message-Id: <57448F3302000078000EE60D@prv-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 14.2.0 Date: Tue, 24 May 2016 09:28:19 -0600 From: "Jan Beulich" To: "xen-devel" Mime-Version: 1.0 Cc: Ian Jackson , Wei Liu Subject: [Xen-devel] [PATCH] libxl: drop stray const from function return type 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-Virus-Scanned: ClamAV using ClamSMTP Some compiler versions warn about this, causing the build to fail due to -Werror. Signed-off-by: Jan Beulich libxl: drop stray const from function return type Some compiler versions warn about this, causing the build to fail due to -Werror. Signed-off-by: Jan Beulich --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -5354,8 +5354,8 @@ libxl_numainfo *libxl_get_numainfo(libxl return ret; } -static const int libxl__xc_version_wrap(libxl__gc *gc, libxl_version_info *info, - xen_build_id_t *build) +static int libxl__xc_version_wrap(libxl__gc *gc, libxl_version_info *info, + xen_build_id_t *build) { int r; Acked-by: Ian Jackson --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -5354,8 +5354,8 @@ libxl_numainfo *libxl_get_numainfo(libxl return ret; } -static const int libxl__xc_version_wrap(libxl__gc *gc, libxl_version_info *info, - xen_build_id_t *build) +static int libxl__xc_version_wrap(libxl__gc *gc, libxl_version_info *info, + xen_build_id_t *build) { int r;