* [PATCH] make some functions/vars static
@ 2007-06-01 10:18 Nguyen Anh Quynh
[not found] ` <9cde8bff0706010318u4240e2e8s3dea442beb45dcff-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Nguyen Anh Quynh @ 2007-06-01 10:18 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1: Type: text/plain, Size: 157 bytes --]
This patch turns some local functions and variables in hypercall.c static.
Signed-off-by: Nguyen Anh Quynh <aquynh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
[-- Attachment #2: patch1 --]
[-- Type: application/octet-stream, Size: 933 bytes --]
diff --git a/qemu/hw/hypercall.c b/qemu/hw/hypercall.c
index e531da1..2a42bb8 100644
--- a/qemu/hw/hypercall.c
+++ b/qemu/hw/hypercall.c
@@ -26,7 +26,7 @@
#include "hypercall.h"
#include <stddef.h>
-int use_hypercall_dev = 0;
+static int use_hypercall_dev = 0;
typedef struct VmChannelCharDriverState {
CharDriverState *vmchannel_hd;
@@ -49,7 +49,7 @@ typedef struct HypercallState {
uint32_t index;
} HypercallState;
-HypercallState *pHypercallStates[MAX_VMCHANNEL_DEVICES] = {NULL};
+static HypercallState *pHypercallStates[MAX_VMCHANNEL_DEVICES] = {NULL};
//#define HYPERCALL_DEBUG 1
@@ -237,7 +237,7 @@ static int hc_load(QEMUFile* f,void* opaque,int version_id)
return 0;
}
-void pci_hypercall_single_init(PCIBus *bus, uint32_t deviceid, uint32_t index)
+static void pci_hypercall_single_init(PCIBus *bus, uint32_t deviceid, uint32_t index)
{
PCIHypercallState *d;
HypercallState *s;
[-- Attachment #3: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
[-- Attachment #4: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] make some functions/vars static
[not found] ` <9cde8bff0706010318u4240e2e8s3dea442beb45dcff-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2007-06-03 7:38 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2007-06-03 7:38 UTC (permalink / raw)
To: Nguyen Anh Quynh; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Nguyen Anh Quynh wrote:
> This patch turns some local functions and variables in hypercall.c
> static.
>
> Signed-off-by: Nguyen Anh Quynh <aquynh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Applied, thanks.
Please give patch attachments real names; and if you end them with
".patch", I think gmail will add the magic necessary to have them show
up inline with the message body.
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-03 7:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-01 10:18 [PATCH] make some functions/vars static Nguyen Anh Quynh
[not found] ` <9cde8bff0706010318u4240e2e8s3dea442beb45dcff-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-03 7:38 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox