[2.6.19 PATCH 4/7] ehea: ethtool interface

2006-09-06 Thread Jan-Bernd Themann
Signed-off-by: Jan-Bernd Themann [EMAIL PROTECTED] drivers/net/ehea/ehea_ethtool.c | 294 1 file changed, 294 insertions(+) --- linux-2.6.18-rc6-orig/drivers/net/ehea/ehea_ethtool.c 1970-01-01 01:00:00.0 +0100 +++

[2.6.19 PATCH 4/7] ehea: ethtool interface

2006-08-23 Thread Jan-Bernd Themann
Signed-off-by: Jan-Bernd Themann [EMAIL PROTECTED] drivers/net/ehea/ehea_ethtool.c | 244 1 file changed, 244 insertions(+) --- linux-2.6.18-rc4-git1-orig/drivers/net/ehea/ehea_ethtool.c 1969-12-31 16:00:00.0 -0800 +++

[2.6.19 PATCH 4/7] ehea: ethtool interface

2006-08-22 Thread Jan-Bernd Themann
Signed-off-by: Jan-Bernd Themann [EMAIL PROTECTED] drivers/net/ehea/ehea_ethtool.c | 244 1 file changed, 244 insertions(+) --- linux-2.6.18-rc4-git1-orig/drivers/net/ehea/ehea_ethtool.c 1969-12-31 16:00:00.0 -0800 +++

Re: [2.6.19 PATCH 4/7] ehea: ethtool interface

2006-08-21 Thread Thomas Klein
Stephen Hemminger wrote: On Fri, 18 Aug 2006 17:41:26 +0200 Thomas Klein [EMAIL PROTECTED] wrote: Hi Alexey, first of all thanks a lot for the extensive review. Alexey Dobriyan wrote: + u64 hret = H_HARDWARE; Useless assignment here and everywhere. Initializing returncodes to

Re: [2.6.19 PATCH 4/7] ehea: ethtool interface

2006-08-21 Thread Thomas Klein
Alexey Dobriyan wrote: On Fri, Aug 18, 2006 at 01:33:22PM +0200, Jan-Bernd Themann wrote: --- linux-2.6.18-rc4-orig/drivers/net/ehea/ehea_ethtool.c +++ kernel/drivers/net/ehea/ehea_ethtool.c +{ +strncpy(info-driver, DRV_NAME, sizeof(info-driver) - 1); +strncpy(info-version,

Re: [2.6.19 PATCH 4/7] ehea: ethtool interface

2006-08-19 Thread Michael Ellerman
On Fri, 2006-08-18 at 17:41 +0200, Thomas Klein wrote: Hi Alexey, first of all thanks a lot for the extensive review. Alexey Dobriyan wrote: + u64 hret = H_HARDWARE; Useless assignment here and everywhere. Initializing returncodes to errorstate is a cheap way to prevent

Re: [2.6.19 PATCH 4/7] ehea: ethtool interface

2006-08-19 Thread Andy Gay
On Sat, 2006-08-19 at 16:18 +1000, Michael Ellerman wrote: If you try to return an uninitialized value the compiler will warn you, you'll then look at the code and realise you missed a case, you might save yourself a bug. You *should* look at the code :) So should we be reporting these as

Re: [2.6.19 PATCH 4/7] ehea: ethtool interface

2006-08-19 Thread Michael Ellerman
On Sat, 2006-08-19 at 02:48 -0400, Andy Gay wrote: On Sat, 2006-08-19 at 16:18 +1000, Michael Ellerman wrote: If you try to return an uninitialized value the compiler will warn you, you'll then look at the code and realise you missed a case, you might save yourself a bug. You

Re: [2.6.19 PATCH 4/7] ehea: ethtool interface

2006-08-19 Thread Arnd Bergmann
On Saturday 19 August 2006 10:41, Michael Ellerman wrote: A lot of these have started appearing recently, which I think is due to GCC becoming more vocal. Unfortunately many of them are false positives caused by GCC not seeming to grok that this is ok: void foo(int *x) { *x = 1; } ... int

Re: [2.6.19 PATCH 4/7] ehea: ethtool interface

2006-08-19 Thread Jeff Garzik
Andy Gay wrote: fs/bio.c:169: warning: 'idx' may be used uninitialized in this function fs/eventpoll.c:500: warning: 'fd' may be used uninitialized in this function fs/isofs/namei.c:162: warning: 'offset' may be used uninitialized in this function fs/isofs/namei.c:162: warning: 'block' may be

[2.6.19 PATCH 4/7] ehea: ethtool interface

2006-08-18 Thread Jan-Bernd Themann
Signed-off-by: Jan-Bernd Themann [EMAIL PROTECTED] drivers/net/ehea/ehea_ethtool.c | 264 1 file changed, 264 insertions(+) --- linux-2.6.18-rc4-orig/drivers/net/ehea/ehea_ethtool.c 1969-12-31 16:00:00.0 -0800 +++

Re: [2.6.19 PATCH 4/7] ehea: ethtool interface

2006-08-18 Thread Alexey Dobriyan
On Fri, Aug 18, 2006 at 01:33:22PM +0200, Jan-Bernd Themann wrote: --- linux-2.6.18-rc4-orig/drivers/net/ehea/ehea_ethtool.c +++ kernel/drivers/net/ehea/ehea_ethtool.c +static int netdev_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) +{ + u64 hret = H_HARDWARE; useless

Re: [2.6.19 PATCH 4/7] ehea: ethtool interface

2006-08-18 Thread Thomas Klein
Hi Alexey, first of all thanks a lot for the extensive review. Alexey Dobriyan wrote: + u64 hret = H_HARDWARE; Useless assignment here and everywhere. Initializing returncodes to errorstate is a cheap way to prevent accidentally returning (uninitalized) success returncodes which

Re: [2.6.19 PATCH 4/7] ehea: ethtool interface

2006-08-18 Thread Stephen Hemminger
On Fri, 18 Aug 2006 17:41:26 +0200 Thomas Klein [EMAIL PROTECTED] wrote: Hi Alexey, first of all thanks a lot for the extensive review. Alexey Dobriyan wrote: + u64 hret = H_HARDWARE; Useless assignment here and everywhere. Initializing returncodes to errorstate is a cheap