From: "Jan Beulich" Subject: Re: [PATCH] tools/hvmloader: link errno.h from xen internal Date: Mon, 03 Nov 2014 08:50:32 +0000 Message-ID: <54574FE8020000780004439C@mail.emea.novell.com> References: <1414721915-11186-1-git-send-email-tiejun.chen@intel.com> <545361450200007800043DBC@mail.emea.novell.com> <5456E26B.9040106@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5456E26B.9040106@intel.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tiejun Chen Cc: Ian Campbell , Ian Jackson , xen-devel@lists.xen.org, wei.liu2@citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 03.11.14 at 03:03, wrote: > On 2014/10/31 17:15, Jan Beulich wrote: >>>>> On 31.10.14 at 03:18, wrote: >> >> (You omitted half of the tools maintainers; Cc-ing them now.) > > I think I already pick all relevant maintainers to review this patch, > > $ ./scripts/get_maintainer.pl > 0004-tools-hvmloader-link-errno.h-from-xen-internal.patch > Stefano Stabellini > Wei Liu > xen-devel@lists.xen.org > > So please tell me whom should be included specifically. It's not clear to me why the script doesn't name the others. Just go the ./MAINTAINERS and look at the relevant section. >>> --- a/tools/firmware/hvmloader/Makefile >>> +++ b/tools/firmware/hvmloader/Makefile >>> @@ -84,9 +84,13 @@ ROMS += $(SEABIOS_ROM) >>> endif >>> >>> .PHONY: all >>> -all: subdirs-all >>> +all: subdirs-all .dir >>> $(MAKE) hvmloader >>> >>> +.dir: >>> + @rm -rf errno.h >> >> Why? > > We should make sure we are linking to create a non-existing file, > otherwise you may see this, > > ln: failed to create symbolic link '...': File exists But you know of ln's -f option, don't you? >>> --- a/tools/firmware/hvmloader/util.h >>> +++ b/tools/firmware/hvmloader/util.h >>> @@ -6,6 +6,7 @@ >>> #include >>> #include >>> #include >>> +#include "errno.h" >> >> Does this allow xenbus.c to still build? I think this either should go into > > I did a test as follows: > 1: make clean > 2: make xen > 3: make tools > 4: make clean > 5: make tools > > Is this covering xenbus? Yes, but it's still surprising that including both works. Presumably this is because the definitions are in fact identical when you build on Linux. Building elsewhere might then be a problem, so this should be avoid in any event. Jan