linux/drivers/net
Larry Finger 1f1c0e33a0 p54: Fix sparse warnings
The command

make C=2 CF="-D__CHECK_ENDIAN__" drivers/net/wireless/p54/

generates the following warnings:

.../p54common.c:152:38: warning: incorrect type in argument 1 (different base types)
.../p54common.c:152:38:    expected restricted __be32 const [usertype] *p
.../p54common.c:152:38:    got unsigned int *<noident>
.../p54common.c:184:15: warning: restricted __le32 degrades to integer
.../p54common.c:185:29: warning: cast to restricted __le16
.../p54common.c:309:11: warning: symbol 'p54_rf_chips' was not declared.
		        Should it be static?
.../p54common.c:313:5: warning: symbol 'p54_parse_eeprom' was not declared.
		       Should it be static?
.../p54common.c:620:43: warning: incorrect type in argument 3 (different base types)
.../p54common.c:620:43:    expected unsigned long [unsigned] [usertype] len
.../p54common.c:620:43:    got restricted __le16 [usertype] len
.../p54common.c:780:41: warning: restricted __le16 degrades to integer
.../p54common.c:781:32: warning: restricted __le16 degrades to integer
.../p54common.c:1250:28: warning: incorrect type in argument 2 (different base types)
.../p54common.c:1250:28:    expected unsigned short [unsigned] [usertype] filter_type
.../p54common.c:1250:28:    got restricted __le16 [usertype] filter_type
.../p54common.c:1252:28: warning: incorrect type in argument 2 (different base types)
.../p54common.c:1252:28:    expected unsigned short [unsigned] [usertype] filter_type
.../p54common.c:1252:28:    got restricted __le16 [usertype] filter_type
.../p54common.c:1257:42: warning: incorrect type in argument 2 (different base types)
.../p54common.c:1257:42:    expected unsigned short [unsigned] [usertype] filter_type
.../p54common.c:1257:42:    got restricted __le16
.../p54common.c:1260:42: warning: incorrect type in argument 2 (different base types)
.../p54common.c:1260:42:    expected unsigned short [unsigned] [usertype] filter_type
.../p54common.c:1260:42:    got restricted __le16
.../p54usb.c:228:10: warning: restricted __le32 degrades to integer
.../p54usb.c:228:23: warning: restricted __le32 degrades to integer
.../p54usb.c:228:7: warning: incorrect type in assignment (different base types)
.../p54usb.c:228:7:    expected restricted __le32 [assigned] [usertype] chk
.../p54usb.c:228:7:    got unsigned int
.../p54usb.c:221:8: warning: symbol 'p54u_lm87_chksum' was not declared.
		    Should it be static?

