Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Km1V8-0007Ur-Kf for qemu-devel@nongnu.org; Sat, 04 Oct 2008 03:24:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Km1V8-0007Uc-7V for qemu-devel@nongnu.org; Sat, 04 Oct 2008 03:24:30 -0400 Received: from [199.232.76.173] (port=59133 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Km1V7-0007UZ-W1 for qemu-devel@nongnu.org; Sat, 04 Oct 2008 03:24:30 -0400 Received: from savannah.gnu.org ([199.232.41.3]:36580 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Km1V7-0007Kq-NI for qemu-devel@nongnu.org; Sat, 04 Oct 2008 03:24:29 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Km1V6-0007fw-Rs for qemu-devel@nongnu.org; Sat, 04 Oct 2008 07:24:29 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Km1V6-0007fm-1Z for qemu-devel@nongnu.org; Sat, 04 Oct 2008 07:24:28 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Sat, 04 Oct 2008 07:24:28 +0000 Subject: [Qemu-devel] [5415] Add some missing static qualifiers Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5415 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5415 Author: blueswir1 Date: 2008-10-04 07:24:27 +0000 (Sat, 04 Oct 2008) Log Message: ----------- Add some missing static qualifiers Modified Paths: -------------- trunk/exec.c trunk/vl.c Modified: trunk/exec.c =================================================================== --- trunk/exec.c 2008-10-04 07:22:29 UTC (rev 5414) +++ trunk/exec.c 2008-10-04 07:24:27 UTC (rev 5415) @@ -82,10 +82,10 @@ #define TARGET_PHYS_ADDR_SPACE_BITS 32 #endif -TranslationBlock *tbs; +static TranslationBlock *tbs; int code_gen_max_blocks; TranslationBlock *tb_phys_hash[CODE_GEN_PHYS_HASH_SIZE]; -int nb_tbs; +static int nb_tbs; /* any access to the tbs or the page table must use this lock */ spinlock_t tb_lock = SPIN_LOCK_UNLOCKED; @@ -102,10 +102,10 @@ #endif uint8_t code_gen_prologue[1024] code_gen_section; -uint8_t *code_gen_buffer; -unsigned long code_gen_buffer_size; +static uint8_t *code_gen_buffer; +static unsigned long code_gen_buffer_size; /* threshold to flush the translated code buffer */ -unsigned long code_gen_buffer_max_size; +static unsigned long code_gen_buffer_max_size; uint8_t *code_gen_ptr; #if !defined(CONFIG_USER_ONLY) @@ -166,7 +166,7 @@ /* XXX: for system emulation, it could just be an array */ static PageDesc *l1_map[L1_SIZE]; -PhysPageDesc **l1_phys_map; +static PhysPageDesc **l1_phys_map; #if !defined(CONFIG_USER_ONLY) static void io_mem_init(void); @@ -637,7 +637,7 @@ } } -void tb_jmp_check(TranslationBlock *tb) +static void tb_jmp_check(TranslationBlock *tb) { TranslationBlock *tb1; unsigned int n1; Modified: trunk/vl.c =================================================================== --- trunk/vl.c 2008-10-04 07:22:29 UTC (rev 5414) +++ trunk/vl.c 2008-10-04 07:24:27 UTC (rev 5415) @@ -7359,7 +7359,7 @@ /***********************************************************/ /* machine registration */ -QEMUMachine *first_machine = NULL; +static QEMUMachine *first_machine = NULL; int qemu_register_machine(QEMUMachine *m) {