Skip to contentSkip to conversation

tools/misc: Fix linkage of libxenstore

PATCH In review Andrew Cooper 3 participants 3 messages Apr 24, 2014 – May 2, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/misc: Fix linkage of libxenstore

* xen-mfndump doesn't use xenstore at all. Don't link against it.

* xen-hptool can include the correct header rather than externing itself a single function.

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Dario Faggioli <[email protected]>
---
 tools/misc/Makefile     |    2 +-
 tools/misc/xen-hptool.c |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
tools/misc/Makefile +1 -1
index 17aeda5..69b1817 100644
@@ -76,7 +76,7 @@ xen-hptool: xen-hptool.o
 	$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS_libxenctrl) $(LDLIBS_libxenguest) $(LDLIBS_libxenstore) $(APPEND_LDFLAGS)
 
 xen-mfndump: xen-mfndump.o
-	$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS_libxenctrl) $(LDLIBS_libxenguest) $(LDLIBS_libxenstore) $(APPEND_LDFLAGS)
+	$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS_libxenctrl) $(LDLIBS_libxenguest) $(APPEND_LDFLAGS)
 
 xenwatchdogd: xenwatchdogd.o
 	$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS_libxenctrl) $(APPEND_LDFLAGS)
tools/misc/xen-hptool.c +1 -2
index 8aac51c..d0e8e90 100644
@@ -1,6 +1,7 @@
 #include <xenctrl.h>
 #include <xc_private.h>
 #include <xc_core.h>
+#include <xenstore.h>
 #include <unistd.h>
 
 #define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
@@ -96,8 +97,6 @@ static int hp_mem_query_func(int argc, char *argv[])
     return ret;
 }
 
-extern int xs_suspend_evtchn_port(int domid);
-
 static int suspend_guest(xc_interface *xch, xc_evtchn *xce, int domid,
                          int *evtchn, int *lockfd)
 {
Signature · 1 line
1.7.10.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Andrew Cooper

* xen-mfndump doesn't use xenstore at all. Don't link against it.

Yep, sorry for that, the makefile line was copied from the xen-hptool's one, and I missed to spot that unnecessary dependency.

Quoted 8 lines

* xen-hptool can include the correct header rather than externing itself a single function.

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Dario Faggioli <[email protected]>

Regards,
Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 9 lines · Dario Faggioli
Quoted 2 lines · Andrew Cooper

* xen-mfndump doesn't use xenstore at all. Don't link against it.

Yep, sorry for that, the makefile line was copied from the xen-hptool's one, and I missed to spot that unnecessary dependency.

Quoted 3 lines

* xen-hptool can include the correct header rather than externing itself a single function.

Quoted 6 lines
Quoted 5 lines
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Dario Faggioli <[email protected]>

Acked + applied.

Quoted 4 lines

Regards,
Dario