From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755404Ab0IMTxx (ORCPT ); Mon, 13 Sep 2010 15:53:53 -0400 Received: from mail.perches.com ([173.55.12.10]:1883 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755193Ab0IMTs0 (ORCPT ); Mon, 13 Sep 2010 15:48:26 -0400 From: Joe Perches To: linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org Subject: [PATCH 08/25] drivers/net/atl1c: Use static const char arrays Date: Mon, 13 Sep 2010 12:47:46 -0700 Message-Id: <709846346da82e1fe8ca60953f9f4193001d6cab.1284406638.git.joe@perches.com> X-Mailer: git-send-email 1.7.3.rc1 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Joe Perches --- drivers/net/atl1c/atl1c.h | 4 ++-- drivers/net/atl1c/atl1c_main.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/atl1c/atl1c.h b/drivers/net/atl1c/atl1c.h index ef4115b..05558a0 100644 --- a/drivers/net/atl1c/atl1c.h +++ b/drivers/net/atl1c/atl1c.h @@ -628,8 +628,8 @@ struct atl1c_adapter { #define AT_READ_REG_ARRAY(a, reg, offset) ( \ readl(((a)->hw_addr + reg) + ((offset) << 2))) -extern char atl1c_driver_name[]; -extern char atl1c_driver_version[]; +extern const char atl1c_driver_name[]; +extern const char atl1c_driver_version[]; extern int atl1c_up(struct atl1c_adapter *adapter); extern void atl1c_down(struct atl1c_adapter *adapter); diff --git a/drivers/net/atl1c/atl1c_main.c b/drivers/net/atl1c/atl1c_main.c index 553230e..aaac76b 100644 --- a/drivers/net/atl1c/atl1c_main.c +++ b/drivers/net/atl1c/atl1c_main.c @@ -22,8 +22,8 @@ #include "atl1c.h" #define ATL1C_DRV_VERSION "1.0.1.0-NAPI" -char atl1c_driver_name[] = "atl1c"; -char atl1c_driver_version[] = ATL1C_DRV_VERSION; +const char atl1c_driver_name[] = "atl1c"; +const char atl1c_driver_version[] = ATL1C_DRV_VERSION; #define PCI_DEVICE_ID_ATTANSIC_L2C 0x1062 #define PCI_DEVICE_ID_ATTANSIC_L1C 0x1063 #define PCI_DEVICE_ID_ATHEROS_L2C_B 0x2060 /* AR8152 v1.1 Fast 10/100 */ -- 1.7.3.rc1