From patchwork Mon Feb 4 15:27:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lespiau, Damien" X-Patchwork-Id: 2093051 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id B0BE5DFE82 for ; Mon, 4 Feb 2013 15:49:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9607CE612F for ; Mon, 4 Feb 2013 07:49:55 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 3F9AEE60BF for ; Mon, 4 Feb 2013 07:29:36 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 04 Feb 2013 07:29:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,600,1355126400"; d="scan'208";a="257441935" Received: from unknown (HELO dyon.amr.corp.intel.com) ([10.255.12.132]) by orsmga001.jf.intel.com with ESMTP; 04 Feb 2013 07:29:35 -0800 From: Damien Lespiau To: intel-gfx@lists.freedesktop.org Date: Mon, 4 Feb 2013 15:27:36 +0000 Message-Id: <1359991705-5254-42-git-send-email-damien.lespiau@intel.com> X-Mailer: git-send-email 1.7.7.5 In-Reply-To: <1359991705-5254-1-git-send-email-damien.lespiau@intel.com> References: <1359991705-5254-1-git-send-email-damien.lespiau@intel.com> Subject: [Intel-gfx] [PATCH 41/90] assembler: Don't expose functions only used in main.c X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org and make then static. Signed-off-by: Damien Lespiau --- assembler/gen4asm.h | 2 -- assembler/main.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/assembler/gen4asm.h b/assembler/gen4asm.h index 388cc75..8dd08b7 100644 --- a/assembler/gen4asm.h +++ b/assembler/gen4asm.h @@ -234,8 +234,6 @@ struct declared_register { }; struct declared_register *find_register(char *name); void insert_register(struct declared_register *reg); -void add_label(struct brw_program_instruction *instruction); -int label_to_addr(char *name, int start_addr); int yyparse(void); int yylex(void); diff --git a/assembler/main.c b/assembler/main.c index 85f0790..176835b 100644 --- a/assembler/main.c +++ b/assembler/main.c @@ -155,7 +155,7 @@ void insert_register(struct declared_register *reg) insert_hash_item(declared_register_table, reg->name, reg); } -void add_label(struct brw_program_instruction *i) +static void add_label(struct brw_program_instruction *i) { struct label_item **p = &label_table; @@ -170,7 +170,7 @@ void add_label(struct brw_program_instruction *i) /* Some assembly code have duplicated labels. Start from start_addr. Search as a loop. Return the first label found. */ -int label_to_addr(char *name, int start_addr) +static int label_to_addr(char *name, int start_addr) { /* return the first label just after start_addr, or the first label from the head */ struct label_item *p;