tools/misc: Fix linkage of libxenstore
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.
--- tools/misc/Makefile | 2 +- tools/misc/xen-hptool.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
tools/misc/Makefile +1 -1
@@ -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
@@ -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
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.
Signed-off-by Andrew Cooper <[email protected]>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
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
Signed-off-by Andrew Cooper <[email protected]>CC Ian Campbell <[email protected]>CC Ian Jackson <[email protected]>CC Dario Faggioli <[email protected]>Reviewed-by Dario Faggioli <[email protected]>
Acked + applied.
Quoted 4 lines
Regards,
Dario