From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH 09/10] xen: arm: Drop device_tree_node_compatible Date: Wed, 18 Jun 2014 15:47:48 +0100 Message-ID: <1403102868.6568.68.camel@kazak.uk.xensource.com> References: <1402919079.14907.22.camel@kazak.uk.xensource.com> <1402919103-29642-9-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Naresh Bhat , julien.grall@linaro.org, tim@xen.org, xen-devel@lists.xen.org, Roy Franz , Fu Wei List-Id: xen-devel@lists.xenproject.org On Wed, 2014-06-18 at 15:43 +0100, Stefano Stabellini wrote: > On Mon, 16 Jun 2014, Ian Campbell wrote: > > Instead use fdt_node_check_compatible from libfdt. > > Unfortunately the two functions are not equivalent: > fdt_node_check_compatible uses memcmp while device_tree_node_compatible > uses strcasecmp that ignores cases. I hadn't spotted this. They can't both be spec complaint I think. I expect fdt_node_check_compatible (from libfdt) is more likely to be the one which is correct. > At the very least we should make a note of this in the commit message. Will do.