From patchwork Fri Jul 11 15:02:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Fehlig X-Patchwork-Id: 33500 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0994A20672 for ; Fri, 11 Jul 2014 15:05:20 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id eb12sf1318373oac.5 for ; Fri, 11 Jul 2014 08:05:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:cc:subject :precedence:list-id:list-unsubscribe:list-post:list-help :list-subscribe:mime-version:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive :content-type:content-transfer-encoding; bh=yDiAyc2RwgZ7bIgF8/jhQ0lNNlRuBbjmKenMR8tffcQ=; b=lncfVvDDlKOhhGHlGQ25aesrK6844JtK4uKQOVXrWl6yKr7Gg574DraJHWGi3XAvAf 9jB9R23BvgBFnLaT3lBAHICGUpxtxhSJxxiJDPf8a+S5f/BOu1bU7YNmfC0lJMenJ4J7 jKGEBX6RzBeHwNRv0FMDCTYA1WfqRW65NEFtCqIoqs9ojYERzrYqy33/XnRZRb2FVfzp wPCiJjTGTeZTk9uU7ZMEcMgo3pPTV+vBrhvMKJYfa6IONpeU74rFGvUZw9UokMSnbJuf a6qNlFdFL0rQSqZQS4P6qAIJ8VSHQHoZ9XxnRT8oujkjjxiBmkCQWq6t5/3RKq566ChP EAgg== X-Gm-Message-State: ALoCoQkLvyMno5FUypEl+WNKU9Pp0QevfWh2O+sWyZ0vdf8iQZYDxSvIczA023k7MDNac7xhCk6/ X-Received: by 10.182.45.161 with SMTP id o1mr26684275obm.2.1405091119611; Fri, 11 Jul 2014 08:05:19 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.168 with SMTP id h37ls432209qgd.62.gmail; Fri, 11 Jul 2014 08:05:19 -0700 (PDT) X-Received: by 10.220.200.202 with SMTP id ex10mr1334846vcb.63.1405091119510; Fri, 11 Jul 2014 08:05:19 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id mb10si1735937vcb.59.2014.07.11.08.05.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Jul 2014 08:05:19 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id id10so2302831vcb.16 for ; Fri, 11 Jul 2014 08:05:19 -0700 (PDT) X-Received: by 10.58.112.65 with SMTP id io1mr1320167veb.61.1405091119337; Fri, 11 Jul 2014 08:05:19 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp42957vcb; Fri, 11 Jul 2014 08:05:18 -0700 (PDT) X-Received: by 10.52.231.8 with SMTP id tc8mr31425920vdc.35.1405091118879; Fri, 11 Jul 2014 08:05:18 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id hk8si1722741vdb.79.2014.07.11.08.05.18 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 11 Jul 2014 08:05:18 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X5cLz-0001Ff-Du; Fri, 11 Jul 2014 15:03:15 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X5cLx-0001FX-KM for xen-devel@lists.xen.org; Fri, 11 Jul 2014 15:03:13 +0000 Received: from [85.158.139.211:31460] by server-14.bemta-5.messagelabs.com id 78/4F-27057-0BCFFB35; Fri, 11 Jul 2014 15:03:12 +0000 X-Env-Sender: jfehlig@suse.com X-Msg-Ref: server-6.tower-206.messagelabs.com!1405090991!15056081!1 X-Originating-IP: [137.65.248.124] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 10632 invoked from network); 11 Jul 2014 15:03:12 -0000 Received: from inet-orm.provo.novell.com (HELO mail.novell.com) (137.65.248.124) by server-6.tower-206.messagelabs.com with SMTP; 11 Jul 2014 15:03:12 -0000 Received: from jfehlig2.provo.novell.com ([137.65.221.65]) by mail.novell.com with ESMTP; Fri, 11 Jul 2014 09:02:59 -0600 From: Jim Fehlig To: libvir-list@redhat.com Date: Fri, 11 Jul 2014 09:02:47 -0600 Message-Id: <1405090967-9103-1-git-send-email-jfehlig@suse.com> X-Mailer: git-send-email 1.8.4.5 Cc: Ian Campbell , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH] libxl: Correct cast to virDomainDiskDiscard enum. X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: jfehlig@suse.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: From: Ian Campbell This was converted to a typedef in 5a2bd4c9171d "conf: more enum cleanups in "src/conf/domain_conf.h"" causing: libxl/libxl_conf.c: In function 'libxlDiskSetDiscard': libxl/libxl_conf.c:724:19: error: conversion to incomplete type Signed-off-by: Ian Campbell --- This build failure was found by the osstest build bot http://lists.xen.org/archives/html/xen-devel/2014-07/msg01552.html Pushing under the build-breaker rule. src/libxl/libxl_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c index 0b4a0b5..f620d47 100644 --- a/src/libxl/libxl_conf.c +++ b/src/libxl/libxl_conf.c @@ -721,7 +721,7 @@ libxlDiskSetDiscard(libxl_device_disk *x_disk, int discard) if (!x_disk->readwrite) return 0; #if defined(LIBXL_HAVE_LIBXL_DEVICE_DISK_DISCARD_ENABLE) - switch ((enum virDomainDiskDiscard)discard) { + switch ((virDomainDiskDiscard)discard) { case VIR_DOMAIN_DISK_DISCARD_DEFAULT: case VIR_DOMAIN_DISK_DISCARD_LAST: break;