Skip to contentSkip to conversation

SMSC LAN9500 USB2.0 10/100 ethernet adapter driver

DISCUSSION David Miller 3 participants 5 messages Oct 8, 2008 – Oct 9, 2008

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

I've added this patch to net-next-2.6, thanks.

But please fix the following warnings that are generated on 64-bit builds:

drivers/net/usb/smsc95xx.c: In function ‘smsc95xx_write_reg_async’:
drivers/net/usb/smsc95xx.c:348: warning: large integer implicitly truncated to unsigned type drivers/net/usb/smsc95xx.c: In function ‘smsc95xx_status’:
drivers/net/usb/smsc95xx.c:548: warning: passing argument 1 of ‘__swab32s’ makes pointer from integer without a cast

#1 lore raw

Hi David,

I don't see those warnings here on x86_64 (gcc 4.3.0, Fedora 9). Which arch/gcc version do you see them on?

Regards,
--
Steve Glendinning
SMSC GmbH
m: +44 777 933 9124
e: [email protected]

David Miller <[email protected]>
09/10/2008 00:45

To
Steve Glendinning/SMSC@SMSC
cc
[email protected]
Subject
Re: SMSC LAN9500 USB2.0 10/100 ethernet adapter driver

I've added this patch to net-next-2.6, thanks.

But please fix the following warnings that are generated on 64-bit builds:

drivers/net/usb/smsc95xx.c: In function ?smsc95xx_write_reg_async?:
drivers/net/usb/smsc95xx.c:348: warning: large integer implicitly truncated to unsigned type
drivers/net/usb/smsc95xx.c: In function ?smsc95xx_status?:
drivers/net/usb/smsc95xx.c:548: warning: passing argument 1 of ?__swab32s? makes pointer from integer without a cast

#2 lore raw

Hi

Quoted 4 lines · On Thu, 9 Oct 2008 09:48:16 +0100 [email protected] wrote:

Hi David,

I don't see those warnings here on x86_64 (gcc 4.3.0, Fedora 9). Which arch/gcc version do you see them on?

I've got same results as davem:

CC [M] drivers/net/usb/smsc95xx.o
drivers/net/usb/smsc95xx.c: In function 'smsc95xx_write_reg_async':
drivers/net/usb/smsc95xx.c:348: warning: large integer implicitly truncated to unsigned type drivers/net/usb/smsc95xx.c: In function 'smsc95xx_status':
drivers/net/usb/smsc95xx.c:548: warning: passing argument 1 of '__swab32s' makes pointer from integer without a cast

I'm using powerpc/x86 cross-compiler (ppu-gcc 4.1.1) included in Cell SDK 3.0. You can reach the gcc RPMs via:

http://www.bsc.es/projects/deepcomputing/linuxoncell/
(from 'Cell BE SDKs' item of the left menu of the page)

Signature · 1 line
Masakazu Mokuno
#3 lore raw

Thanks Masakazu, i see it now. Patch to follow.

--
Steve Glendinning
SMSC GmbH
m: +44 777 933 9124
e: [email protected]

Masakazu Mokuno <[email protected]>
09/10/2008 11:08

To
Steve Glendinning/SMSC@SMSC
cc
David Miller <[email protected]>, [email protected], Ian Saturley/SMSC@SMSC
Subject
Re: SMSC LAN9500 USB2.0 10/100 ethernet adapter driver

Hi

Quoted 4 lines · On Thu, 9 Oct 2008 09:48:16 +0100 [email protected] wrote:

Hi David,

I don't see those warnings here on x86_64 (gcc 4.3.0, Fedora 9). Which arch/gcc version do you see them on?

I've got same results as davem:

CC [M] drivers/net/usb/smsc95xx.o
drivers/net/usb/smsc95xx.c: In function 'smsc95xx_write_reg_async':
drivers/net/usb/smsc95xx.c:348: warning: large integer implicitly truncated to unsigned type
drivers/net/usb/smsc95xx.c: In function 'smsc95xx_status':
drivers/net/usb/smsc95xx.c:548: warning: passing argument 1 of '__swab32s' makes pointer from integer without a cast

I'm using powerpc/x86 cross-compiler (ppu-gcc 4.1.1) included in Cell SDK 3.0. You can reach the gcc RPMs via:

http://www.bsc.es/projects/deepcomputing/linuxoncell/
(from 'Cell BE SDKs' item of the left menu of the page)

Signature · 1 line
Masakazu Mokuno