From: kraxel@suse.de
To: xen-devel@lists.xensource.com
Subject: [patch] Minor tools/libxc bugfixes.
Date: Fri, 20 Oct 2006 10:39:44 +0200 [thread overview]
Message-ID: <20061020083937.691965000@suse.de> (raw)
[-- Attachment #1: tools-domain-builder-fixups.diff --]
[-- Type: text/plain, Size: 3746 bytes --]
Add -Wmissing-prototypes to CFLAGS, fix warnings resulting from that.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
---
tools/libxc/Makefile | 2 +-
tools/libxc/xc_linux_build.c | 2 +-
tools/libxc/xc_linux_restore.c | 2 +-
tools/libxc/xc_linux_save.c | 2 +-
tools/libxc/xc_private.c | 9 ++++++---
5 files changed, 10 insertions(+), 7 deletions(-)
Index: build-32-unstable-11822/tools/libxc/xc_linux_restore.c
===================================================================
--- build-32-unstable-11822.orig/tools/libxc/xc_linux_restore.c
+++ build-32-unstable-11822/tools/libxc/xc_linux_restore.c
@@ -57,7 +57,7 @@ read_exact(int fd, void *buf, size_t cou
** This function inverts that operation, replacing the pfn values with
** the (now known) appropriate mfn values.
*/
-int uncanonicalize_pagetable(unsigned long type, void *page)
+static int uncanonicalize_pagetable(unsigned long type, void *page)
{
int i, pte_last;
unsigned long pfn;
Index: build-32-unstable-11822/tools/libxc/xc_linux_save.c
===================================================================
--- build-32-unstable-11822.orig/tools/libxc/xc_linux_save.c
+++ build-32-unstable-11822/tools/libxc/xc_linux_save.c
@@ -413,7 +413,7 @@ static int suspend_and_state(int (*suspe
** which entries do not require canonicalization (in particular, those
** entries which map the virtual address reserved for the hypervisor).
*/
-int canonicalize_pagetable(unsigned long type, unsigned long pfn,
+static int canonicalize_pagetable(unsigned long type, unsigned long pfn,
const void *spage, void *dpage)
{
Index: build-32-unstable-11822/tools/libxc/xc_private.c
===================================================================
--- build-32-unstable-11822.orig/tools/libxc/xc_private.c
+++ build-32-unstable-11822/tools/libxc/xc_private.c
@@ -6,6 +6,7 @@
#include <inttypes.h>
#include "xc_private.h"
+#include "xg_private.h"
/* NB: arr must be mlock'ed */
int xc_get_pfn_type_batch(int xc_handle,
@@ -19,10 +20,11 @@ int xc_get_pfn_type_batch(int xc_handle,
return do_domctl(xc_handle, &domctl);
}
+#if 0 /* dead code ??? */
#define GETPFN_ERR (~0U)
-unsigned int get_pfn_type(int xc_handle,
- unsigned long mfn,
- uint32_t dom)
+static unsigned int get_pfn_type(int xc_handle,
+ unsigned long mfn,
+ uint32_t dom)
{
DECLARE_DOMCTL;
domctl.cmd = XEN_DOMCTL_getpageframeinfo;
@@ -35,6 +37,7 @@ unsigned int get_pfn_type(int xc_handle,
}
return domctl.u.getpageframeinfo.type;
}
+#endif
int xc_mmuext_op(
int xc_handle,
Index: build-32-unstable-11822/tools/libxc/Makefile
===================================================================
--- build-32-unstable-11822.orig/tools/libxc/Makefile
+++ build-32-unstable-11822/tools/libxc/Makefile
@@ -31,7 +31,7 @@ GUEST_SRCS-$(CONFIG_HVM) += xc_hvm_build
-include $(XEN_TARGET_ARCH)/Makefile
-CFLAGS += -Werror
+CFLAGS += -Werror -Wmissing-prototypes
CFLAGS += -fno-strict-aliasing
CFLAGS += $(INCLUDES) -I.
Index: build-32-unstable-11822/tools/libxc/xc_linux_build.c
===================================================================
--- build-32-unstable-11822.orig/tools/libxc/xc_linux_build.c
+++ build-32-unstable-11822/tools/libxc/xc_linux_build.c
@@ -128,7 +128,7 @@ static int probeimageformat(const char *
return 0;
}
-int load_initrd(int xc_handle, domid_t dom,
+static int load_initrd(int xc_handle, domid_t dom,
struct initrd_info *initrd,
unsigned long physbase,
xen_pfn_t *phys_to_mach)
--
reply other threads:[~2006-10-20 8:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061020083937.691965000@suse.de \
--to=kraxel@suse.de \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.