]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/mini-os.git/commit
mini-os: Fix stubdom build failures on gcc 4.8
authorMike Neilsen <mneilsen@acm.org>
Wed, 22 Jan 2014 17:41:11 +0000 (11:41 -0600)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 28 Jan 2014 11:11:00 +0000 (11:11 +0000)
commitca6109baeb15be11c4d303e92d0c5535f6f61595
tree6a72f9c253568eb1e2c5c9182b73897e60fa8e04
parentb4cc09531c21a1c12a10daf6f1bceef11f3620e1
mini-os: Fix stubdom build failures on gcc 4.8

This is a fix for bug 35:
http://bugs.xenproject.org/xen/bug/35

This bug report describes several format string mismatches which prevent
building the stubdom target in Xen 4.3 and Xen 4.4-rc2 on gcc 4.8.  This is a
copy of Alex Sharp's original patch with the following modifications:

* Andrew Cooper's recommendation applied to extras/mini-os/xenbus/xenbus.c to
  avoid stack corruption
* Samuel Thibault's recommendation to make "fun" an unsigned int rather than an
  unsigned long in pcifront_physical_to_virtual and related functions
  (extras/mini-os/include/pcifront.h and extras/mini-os/pcifront.c)

Tested on x86_64 gcc Ubuntu/Linaro 4.8.1-10ubuntu9.

Coverity-IDs: 1055807 1055808 1055809 1055810
Signed-off-by: Mike Neilsen <mneilsen@acm.org>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
fbfront.c
include/pcifront.h
pcifront.c
xenbus/xenbus.c