[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] hvmloader: Use xen/errno.h rather than the host systems errno.h



On Fri, Feb 19, 2016 at 10:50:29AM +0000, Andrew Cooper wrote:
> On 19/02/16 10:40, Wei Liu wrote:
> > On Thu, Feb 18, 2016 at 10:10:09PM +0000, Andrew Cooper wrote:
> >> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> >> ---
> >> CC: Jan Beulich <JBeulich@xxxxxxxx>
> >> CC: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
> >> CC: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
> >> CC: Wei Liu <wei.liu2@xxxxxxxxxx>
> >> CC: Doug Goldstein <cardoe@xxxxxxxxxx>
> >> ---
> >>  tools/firmware/hvmloader/xenbus.c | 2 +-
> >>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/tools/firmware/hvmloader/xenbus.c 
> >> b/tools/firmware/hvmloader/xenbus.c
> >> index d0ed993..947d865 100644
> >> --- a/tools/firmware/hvmloader/xenbus.c
> >> +++ b/tools/firmware/hvmloader/xenbus.c
> >> @@ -27,7 +27,7 @@
> >>  
> >>  #include "util.h"
> >>  #include "hypercall.h"
> >> -#include <errno.h>
> >> +#include <xen/errno.h>
> > This doesn't seem to compile for me. Xen's error numbers live in a
> > different name space.
> 
> It compiled fine for me.  HVMLoader should use __XEN_TOOLS__.
> 
> Let me double check after a fully clean build.
> 

On staging:

make[1]: Entering directory '/local/scratch/xen.git/tools/firmware/hvmloader'
gcc   -O1 -fno-omit-frame-pointer -m32 -march=i686 -g -fno-strict-aliasing 
-std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement 
-Wno-unused-but-set-variable -Wno-unused-local-typedefs   -O0 -g3 
-D__XEN_INTERFACE_VERSION__=__XEN_LATEST_INTERFACE_VERSION__ -MMD -MF 
.xenbus.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE 
-fno-optimize-sibling-calls -mno-tls-direct-seg-refs  -Werror 
-fno-stack-protector -fno-exceptions -fno-builtin -msoft-float 
-I/local/scratch/xen.git/tools/firmware/hvmloader/../../../tools/include 
-D__XEN_INTERFACE_VERSION__=__XEN_LATEST_INTERFACE_VERSION__ -DENABLE_ROMBIOS 
-DENABLE_SEABIOS  -c -o xenbus.o xenbus.c 
xenbus.c: In function âxenbus_recvâ:
xenbus.c:235:35: error: âxsd_errorsâ undeclared (first use in this function)
         for ( i = 0; i < ((sizeof xsd_errors) / (sizeof xsd_errors[0])); i++ )
                                   ^
xenbus.c:235:35: note: each undeclared identifier is reported only once for 
each function it appears in
xenbus.c:239:16: error: âEIOâ undeclared (first use in this function)
         return EIO;
                ^
xenbus.c: In function âxenstore_writeâ:
xenbus.c:295:15: error: âEIOâ undeclared (first use in this function)
         ret = EIO;
               ^
/local/scratch/xen.git/tools/firmware/hvmloader/../../../tools/Rules.mk:191: 
recipe for target 'xenbus.o' failed
make[1]: *** [xenbus.o] Error 1
make[1]: Leaving directory '/local/scratch/xen.git/tools/firmware/hvmloader'
Makefile:93: recipe for target 'all' failed
make: *** [all] Error 2


I actually had a similar patch stashed in my queue but that was the
reason I never sent it out...

Wei.


> ~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.