qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] tcg: Add missing 'static' attribute
@ 2010-05-07 17:47 Stefan Weil
  2010-05-07 19:39 ` Blue Swirl
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Weil @ 2010-05-07 17:47 UTC (permalink / raw)
  To: QEMU Developers

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>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] tcg: Add missing 'static' attribute
  2010-05-07 17:47 [Qemu-devel] [PATCH] tcg: Add missing 'static' attribute Stefan Weil
@ 2010-05-07 19:39 ` Blue Swirl
  0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2010-05-07 19:39 UTC (permalink / raw)
  To: Stefan Weil; +Cc: QEMU Developers

Thanks, applied.

On 5/7/10, Stefan Weil <weil@mail.berlios.de> wrote:
> 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>
>  ---
>   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
>
>
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-07 19:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-07 17:47 [Qemu-devel] [PATCH] tcg: Add missing 'static' attribute Stefan Weil
2010-05-07 19:39 ` Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).