All of the above have been fixed. One question, however, remains: In struct
bootrec, the array "data" is treated in many places as native CPU order, but
it may be little-endian everywhere. As far as I can tell, this driver has only
been used with little-endian hardware.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-09-30 14:07:22 -04:00
..
appletalk
arcnet drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
arm Merge branch 'upstream-davem' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 2008-08-14 14:50:46 -07:00
atl1e atl1e: remove the unneeded (struct atl1e_adapter *) 2008-09-24 20:49:05 -04:00
atlx atl2: add tx bytes statistic 2008-09-24 22:11:49 -04:00
bonding drivers/net/bonding: sparse fixes for exported tables 2008-09-24 22:12:57 -04:00
can
chelsio
cris
cxgb3 drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
e1000 e1000: remove unused Kconfig option for disabling packet split 2008-09-24 22:17:42 -04:00
e1000e e1000e: avoid duplicated output of device name in kernel warning 2008-09-24 22:05:26 -04:00
ehea Revert "ehea: fix mutex and spinlock use" 2008-09-25 13:06:59 -07:00
enic enic: bug fix: don't set netdev->name too early 2008-09-24 20:48:48 -04:00
fs_enet fs-enet: remove code associated with !CONFIG_PPC_MERGE 2008-09-24 22:11:57 -04:00
hamradio hamradio: add missing sanity check to tty operation 2008-08-07 02:21:08 -04:00
ibm_newemac netdev: drop CONFIG_PPC_MERGE from Kconfig 2008-09-24 22:11:53 -04:00
igb igb: clean up a stray fake netdev code left in rx path 2008-09-03 10:08:17 -04:00
irda irda: follow lspci device/vendor style 2008-09-22 19:20:06 -07:00
ixgb drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
ixgbe drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
ixp2000 [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
mlx4 drivers/net/mlx4/alloc.c needs mm.h 2008-09-24 18:48:57 -04:00
myri10ge myri10ge: use DCA if DCA is compiled as a module 2008-09-24 18:58:57 -04:00
netxen netxen: enable msi-x for quad-gig boards 2008-09-24 18:59:01 -04:00
pcmcia pcnet-cs, axnet_cs: add new IDs, remove dup ID with less info 2008-09-03 09:26:37 -04:00
phy phylib: allow incremental scanning of an mii bus 2008-09-19 05:13:54 +02:00
qlge qlge: Protect qlge_resume() with CONFIG_PM 2008-09-19 16:14:24 -07:00
sfc sfc: Fix type of FALCON_SPI_MAX_LEN 2008-09-24 18:54:42 -04:00
skfp drivers/net/skfp/pmf.c: Use offsetof() macro 2008-09-24 18:48:56 -04:00
tokenring [netdrvr] removed unused #include <version.h> 2008-09-03 10:24:22 -04:00
tulip tulip: Fix dead 21041 ethernet after ifconfig down 2008-09-24 18:48:52 -04:00
usb drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
wan drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
wireless p54: Fix sparse warnings 2008-09-30 14:07:22 -04:00
3c59x.c 3c59x: use netdev_alloc_skb 2008-08-07 02:22:15 -04:00
3c501.c
3c501.h
3c503.c
3c503.h
3c505.c drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
3c505.h
3c507.c
3c509.c
3c515.c
3c523.c [netdrvr] Drivers should not set IFF_* flag themselves 2008-08-07 02:23:19 -04:00
3c523.h
3c527.c [netdrvr] Drivers should not set IFF_* flag themselves 2008-08-07 02:23:19 -04:00
3c527.h
7990.c
7990.h
8139cp.c 8139cp: use netdev_alloc_skb 2008-09-03 10:24:09 -04:00
8139too.c 8139too: [cosmetic] fix incorrect register for flash-rom 2008-09-24 18:49:05 -04:00
8390.c drivers/net: coding styles fixes to drivers/net/8390.c 2008-08-07 02:21:05 -04:00
8390.h
8390p.c drivers/net: coding styles fixes to drivers/net/8390p.c 2008-08-07 02:21:03 -04:00
82596.c
Kconfig e1000: remove unused Kconfig option for disabling packet split 2008-09-24 22:17:42 -04:00
LICENSE.SRC
Makefile qlge: New Qlogic 10Gb Ethernet Driver. 2008-09-18 11:56:28 -04:00
Space.c
a2065.c
a2065.h
ac3200.c
acenic.c [netdrvr] remove unnecessary #include 2008-08-14 04:26:38 -04:00
acenic.h
acenic_firmware.h
amd8111e.c
amd8111e.h
apne.c
ariadne.c
ariadne.h
at1700.c
atarilance.c
atp.c [netdrvr] Drivers should not set IFF_* flag themselves 2008-08-07 02:23:19 -04:00
atp.h
au1000_eth.c [netdrvr] au1000_eth: Spinlock initialisation fix 2008-09-24 18:48:58 -04:00
au1000_eth.h
ax88796.c drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
b44.c
b44.h
bfin_mac.c drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
bfin_mac.h
bmac.c
bmac.h
bnx2.c bnx2: Remove timer_interval field from the bnx2 structure 2008-09-18 16:40:49 -07:00
bnx2.h bnx2: Remove timer_interval field from the bnx2 structure 2008-09-18 16:40:49 -07:00
bnx2_fw.h
bnx2_fw2.h
bnx2x.h bnx2x: Accessing un-mapped page 2008-09-03 14:38:00 -07:00
bnx2x_fw_defs.h bnx2x: Checkpatch compliance 2008-08-13 16:05:38 -07:00
bnx2x_hsi.h bnx2x: Spelling mistakes 2008-08-13 16:05:37 -07:00
bnx2x_init.h bnx2x: Checkpatch compliance 2008-08-13 16:05:38 -07:00
bnx2x_init_values.h bnx2x: FW Internal Memory structure 2008-08-13 16:01:48 -07:00
bnx2x_link.c [netdrvr] remove unnecessary #include 2008-08-14 04:26:38 -04:00
bnx2x_link.h bnx2x: Spelling mistakes 2008-08-13 16:05:37 -07:00
bnx2x_main.c bnx2x: EEH recovery fix 2008-09-09 05:07:25 -07:00
bnx2x_reg.h bnx2x: Spelling mistakes 2008-08-13 16:05:37 -07:00
bsd_comp.c
cassini.c cassini: use request_firmware 2008-09-22 19:27:10 -07:00
cassini.h cassini: use request_firmware 2008-09-22 19:27:10 -07:00
cpmac.c [netdrvr] remove unnecessary #include 2008-08-14 04:26:38 -04:00
cs89x0.c cs89x0: fix warning release_irq label 2008-09-24 18:49:04 -04:00
cs89x0.h
de600.c
de600.h
de620.c [netdrvr] Drivers should not set IFF_* flag themselves 2008-08-07 02:23:19 -04:00
de620.h
declance.c
defxx.c
defxx.h
depca.c
depca.h
dl2k.c
dl2k.h
dm9000.c dm9000: Support MAC address setting through platform data. 2008-08-07 02:22:54 -04:00
dm9000.h
dummy.c
e100.c drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
e2100.c
eepro.c [netdrvr] Drivers should not set IFF_* flag themselves 2008-08-07 02:23:19 -04:00
eepro100.c
eexpress.c
eexpress.h
enc28j60.c drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
enc28j60_hw.h
epic100.c
eql.c
es3210.c
eth16i.c [netdrvr] Drivers should not set IFF_* flag themselves 2008-08-07 02:23:19 -04:00
ewrk3.c
ewrk3.h
fealnx.c
fec.c
fec.h
fec_mpc52xx.c
fec_mpc52xx.h
fec_mpc52xx_phy.c
forcedeth.c forcedeth fix: take phy out of reset during power up 2008-09-24 22:11:42 -04:00
gianfar.c net: don't grab a mutex within a timer context in gianfar 2008-08-27 05:55:19 -04:00
gianfar.h net: don't grab a mutex within a timer context in gianfar 2008-08-27 05:55:19 -04:00
gianfar_ethtool.c
gianfar_mii.c gianfar: free/iounmap memory after an error in mii bus initialization 2008-09-24 20:49:02 -04:00
gianfar_mii.h
gianfar_sysfs.c [netdrvr] remove unnecessary #include 2008-08-14 04:26:38 -04:00
hamachi.c
hp-plus.c
hp.c
hp100.c
hp100.h
hplance.c
hplance.h
hydra.c
ibmlana.c
ibmlana.h
ibmveth.c ibmveth: fix bad UDP checksums 2008-08-27 05:36:57 -04:00
ibmveth.h
ifb.c netdev: Fix lockdep warnings in multiqueue configurations. 2008-07-31 16:58:50 -07:00
ioc3-eth.c
ipg.c
ipg.h [netdrvr] remove unnecessary #include 2008-08-14 04:26:38 -04:00
isa-skeleton.c
iseries_veth.c
jazzsonic.c
jme.c jme: JMicron Gigabit Ethernet Driver 2008-09-18 11:34:54 -04:00
jme.h jme: JMicron Gigabit Ethernet Driver 2008-09-18 11:34:54 -04:00
korina.c
lance.c
lasi_82596.c
lib8390.c
lib82596.c
lne390.c
loopback.c loopback: Drop obsolete ip_summed setting 2008-08-15 19:52:01 -07:00
lp486e.c [netdrvr] Drivers should not set IFF_* flag themselves 2008-08-07 02:23:19 -04:00
mac89x0.c
mac8390.c
macb.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
macb.h
mace.c
mace.h
macmace.c
macsonic.c
macvlan.c
meth.c drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
meth.h
mii.c
mipsnet.c drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
mv643xx_eth.c mv643xx_eth: bump version to 1.4 2008-09-19 19:34:05 +02:00
mvme147.c
myri_code.h
myri_sbus.c
myri_sbus.h
natsemi.c
ne-h8300.c
ne.c ne.c: fix rmmod, platform driver improvements 2008-09-24 20:49:00 -04:00
ne2.c
ne2k-pci.c
ne3210.c
netconsole.c Remove newline from the description of module parameters 2008-08-01 12:46:41 -07:00
netx-eth.c drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
ni52.c [netdrvr] Drivers should not set IFF_* flag themselves 2008-08-07 02:23:19 -04:00
ni52.h
ni65.c
ni65.h
ni5010.c [netdrvr] Drivers should not set IFF_* flag themselves 2008-08-07 02:23:19 -04:00
ni5010.h
niu.c niu: Fix error checking in niu_ethflow_to_class. 2008-07-29 23:59:20 -07:00
niu.h
ns83820.c
pasemi_mac.c
pasemi_mac.h
pasemi_mac_ethtool.c
pci-skeleton.c drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
pcnet32.c
plip.c
ppp_async.c
ppp_deflate.c
ppp_generic.c ppp_generic: Use skb_peek() in ppp_receive_mp_frame(). 2008-09-23 01:17:18 -07:00
ppp_mppe.c [netdrvr] remove unnecessary #include 2008-08-14 04:26:38 -04:00
ppp_mppe.h
ppp_synctty.c
pppoe.c
pppol2tp.c net: Remove __skb_insert() calls outside of skbuff internals. 2008-09-21 21:28:51 -07:00
pppox.c
ps3_gelic_net.c
ps3_gelic_net.h
ps3_gelic_wireless.c PS3: gelic: use unsigned long for irqflags 2008-07-29 16:55:08 -04:00
ps3_gelic_wireless.h
qla3xxx.c qla3xxx: driver version change. 2008-08-07 02:11:15 -04:00
qla3xxx.h qla3xxx: cleanup: Remove some unused structure definitions and structure elements. 2008-08-07 02:11:14 -04:00
r6040.c r6040: fix wrong assignment in r6040_free_txbufs 2008-09-24 20:48:08 -04:00
r8169.c drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
rionet.c
rrunner.c
rrunner.h
s2io-regs.h
s2io.c drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
s2io.h s2io: Fix enabling VLAN tag stripping at driver initialization 2008-09-24 18:49:04 -04:00
sb1000.c
sb1250-mac.c [netdrvr] convert sbmac tx to spin_lock_irqsave to prevent early IRQ enable 2008-09-24 22:12:24 -04:00
sc92031.c
seeq8005.c
seeq8005.h
sgiseeq.c
sgiseeq.h
sh_eth.c [netdrvr] remove unnecessary #include 2008-08-14 04:26:38 -04:00
sh_eth.h [netdrvr] sh_eth: Add SH7619 support 2008-08-07 02:20:57 -04:00
sis190.c
sis900.c
sis900.h
skge.c
skge.h
sky2.c sky2: display product info on boot. 2008-09-03 10:23:58 -04:00
sky2.h sky2: fix PM related regressions 2008-08-07 01:55:50 -04:00
slhc.c
slip.c
slip.h
smc-mca.c
smc-ultra.c
smc-ultra32.c
smc91x.c drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
smc91x.h smc91x: SMC_IO_SHIFT platform data support for default case 2008-09-24 18:48:55 -04:00
smc911x.c drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
smc911x.h [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
smc9194.c
smc9194.h
sni_82596.c
sonic.c
sonic.h
spider_net.c
spider_net.h
spider_net_ethtool.c
starfire.c
starfire_firmware.h
starfire_firmware.pl
stnic.c net: stnic: Fix up fallout from SH header migration. 2008-08-02 04:39:33 +09:00
sun3_82586.c [netdrvr] Drivers should not set IFF_* flag themselves 2008-08-07 02:23:19 -04:00
sun3_82586.h
sun3lance.c
sunbmac.c
sunbmac.h
sundance.c sundance: set carrier status on link change events 2008-09-24 18:59:01 -04:00
sungem.c
sungem.h
sungem_phy.c
sungem_phy.h
sunhme.c
sunhme.h
sunlance.c
sunqe.c
sunqe.h
sunvnet.c
sunvnet.h
tc35815.c
tehuti.c
tehuti.h drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
tehuti_fw.h
tg3.c tg3: Fix DMA mapping leak in tigon3_dma_hwbug_workaround(). 2008-09-11 15:45:19 -07:00
tg3.h tg3: Use SKB DMA helper functions for TX. 2008-09-11 04:52:51 -07:00
tlan.c tlan: Fix two regressions introduced by 64bit conversion. 2008-08-14 04:28:12 -04:00
tlan.h
tsi108_eth.c drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
tsi108_eth.h
tun.c tun: fallback if skb_alloc() fails on big packets 2008-08-15 19:52:31 -07:00
typhoon-firmware.h
typhoon.c [netdrvr] remove unnecessary #include 2008-08-14 04:26:38 -04:00
typhoon.h
ucc_geth.c drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
ucc_geth.h
ucc_geth_ethtool.c
ucc_geth_mii.c
ucc_geth_mii.h
veth.c
via-rhine.c via-rhine: changed to use netdev_alloc_skb() from dev_alloc_skb 2008-09-03 10:24:04 -04:00
via-velocity.c via-velocity: velocity_init_{rd/tx}_ring use kcalloc(..., GFP_KERNEL). 2008-07-31 23:08:06 +02:00
via-velocity.h drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
virtio_net.c
wd.c [netdrvr] fix build issue: undefined reference to `NS8390p_init' 2008-08-27 05:17:46 -04:00
xen-netfront.c xen-netfront: use netif_start_queue() on xennet_open() 2008-08-07 02:11:17 -04:00
yellowfin.c
znet.c
zorro8390.c