mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
This:
kdd-xen.c: In function 'kdd_access_physical_page':
kdd-xen.c:508:9: warning: implicit declaration of function 'xc_map_foreign_range' [-Wimplicit-function-declaration]
map = xc_map_foreign_range(g->xc_handle,
^
kdd-xen.c:508:13: warning: assignment makes pointer from integer without a cast
map = xc_map_foreign_range(g->xc_handle,
^
was caused by the refactoring of this functionality into
libxenforeignmemory.
Reported by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Tested-by: Olaf Hering <olaf@aepfle.de>
27 lines
537 B
Makefile
27 lines
537 B
Makefile
XEN_ROOT = $(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
CFLAGS += $(CFLAGS_libxenctrl)
|
|
CFLAGS += -DXC_WANT_COMPAT_MAP_FOREIGN_API
|
|
LDLIBS += $(LDLIBS_libxenctrl)
|
|
|
|
CFILES := kdd.c kdd-xen.c
|
|
OBJS := $(CFILES:.c=.o)
|
|
|
|
all: kdd
|
|
|
|
kdd: $(OBJS)
|
|
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) $(APPEND_LDFLAGS)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(OBJS) $(DEPS) kdd
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
|
|
.PHONY: install
|
|
install: all
|
|
[ -d $(DESTDIR)$(sbindir) ] || $(INSTALL_DIR) $(DESTDIR)$(sbindir)
|
|
$(INSTALL_PROG) kdd $(DESTDIR)$(sbindir)/kdd
|