]> git.proxmox.com Git - qemu.git/commitdiff
tcg: Add missing 'static' attribute
authorStefan Weil <weil@mail.berlios.de>
Fri, 7 May 2010 17:47:31 +0000 (19:47 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Fri, 7 May 2010 17:53:05 +0000 (17:53 +0000)
tcg_out_reloc is only used locally (in */target.c which is
included in tcg.c).

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
tcg/tcg.c
tcg/tcg.h

index beceff0c3ce9a55a8c300c5b6bb74848685e0d86..a99ecb9a9e0e6e68b8b3d594af57038951638735 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -100,8 +100,8 @@ static inline void tcg_out32(TCGContext *s, uint32_t v)
 
 /* label relocation processing */
 
-void tcg_out_reloc(TCGContext *s, uint8_t *code_ptr, int type, 
-                   int label_index, long addend)
+static void tcg_out_reloc(TCGContext *s, uint8_t *code_ptr, int type,
+                          int label_index, long addend)
 {
     TCGLabel *l;
     TCGRelocation *r;
index 166c88940271ea3d5759392f97a39d1fb30238b1..44856e1dd55cb85d15890581dd4290085bd0e200 100644 (file)
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -477,9 +477,6 @@ TCGv_i64 tcg_const_i64(int64_t val);
 TCGv_i32 tcg_const_local_i32(int32_t val);
 TCGv_i64 tcg_const_local_i64(int64_t val);
 
-void tcg_out_reloc(TCGContext *s, uint8_t *code_ptr, int type, 
-                   int label_index, long addend);
-
 extern uint8_t code_gen_prologue[];
 #if defined(_ARCH_PPC) && !defined(_ARCH_PPC64)
 #define tcg_qemu_tb_exec(tb_ptr) \