From: Ian Jackson Subject: Re: [PATCH RFC 09/23] lz4: add support for OSes that don't have asm/unaligned.h Date: Tue, 22 Apr 2014 16:25:58 +0100 Message-ID: <21334.35334.980630.391372@mariner.uk.xensource.com> References: <1397657612-57277-1-git-send-email-roger.pau@citrix.com> <1397657612-57277-10-git-send-email-roger.pau@citrix.com> <21328.2212.347963.413355@mariner.uk.xensource.com> <535680DB.3010206@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WccaF-0006zQ-EH for xen-devel@lists.xenproject.org; Tue, 22 Apr 2014 15:26:07 +0000 In-Reply-To: <535680DB.3010206@citrix.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: Roger Pau =?iso-8859-1?Q?Monn=E9?= Cc: yann.collet.73@gmail.com, xen-devel@lists.xenproject.org, "jbeulich@suse.com" , Ian Campbell , kyungsik.lee@lge.com List-Id: xen-devel@lists.xenproject.org Roger Pau Monn=E9 writes ("Re: [PATCH RFC 09/23] lz4: add support for OSes = that don't have asm/unaligned.h"): > On 17/04/14 19:00, Ian Jackson wrote: > > Roger Pau Monne writes ("[PATCH RFC 09/23] lz4: add support for OSes th= at don't have asm/unaligned.h"): > >> Add a configure check for asm/unaligned.h presence, and if it's not > >> available open-code the necessary functions for lz4. > > = > > Where did this code come from ? > = > This came from the Linux kernel, see: > = > http://lxr.free-electrons.com/source/include/asm-generic/unaligned.h?v=3D= 2.6.25#L80 I think you should mention this in the commit message. (Including mentioning the specific Linux version or changeset the file came from.) > Anyway, I think this patch and the preceding one are plain wrong, what > we should do is completely remove the bogus dependence on > asm/unaligned.h, which is a Linux specific header file, and open-code > what we need. > = > I'm CCing the people that added the LZ4 support to Xen, let's see if > they can shed some light on this. OK. Thanks, Ian.