Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932273Ab0KUCw3 (ORCPT ); Sat, 20 Nov 2010 21:52:29 -0500 Received: from mail.perches.com ([173.55.12.10]:1663 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756099Ab0KUCkA (ORCPT ); Sat, 20 Nov 2010 21:40:00 -0500 From: Joe Perches To: Philip Blundell Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 20/62] eexpress: Use static const Date: Sat, 20 Nov 2010 18:38:21 -0800 Message-Id: <58f58a1c0786269a4369629c7ef7debe7adf3b02.1290305776.git.joe@perches.com> X-Mailer: git-send-email 1.7.3.2.245.g03276.dirty In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1256 Lines: 33 Using static const generally increases object text and decreases data size. It also generally decreases overall object size. text data bss dec hex filename 20165 73 4400 24638 603e drivers/net/eexpress.o.new 20165 73 4400 24638 603e drivers/net/eexpress.o.old Signed-off-by: Joe Perches --- drivers/net/eexpress.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/eexpress.c b/drivers/net/eexpress.c index 12c37d2..48ee51b 100644 --- a/drivers/net/eexpress.c +++ b/drivers/net/eexpress.c @@ -1103,7 +1103,7 @@ static int __init eexp_hw_probe(struct net_device *dev, unsigned short ioaddr) dev->dev_addr[i] = ((unsigned char *)hw_addr)[5-i]; { - static char irqmap[]={0, 9, 3, 4, 5, 10, 11, 0}; + static const char irqmap[] = { 0, 9, 3, 4, 5, 10, 11, 0 }; unsigned short setupval = eexp_hw_readeeprom(ioaddr,0); /* Use the IRQ from EEPROM if none was given */ -- 1.7.3.2.245.g03276.dirty -- 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/