Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757156AbYGAOul (ORCPT ); Tue, 1 Jul 2008 10:50:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759779AbYGAOuY (ORCPT ); Tue, 1 Jul 2008 10:50:24 -0400 Received: from gv-out-0910.google.com ([216.239.58.187]:53570 "EHLO gv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759330AbYGAOuW (ORCPT ); Tue, 1 Jul 2008 10:50:22 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=VceXYb1U4m3iuZR6ZKqvgQlZOcDXUm9VPX0l1CvzjMZxJF91ZZKaCZRhZe1e1+OAae sSBvLyax3CSWZlo//a0caxe8m3JheUY/36LaB09TJcgms1FY6o4CWky8ubj7d9KqcEqi xTCUOpdBqxTiqsF9Gt1SPPEX/4VGJzHaCH/No= From: Denys Vlasenko To: Hannes Reinecke Subject: [PATCH 1/3] aic7xxx: introduce "dont_generate_debug_code" keyword in aicasm parser Date: Tue, 1 Jul 2008 18:50:36 +0200 User-Agent: KMail/1.8.2 Cc: James Bottomley , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Andrew Morton References: <200807011848.22599.vda.linux@googlemail.com> In-Reply-To: <200807011848.22599.vda.linux@googlemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807011850.36107.vda.linux@googlemail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2271 Lines: 78 Introduce "dont_generate_debug_code" keyword in aicasm parser. Signed-off-by: Denys Vlasenko -- vda --- linux-2.6.26-rc8.org/drivers/scsi/aic7xxx/aicasm/aicasm_gram.y Tue Jul 1 17:07:14 2008 +++ linux-2.6.26-rc8/drivers/scsi/aic7xxx/aicasm/aicasm_gram.y Tue Jul 1 17:06:58 2008 @@ -147,6 +147,8 @@ %token T_ACCESS_MODE +%token T_DONT_GENERATE_DEBUG_CODE + %token T_MODES %token T_DEFINE @@ -357,6 +359,7 @@ | size | count | access_mode +| dont_generate_debug_code | modes | field_defn | enum_defn @@ -407,6 +410,13 @@ T_ACCESS_MODE T_MODE { cur_symbol->info.rinfo->mode = $2; + } +; + +dont_generate_debug_code: + T_DONT_GENERATE_DEBUG_CODE + { + cur_symbol->dont_generate_debug_code = 1; } ; --- linux-2.6.26-rc8.org/drivers/scsi/aic7xxx/aicasm/aicasm_scan.l Tue Jul 1 17:07:14 2008 +++ linux-2.6.26-rc8/drivers/scsi/aic7xxx/aicasm/aicasm_scan.l Tue Jul 1 17:06:58 2008 @@ -164,6 +164,7 @@ address { return T_ADDRESS; } count { return T_COUNT; } access_mode { return T_ACCESS_MODE; } +dont_generate_debug_code { return T_DONT_GENERATE_DEBUG_CODE; } modes { return T_MODES; } RW|RO|WO { if (strcmp(yytext, "RW") == 0) --- linux-2.6.26-rc8.org/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c Tue Jul 1 17:07:14 2008 +++ linux-2.6.26-rc8/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c Tue Jul 1 17:06:58 2008 @@ -539,6 +539,9 @@ aic_print_include(dfile, stock_include_file); SLIST_FOREACH(curnode, ®isters, links) { + if (curnode->symbol->dont_generate_debug_code) + continue; + switch(curnode->symbol->type) { case REGISTER: case SCBLOC: --- linux-2.6.26-rc8.org/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.h Tue Jul 1 17:07:14 2008 +++ linux-2.6.26-rc8/drivers/scsi/aic7xxx/aicasm/aicasm_symbol.h Tue Jul 1 17:06:58 2008 @@ -137,7 +137,8 @@ struct label_info *linfo; struct cond_info *condinfo; struct macro_info *macroinfo; - }info; + } info; + int dont_generate_debug_code; } symbol_t; typedef struct symbol_ref { -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/