From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OAReF-0006iR-77 for qemu-devel@nongnu.org; Fri, 07 May 2010 13:47:39 -0400 Received: from [140.186.70.92] (port=45362 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OAReD-0006hL-SF for qemu-devel@nongnu.org; Fri, 07 May 2010 13:47:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OAReC-0001Ye-2Q for qemu-devel@nongnu.org; Fri, 07 May 2010 13:47:37 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:50257) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OAReB-0001YI-OG for qemu-devel@nongnu.org; Fri, 07 May 2010 13:47:36 -0400 From: Stefan Weil Date: Fri, 7 May 2010 19:47:31 +0200 Message-Id: <1273254451-19177-1-git-send-email-weil@mail.berlios.de> Subject: [Qemu-devel] [PATCH] tcg: Add missing 'static' attribute List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers tcg_out_reloc is only used locally (in */target.c which is included in tcg.c). Signed-off-by: Stefan Weil --- tcg/tcg.c | 4 ++-- tcg/tcg.h | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index beceff0..f3c7909 100644 --- 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; diff --git a/tcg/tcg.h b/tcg/tcg.h index 166c889..44856e1 100644 --- 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) \ -- 1.7.0