From: Ian Jackson Subject: Re: [PATCH v2] tools/libxl: libxl_get_scheduler should return an int Date: Fri, 21 Mar 2014 14:31:08 +0000 Message-ID: <21292.19756.566351.384148@mariner.uk.xensource.com> References: <1395404743-13833-1-git-send-email-julien.grall@linaro.org> <1395405831.19839.34.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WR0Tv-0000jn-9b for xen-devel@lists.xenproject.org; Fri, 21 Mar 2014 14:31:35 +0000 In-Reply-To: <1395405831.19839.34.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: Ian Campbell Cc: xen-devel@lists.xenproject.org, Julien Grall , ian.jackson@eu.citrix.com, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH v2] tools/libxl: libxl_get_scheduler should return an int"): > Are there any API compatibility concerns here? I think there isn't > because > enum foo bar = get_foo() > and > int bar = get_foo() > are both always valid whether get_foo() returns an enum foo or an int. Indeed. In theory there might be code which relies on this enum being an unsigned type but it is much more likely that any other code where the meaning changes was wrong before and will be right afterwards. > So I think we can make this change without a LIBXL_HAVE define. Would be > good to confirm and include the rationale in the commit log. Yes. Ian.