aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2012-04-27 19:18:03 +0000
committerPekka Enberg <penberg@kernel.org>2012-04-27 19:18:03 +0000
commitc7746ccdf758547477f60a53d9118d48e71cbe4e (patch)
treea183bddbe0026df4692441457f2517d1bb3f1975
parentfc4a962b210f7a2bdba3c40ce1053101f072d0a9 (diff)
downloadjato-c7746ccdf758547477f60a53d9118d48e71cbe4e.tar.gz
x86: Make internal IC functions static
Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r--arch/x86/include/arch/inline-cache.h2
-rw-r--r--arch/x86/inline-cache.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86/include/arch/inline-cache.h b/arch/x86/include/arch/inline-cache.h
index 76ad6e05..b2885d35 100644
--- a/arch/x86/include/arch/inline-cache.h
+++ b/arch/x86/include/arch/inline-cache.h
@@ -14,8 +14,6 @@ struct compilation_unit;
void *ic_lookup_vtable(struct vm_class *vmc, struct vm_method *vmm);
bool ic_supports_method(struct vm_method *vmm);
-void ic_set_to_monomorphic(struct vm_class *vmc, struct vm_method *vmm, void *callsite);
-void ic_set_to_megamorphic(struct vm_method *vmm, void *callsite);
void *do_ic_setup(struct vm_class *vmc, struct vm_method *i_vmm, void *callsite);
int convert_ic_calls(struct compilation_unit *cu);
void *resolve_ic_miss(struct vm_class *vmc, struct vm_method *vmm, void *callsite);
diff --git a/arch/x86/inline-cache.c b/arch/x86/inline-cache.c
index b9806e7e..e8693de5 100644
--- a/arch/x86/inline-cache.c
+++ b/arch/x86/inline-cache.c
@@ -90,7 +90,7 @@ bool ic_supports_method(struct vm_method *vmm)
&& !vm_class_is_primitive_class(vmm->class);
}
-void ic_set_to_monomorphic(struct vm_class *vmc, struct vm_method *vmm, void *callsite)
+static void ic_set_to_monomorphic(struct vm_class *vmc, struct vm_method *vmm, void *callsite)
{
struct x86_ic ic;
void *ic_entry_point;
@@ -116,7 +116,7 @@ void ic_set_to_monomorphic(struct vm_class *vmc, struct vm_method *vmm, void *ca
die("Failed to unlock ic_patch_lock\n");
}
-void ic_set_to_megamorphic(struct vm_method *vmm, void *callsite)
+static void ic_set_to_megamorphic(struct vm_method *vmm, void *callsite)
{
struct x86_ic ic;