Various trivial fixes
-----BEGIN PGP SIGNATURE----- iQJFBAABCAAwFiEEzS913cjjpNwuT1Fz8ww4vT8vvjwFAl1dKK8SHGxhdXJlbnRA dml2aWVyLmV1AAoJEPMMOL0/L748WhUP93YZ60SfAFhFLkAexO3fJSMzzb02Zvy3 6Q0UyR56xigESPhlfD3rPtPdMpQRnROtIsS1qWcd6x/ejKINh08xyx1HkWLfMKOn F1Cc43AdkSqsuEbIfYVJbL/Yz7H6SnD7B9ghV6B2S+nDnDXGMzObAb6QXUtlnMV+ 4as6pawKOLZiP0zFb+98m1as1gjjuQA/3jrQjWPfF3pzYAaBQPh/pHgDhUSVWjsi G7KWu4iljKio15WhhRlzKylhSD8Z4u1OD5x/3pbPnborVnOzvryWQ1hiRQ1feB/h NUaWs3A2KcgM54LIZN0dC4APGdPlLohwNhakaZR8EnJD9eik2kRO3JBmzorkSHua y0UBpNkjeIR/Cv4ayZv6NtrNFmuEJRRcusPBHg7sg0IBUtd4YdXrfE5d2tcYS3Hu WoZaYLME1FmbuByJFs+cQhMw88ISYvGD5PkzfkZuQC9/nM/zd6pJyRCAhgchIkfh G5iCtOMK8gs5xZjr22pOx/XYLFRzFsOIsGx3kcHH3vSJVS5K3QYFt2xH47YmQZHk 1k3wQfc8ePFPFpR2rnWqg+iYbPgl8FpOsEfz4fuPRwBeRGFRRzfkpXLQ2DJww59/ 8pd2UAWgdwrvtimmykfEmTu+LUuZKwNFJNH3KfNputbBqjnv1KkbmsPqnElj3deo a7LJ72Z1k4Q= =dzAT -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/vivier2/tags/trivial-branch-pull-request' into staging Various trivial fixes # gpg: Signature made Wed 21 Aug 2019 12:19:11 BST # gpg: using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C # gpg: issuer "laurent@vivier.eu" # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full] # gpg: aka "Laurent Vivier <laurent@vivier.eu>" [full] # gpg: aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full] # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F 5173 F30C 38BD 3F2F BE3C * remotes/vivier2/tags/trivial-branch-pull-request: hw/display: Compile various display devices as common object hw/display/sm501: Remove unused include spapr_events: Rewrite a fall through comment vl: Rewrite a fall through comment target/ppc: Rewrite a fall through comment hw/ipmi: Rewrite a fall through comment hw/dma/omap_dma: Move switch 'fall through' comment to correct place json: Move switch 'fall through' comment to correct place hw/net/e1000: Fix erroneous comment .gitignore: ignore some vhost-user* related files configure: fix sdl detection using sdl2-config configure: remove obsoleted $sparc_cpu variable misc: fix naming scheme of compatiblity arrays test: Use g_strndup instead of plain strndup Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
fe066b4848
3
.gitignore
vendored
3
.gitignore
vendored
@ -65,6 +65,8 @@
|
||||
/scsi/qemu-pr-helper
|
||||
/vhost-user-scsi
|
||||
/vhost-user-blk
|
||||
/vhost-user-gpu
|
||||
/vhost-user-input
|
||||
/fsdev/virtfs-proxy-helper
|
||||
*.tmp
|
||||
*.[1-9]
|
||||
@ -131,6 +133,7 @@
|
||||
/docs/interop/qemu-qmp-ref.info*
|
||||
/docs/interop/qemu-qmp-ref.txt
|
||||
/docs/version.texi
|
||||
/contrib/vhost-user-gpu/50-qemu-gpu.json
|
||||
*.tps
|
||||
.stgit-*
|
||||
.git-submodule-status
|
||||
|
12
configure
vendored
12
configure
vendored
@ -3022,15 +3022,15 @@ fi
|
||||
##########################################
|
||||
# SDL probe
|
||||
|
||||
# Look for sdl configuration program (pkg-config or sdl-config). Try
|
||||
# sdl-config even without cross prefix, and favour pkg-config over sdl-config.
|
||||
# Look for sdl configuration program (pkg-config or sdl2-config). Try
|
||||
# sdl2-config even without cross prefix, and favour pkg-config over sdl2-config.
|
||||
|
||||
sdl_probe ()
|
||||
{
|
||||
if $pkg_config sdl2 --exists; then
|
||||
sdlconfig="$pkg_config sdl2"
|
||||
sdlversion=$($sdlconfig --modversion 2>/dev/null)
|
||||
elif has ${sdl_config}; then
|
||||
elif has "$sdl2_config"; then
|
||||
sdlconfig="$sdl2_config"
|
||||
sdlversion=$($sdlconfig --version)
|
||||
else
|
||||
@ -3041,7 +3041,7 @@ sdl_probe ()
|
||||
# no need to do the rest
|
||||
return
|
||||
fi
|
||||
if test -n "$cross_prefix" && test "$(basename "$sdlconfig")" = sdl-config; then
|
||||
if test -n "$cross_prefix" && test "$(basename "$sdlconfig")" = sdl2-config; then
|
||||
echo warning: using "\"$sdlconfig\"" to detect cross-compiled sdl >&2
|
||||
fi
|
||||
|
||||
@ -6384,9 +6384,6 @@ if test "$vnc" = "yes" ; then
|
||||
echo "VNC JPEG support $vnc_jpeg"
|
||||
echo "VNC PNG support $vnc_png"
|
||||
fi
|
||||
if test -n "$sparc_cpu"; then
|
||||
echo "Target Sparc Arch $sparc_cpu"
|
||||
fi
|
||||
echo "xen support $xen"
|
||||
if test "$xen" = "yes" ; then
|
||||
echo "xen ctrl version $xen_ctrl_version"
|
||||
@ -8034,7 +8031,6 @@ preserve_env PKG_CONFIG
|
||||
preserve_env PKG_CONFIG_LIBDIR
|
||||
preserve_env PKG_CONFIG_PATH
|
||||
preserve_env PYTHON
|
||||
preserve_env SDL_CONFIG
|
||||
preserve_env SDL2_CONFIG
|
||||
preserve_env SMBD
|
||||
preserve_env STRIP
|
||||
|
@ -314,7 +314,7 @@ For example:
|
||||
|
||||
a) Add a new property using ``DEFINE_PROP_BOOL`` - e.g. support-foo and
|
||||
default it to true.
|
||||
b) Add an entry to the ``HW_COMPAT_`` for the previous version that sets
|
||||
b) Add an entry to the ``hw_compat_`` for the previous version that sets
|
||||
the property to false.
|
||||
c) Add a static bool support_foo function that tests the property.
|
||||
d) Add a subsection with a .needed set to the support_foo function
|
||||
|
@ -31,13 +31,13 @@ obj-$(CONFIG_MILKYMIST_TMU2) += milkymist-tmu2.o
|
||||
milkymist-tmu2.o-cflags := $(X11_CFLAGS) $(OPENGL_CFLAGS)
|
||||
milkymist-tmu2.o-libs := $(X11_LIBS) $(OPENGL_LIBS)
|
||||
|
||||
obj-$(CONFIG_OMAP) += omap_dss.o
|
||||
common-obj-$(CONFIG_OMAP) += omap_dss.o
|
||||
obj-$(CONFIG_OMAP) += omap_lcdc.o
|
||||
obj-$(CONFIG_PXA2XX) += pxa2xx_lcd.o
|
||||
obj-$(CONFIG_RASPI) += bcm2835_fb.o
|
||||
obj-$(CONFIG_SM501) += sm501.o
|
||||
obj-$(CONFIG_TCX) += tcx.o
|
||||
obj-$(CONFIG_CG3) += cg3.o
|
||||
common-obj-$(CONFIG_PXA2XX) += pxa2xx_lcd.o
|
||||
common-obj-$(CONFIG_RASPI) += bcm2835_fb.o
|
||||
common-obj-$(CONFIG_SM501) += sm501.o
|
||||
common-obj-$(CONFIG_TCX) += tcx.o
|
||||
common-obj-$(CONFIG_CG3) += cg3.o
|
||||
|
||||
obj-$(CONFIG_VGA) += vga.o
|
||||
|
||||
@ -53,7 +53,7 @@ virtio-gpu.o-cflags := $(VIRGL_CFLAGS)
|
||||
virtio-gpu.o-libs += $(VIRGL_LIBS)
|
||||
virtio-gpu-3d.o-cflags := $(VIRGL_CFLAGS)
|
||||
virtio-gpu-3d.o-libs += $(VIRGL_LIBS)
|
||||
obj-$(CONFIG_DPCD) += dpcd.o
|
||||
obj-$(CONFIG_XLNX_ZYNQMP_ARM) += xlnx_dp.o
|
||||
common-obj-$(CONFIG_DPCD) += dpcd.o
|
||||
common-obj-$(CONFIG_XLNX_ZYNQMP_ARM) += xlnx_dp.o
|
||||
|
||||
obj-$(CONFIG_ATI_VGA) += ati.o ati_2d.o ati_dbg.o
|
||||
common-obj-$(CONFIG_ATI_VGA) += ati.o ati_2d.o ati_dbg.o
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include "qapi/error.h"
|
||||
#include "qemu/log.h"
|
||||
#include "qemu/module.h"
|
||||
#include "cpu.h"
|
||||
#include "hw/char/serial.h"
|
||||
#include "ui/console.h"
|
||||
#include "hw/sysbus.h"
|
||||
|
@ -1531,8 +1531,8 @@ static void omap_dma_write(void *opaque, hwaddr addr,
|
||||
case 0x404 ... 0x4fe:
|
||||
if (s->model <= omap_dma_3_1)
|
||||
break;
|
||||
/* fall through */
|
||||
case 0x400:
|
||||
/* Fall through. */
|
||||
if (omap_dma_sys_write(s, addr, value))
|
||||
break;
|
||||
return;
|
||||
|
@ -312,7 +312,7 @@ else {
|
||||
* pc_compat_*() functions that run on machine-init time and
|
||||
* change global QEMU state are deprecated. Please don't create
|
||||
* one, and implement any pc-*-2.4 (and newer) compat code in
|
||||
* HW_COMPAT_*, PC_COMPAT_*, or * pc_*_machine_options().
|
||||
* hw_compat_*, pc_compat_*, or * pc_*_machine_options().
|
||||
*/
|
||||
|
||||
static void pc_compat_2_3_fn(MachineState *machine)
|
||||
|
@ -177,8 +177,7 @@ static void addchar(IPMIBmcExtern *ibe, unsigned char ch)
|
||||
ibe->outbuf[ibe->outlen] = VM_ESCAPE_CHAR;
|
||||
ibe->outlen++;
|
||||
ch |= 0x10;
|
||||
/* No break */
|
||||
|
||||
/* fall through */
|
||||
default:
|
||||
ibe->outbuf[ibe->outlen] = ch;
|
||||
ibe->outlen++;
|
||||
|
@ -1608,7 +1608,7 @@ static const VMStateDescription vmstate_e1000 = {
|
||||
|
||||
/*
|
||||
* EEPROM contents documented in Tables 5-2 and 5-3, pp. 98-102.
|
||||
* Note: A valid DevId will be inserted during pci_e1000_init().
|
||||
* Note: A valid DevId will be inserted during pci_e1000_realize().
|
||||
*/
|
||||
static const uint16_t e1000_eeprom_template[64] = {
|
||||
0x0000, 0x0000, 0x0000, 0x0000, 0xffff, 0x0000, 0x0000, 0x0000,
|
||||
|
@ -314,7 +314,7 @@ rtas_event_log_to_source(SpaprMachineState *spapr, int log_type)
|
||||
g_assert(source->enabled);
|
||||
break;
|
||||
}
|
||||
/* fall back to epow for legacy hotplug interrupt source */
|
||||
/* fall through back to epow for legacy hotplug interrupt source */
|
||||
case RTAS_LOG_TYPE_EPOW:
|
||||
source = spapr_event_sources_get_source(spapr->event_sources,
|
||||
EVENT_CLASS_EPOW);
|
||||
|
@ -519,8 +519,8 @@ static QObject *parse_literal(JSONParserContext *ctxt)
|
||||
}
|
||||
assert(ret == -ERANGE);
|
||||
}
|
||||
/* fall through to JSON_FLOAT */
|
||||
}
|
||||
/* fall through to JSON_FLOAT */
|
||||
case JSON_FLOAT:
|
||||
/* FIXME dependent on locale; a pervasive issue in QEMU */
|
||||
/* FIXME our lexer matches RFC 8259 in forbidding Inf or NaN,
|
||||
|
@ -100,7 +100,7 @@ static int pp_check(int key, int pp, int nx)
|
||||
case 0x1:
|
||||
case 0x2:
|
||||
access |= PAGE_WRITE;
|
||||
/* No break here */
|
||||
/* fall through */
|
||||
case 0x3:
|
||||
access |= PAGE_READ;
|
||||
break;
|
||||
@ -708,7 +708,7 @@ static int mmu40x_get_physical_address(CPUPPCState *env, mmu_ctx_t *ctx,
|
||||
if (pr != 0) {
|
||||
goto check_perms;
|
||||
}
|
||||
/* No break here */
|
||||
/* fall through */
|
||||
case 0x3:
|
||||
/* All accesses granted */
|
||||
ctx->prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC;
|
||||
@ -722,7 +722,7 @@ static int mmu40x_get_physical_address(CPUPPCState *env, mmu_ctx_t *ctx,
|
||||
ret = -2;
|
||||
break;
|
||||
}
|
||||
/* No break here */
|
||||
/* fall through */
|
||||
case 0x1:
|
||||
check_perms:
|
||||
/* Check from TLB entry */
|
||||
|
@ -767,7 +767,7 @@ static void utf8_string(void)
|
||||
if (*end == ' ') {
|
||||
end++;
|
||||
}
|
||||
in = strndup(tail, end - tail);
|
||||
in = g_strndup(tail, end - tail);
|
||||
str = from_json_str(in, j, NULL);
|
||||
g_assert(!str);
|
||||
g_free(in);
|
||||
|
@ -104,9 +104,9 @@ static int get_command_arg_str(const char *name,
|
||||
}
|
||||
|
||||
if (end)
|
||||
*val = strndup(start, end - start);
|
||||
*val = g_strndup(start, end - start);
|
||||
else
|
||||
*val = strdup(start);
|
||||
*val = g_strdup(start);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -126,10 +126,10 @@ static int get_command_arg_ull(const char *name,
|
||||
if (errno || *end) {
|
||||
fprintf(stderr, "%s (%05d): ERROR: cannot parse %s value %s\n",
|
||||
argv0, gettid(), name, valstr);
|
||||
free(valstr);
|
||||
g_free(valstr);
|
||||
return -1;
|
||||
}
|
||||
free(valstr);
|
||||
g_free(valstr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user