From patchwork Tue Aug 25 03:29:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Perches X-Patchwork-Id: 32007 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 66DFEB7B64 for ; Tue, 25 Aug 2009 13:39:23 +1000 (EST) Received: by ozlabs.org (Postfix) id 59C7DDDDA2; Tue, 25 Aug 2009 13:39:23 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id D5DA6DDDA0 for ; Tue, 25 Aug 2009 13:39:22 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754372AbZHYDjK (ORCPT ); Mon, 24 Aug 2009 23:39:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754364AbZHYDjK (ORCPT ); Mon, 24 Aug 2009 23:39:10 -0400 Received: from mail.perches.com ([173.55.12.10]:1355 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754341AbZHYDjE (ORCPT ); Mon, 24 Aug 2009 23:39:04 -0400 Received: from localhost.localdomain (Joe-Laptop.home [192.168.1.158]) by mail.perches.com (Postfix) with ESMTP id 474AA24369; Mon, 24 Aug 2009 20:29:28 -0700 (PDT) From: Joe Perches To: netdev@vger.kernel.org Cc: Anil Murthy , Sreenivasa Honnur , Sivakumar Subramani , Rastapur Santosh , Ramkrishna Vepa , "David S. Miller" , Andrew Morton , linux-next@vger.kernel.org Subject: [PATCH 1/9] s2io.c: Use const for strings Date: Mon, 24 Aug 2009 20:29:40 -0700 Message-Id: X-Mailer: git-send-email 1.6.3.1.10.g659a0.dirty In-Reply-To: References: Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Signed-off-by: Joe Perches --- drivers/net/s2io.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c index bd6d713..07e95e9 100644 --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c @@ -125,7 +125,7 @@ static inline int is_s2io_card_up(const struct s2io_nic * sp) } /* Ethtool related variables and Macros. */ -static char s2io_gstrings[][ETH_GSTRING_LEN] = { +static const char s2io_gstrings[][ETH_GSTRING_LEN] = { "Register test\t(offline)", "Eeprom test\t(offline)", "Link test\t(online)", @@ -133,7 +133,7 @@ static char s2io_gstrings[][ETH_GSTRING_LEN] = { "BIST Test\t(offline)" }; -static char ethtool_xena_stats_keys[][ETH_GSTRING_LEN] = { +static const char ethtool_xena_stats_keys[][ETH_GSTRING_LEN] = { {"tmac_frms"}, {"tmac_data_octets"}, {"tmac_drop_frms"}, @@ -230,7 +230,7 @@ static char ethtool_xena_stats_keys[][ETH_GSTRING_LEN] = { {"rxf_wr_cnt"} }; -static char ethtool_enhanced_stats_keys[][ETH_GSTRING_LEN] = { +static const char ethtool_enhanced_stats_keys[][ETH_GSTRING_LEN] = { {"rmac_ttl_1519_4095_frms"}, {"rmac_ttl_4096_8191_frms"}, {"rmac_ttl_8192_max_frms"}, @@ -249,7 +249,7 @@ static char ethtool_enhanced_stats_keys[][ETH_GSTRING_LEN] = { {"link_fault_cnt"} }; -static char ethtool_driver_stats_keys[][ETH_GSTRING_LEN] = { +static const char ethtool_driver_stats_keys[][ETH_GSTRING_LEN] = { {"\n DRIVER STATISTICS"}, {"single_bit_ecc_errs"}, {"double_bit_ecc_errs"},