OSDN Git Service

misc: don't use hwaddr as a type in trace events
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 6 Mar 2018 13:43:17 +0000 (13:43 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 6 Mar 2018 14:24:30 +0000 (14:24 +0000)
commitf32408f3b472a088467474ab152be3b6285b2d7b
tree25314eeb40e24f8198644f8811c7f560e1050d34
parentb5fe11a49ad3df109bfb32dea2f2ef74d1d3ca13
misc: don't use hwaddr as a type in trace events

Use types that are defined by QEMU in trace events caused build failures
for the UST trace backend:

  In file included from trace-ust-all.c:13:0:
  trace-ust-all.h:11844:206: error: unknown type name ‘hwaddr’

It only knows about C built-in types, and any types that are pulled in
from includs of qemu-common.h and lttng/tracepoint.h. This does not
include the 'hwaddr' type, so replace it with a uint64_t which is what
exec/hwaddr.h defines 'hwaddr' as. This fixes the build failure
introduced by

  commit 9eb8040c2d2b38e1a40bb6129b1b668fa178fcab
  Author: Peter Maydell <peter.maydell@linaro.org>
  Date:   Fri Mar 2 10:45:39 2018 +0000

    hw/misc/tz-ppc: Model TrustZone peripheral protection controller

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20180306134317.836-1-berrange@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/misc/trace-events