From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwDkV-0001Te-SZ for qemu-devel@nongnu.org; Mon, 17 Oct 2016 15:39:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwDkU-0007xB-W1 for qemu-devel@nongnu.org; Mon, 17 Oct 2016 15:39:03 -0400 From: Eric Auger Date: Mon, 17 Oct 2016 19:38:28 +0000 Message-Id: <1476733110-14293-7-git-send-email-eric.auger@redhat.com> In-Reply-To: <1476733110-14293-1-git-send-email-eric.auger@redhat.com> References: <1476733110-14293-1-git-send-email-eric.auger@redhat.com> Subject: [Qemu-devel] [RFC v5 6/8] hw: platform-bus: Add platform bus stub List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: eric.auger@redhat.com, eric.auger.pro@gmail.com, peter.maydell@linaro.org, qemu-arm@nongnu.org, qemu-devel@nongnu.org, alex.williamson@redhat.com, pranav.sawargaonkar@gmail.com Cc: diana.craciun@freescale.com, christoffer.dall@linaro.org, drjones@redhat.com, Bharat.Bhushan@freescale.com, fkan@apm.com platform_bus_map_region is bound to be called in VFIO common code. Let's compile this stub in case CONFIG_SOFTMMU is set (VFIO requirement) and CONFIG_PLATFORM_BUS is not set. Signed-off-by: Eric Auger --- hw/core/Makefile.objs | 2 +- hw/core/platform-bus-stub.c | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 hw/core/platform-bus-stub.c diff --git a/hw/core/Makefile.objs b/hw/core/Makefile.objs index a4c94e5..f6ececc 100644 --- a/hw/core/Makefile.objs +++ b/hw/core/Makefile.objs @@ -18,5 +18,5 @@ common-obj-$(CONFIG_SOFTMMU) += qdev-properties-system.o common-obj-$(CONFIG_SOFTMMU) += register.o common-obj-$(CONFIG_SOFTMMU) += or-irq.o common-obj-$(CONFIG_PLATFORM_BUS) += platform-bus.o - +common-obj-$(call land,$(CONFIG_SOFTMMU),$(call lnot,$(CONFIG_PLATFORM_BUS))) += platform-bus-stub.o obj-$(CONFIG_SOFTMMU) += generic-loader.o diff --git a/hw/core/platform-bus-stub.c b/hw/core/platform-bus-stub.c new file mode 100644 index 0000000..41d4ab6 --- /dev/null +++ b/hw/core/platform-bus-stub.c @@ -0,0 +1,27 @@ +/* + * Platform Bus device stub + * + * platform_bus_map_region is used in VFIO common code + * + * Copyright Red Hat, Inc. 2016 + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see . + */ + +#include "qemu/osdep.h" +#include "hw/platform-bus.h" + +void platform_bus_map_region(PlatformBusDevice *pbus, MemoryRegion *mr) +{ +} -- 1.9.1