Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754880Ab0IABiv (ORCPT ); Tue, 31 Aug 2010 21:38:51 -0400 Received: from mail.perches.com ([173.55.12.10]:1151 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754232Ab0IABir (ORCPT ); Tue, 31 Aug 2010 21:38:47 -0400 Subject: Re: [PATCH] drivers/net/pch_gbe: Cleanup stats use From: Joe Perches To: Stephen Hemminger Cc: Masayuki Ohtake , Sam Ravnborg , LKML , ML netdev , Greg Rose , Maxime Bizon , Kristoffer Glembo , Ralf Baechle , John Linn , Randy Dunlap , "David S. Miller" , MeeGo , "Wang, Qi" , "Wang, Yong Y" , Andrew , Intel OTC , "Foster, Margie" , Toshiharu Okada , Tomoya Morinaga , Takahiro Shimizu In-Reply-To: <20100831183331.5a6aa508@nehalam> References: <4C763A67.5040107@dsn.okisemi.com> <4C7D0E7A.5060309@dsn.okisemi.com> <1283271009.1797.28.camel@Joe-Laptop> <1283275514.1797.36.camel@Joe-Laptop> <1283279915.1797.66.camel@Joe-Laptop> <20100831183331.5a6aa508@nehalam> Content-Type: text/plain; charset="UTF-8" Date: Tue, 31 Aug 2010 18:38:45 -0700 Message-ID: <1283305125.1797.112.camel@Joe-Laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1034 Lines: 30 On Tue, 2010-08-31 at 18:33 -0700, Stephen Hemminger wrote: > On Tue, 31 Aug 2010 11:38:35 -0700 > Joe Perches wrote: > > > struct pch_gbe_stats { > > - signed char stat_string[ETH_GSTRING_LEN]; > > - int sizeof_stat; > > - int stat_offset; > > + signed char string[ETH_GSTRING_LEN]; > > + size_t size; > > + size_t offset; > > }; > > Is this driver really using 'signed char' here? > Should just be 'char' for a simple string. You're right. Probably all the below should just be char. $ grep -Pn "\bsigned\s+char\b" drivers/net/pch_gbe/*.[ch] pch_gbe_ethtool.c:34: signed char string[ETH_GSTRING_LEN]; pch_gbe_param.c:155: signed char *name; pch_gbe_param.c:156: signed char *err; pch_gbe_param.c:165: struct pch_gbe_opt_list { int i; signed char *str; } *p; -- 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/