make drivers/net/ethernet W=1 clean
Subsystems (39)
v3 cover make drivers/net/ethernet W=1 clean
From: Jesse Brandeburg <[email protected]>
The Goal: move to W=1 being default for drivers/net/ethernet, and then use automation to catch more code issues (warnings) being introduced.
The status: Getting much closer but not quite done for all architectures.
After applying the patches below, the drivers/net/ethernet directory can be built as modules with W=1 with no warnings (so far on x64_64 arch only!). As Jakub pointed out, there is much more work to do to clean up C=1, but that will be another series of changes.
This series removes 1,247 warnings and hopefully allows the ethernet directory to move forward from here without more warnings being added. There is only one objtool warning now.
This version drops one of the Intel patches, as I couldn't reproduce the original issue to document the warning.
Some of these patches are already sent and tested on Intel Wired Lan, but the rest of the series titled drivers/net/ethernet affects other drivers. The changes are all pretty straightforward.
---
DaveM: if you want to apply all the intel driver changes
directly please go ahead.
As part of testing this series I realized that I have ~1,500 more kdoc warnings to fix due to being in other arch or not compiled with my x86_64 .config. Feel free to run
$ git ls-files *.[ch] | grep drivers/net/ethernet | xargs scripts/kernel-doc -none to see the remaining issues.
changes in v3:
- addressed comments, updated commit messages with warnings noted, updated 9/9 with a few extras that snuck in while I was working, dropped a patch that I couldn't identify the original warning for.
changes in v2:
- non-rfc
- addressed list comments from Edward Cree, Jacob Keller and Vinicius Costa Gomes
- re-split the Intel patches into functional and kdoc only
- split out the sfc changes that generated discussion to a single patch.
Jesse Brandeburg (9):
intel-ethernet: clean up W=1 warnings in kdoc
intel: handle unused assignments drivers/net/ethernet: clean up unused assignments drivers/net/ethernet: rid ethernet of no-prototype warnings drivers/net/ethernet: handle one warning explicitly drivers/net/ethernet: add some basic kdoc tags drivers/net/ethernet: remove incorrectly formatted doc
sfc: fix kdoc warning
drivers/net/ethernet: clean up mis-targeted comments
drivers/net/ethernet/amazon/ena/ena_com.c | 2 +- .../aquantia/atlantic/hw_atl/hw_atl_b0.c | 2 +- drivers/net/ethernet/arc/emac_arc.c | 2 +- .../net/ethernet/atheros/atl1c/atl1c_main.c | 6 +- .../net/ethernet/atheros/atl1e/atl1e_main.c | 7 +- drivers/net/ethernet/atheros/atlx/atl1.c | 2 +- drivers/net/ethernet/atheros/atlx/atl2.c | 6 +- .../net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 2 + .../ethernet/broadcom/bnx2x/bnx2x_ethtool.c | 6 +- .../net/ethernet/broadcom/bnx2x/bnx2x_main.c | 12 +- .../net/ethernet/broadcom/bnx2x/bnx2x_sp.c | 98 ++--- drivers/net/ethernet/brocade/bna/bfa_cee.c | 20 +- drivers/net/ethernet/brocade/bna/bfa_ioc.c | 8 +- drivers/net/ethernet/brocade/bna/bnad.c | 7 +- drivers/net/ethernet/cadence/macb_main.c | 6 +- drivers/net/ethernet/cadence/macb_pci.c | 2 +- drivers/net/ethernet/calxeda/xgmac.c | 2 + .../ethernet/cavium/liquidio/cn68xx_device.c | 1 + .../net/ethernet/cavium/liquidio/lio_core.c | 92 ++--- .../net/ethernet/cavium/liquidio/lio_main.c | 351 +++++++++--------- .../ethernet/cavium/liquidio/lio_vf_main.c | 158 ++++---- .../ethernet/cavium/liquidio/octeon_console.c | 12 +- .../ethernet/cavium/liquidio/octeon_device.c | 4 +- .../ethernet/cavium/liquidio/octeon_droq.c | 2 +- .../ethernet/cavium/liquidio/octeon_mailbox.c | 5 +- .../net/ethernet/chelsio/cxgb3/cxgb3_main.c | 8 +- drivers/net/ethernet/chelsio/cxgb3/sge.c | 24 +- drivers/net/ethernet/chelsio/cxgb3/t3_hw.c | 5 +- drivers/net/ethernet/cisco/enic/enic_api.c | 2 +- .../net/ethernet/cisco/enic/enic_ethtool.c | 2 +- drivers/net/ethernet/cortina/gemini.c | 2 + drivers/net/ethernet/dec/tulip/de4x5.c | 4 +- drivers/net/ethernet/dec/tulip/media.c | 5 - drivers/net/ethernet/dnet.c | 2 +- drivers/net/ethernet/ethoc.c | 6 +- .../net/ethernet/freescale/dpaa2/dpaa2-eth.c | 2 +- drivers/net/ethernet/freescale/fec_ptp.c | 5 +- drivers/net/ethernet/freescale/fman/fman.c | 14 +- .../net/ethernet/freescale/fman/fman_muram.c | 6 +- .../net/ethernet/freescale/fman/fman_port.c | 23 +- drivers/net/ethernet/freescale/fman/mac.c | 4 +- drivers/net/ethernet/hisilicon/hns/hnae.c | 2 +- .../net/ethernet/hisilicon/hns/hns_dsaf_mac.c | 34 +- .../ethernet/hisilicon/hns/hns_dsaf_main.c | 148 ++++---- .../ethernet/hisilicon/hns/hns_dsaf_misc.c | 9 +- .../net/ethernet/hisilicon/hns/hns_dsaf_ppe.c | 17 +- .../net/ethernet/hisilicon/hns/hns_dsaf_rcb.c | 7 +- .../ethernet/hisilicon/hns/hns_dsaf_xgmac.c | 3 +- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 4 +- .../net/ethernet/hisilicon/hns/hns_ethtool.c | 8 +- .../hisilicon/hns3/hns3pf/hclge_dcb.c | 1 + drivers/net/ethernet/hisilicon/hns_mdio.c | 3 +- drivers/net/ethernet/intel/e100.c | 8 +- drivers/net/ethernet/intel/e1000/e1000_hw.c | 146 ++++---- drivers/net/ethernet/intel/e1000/e1000_main.c | 39 +- .../net/ethernet/intel/e1000e/80003es2lan.c | 1 - drivers/net/ethernet/intel/e1000e/ich8lan.c | 16 +- drivers/net/ethernet/intel/e1000e/netdev.c | 50 ++- drivers/net/ethernet/intel/e1000e/phy.c | 3 + drivers/net/ethernet/intel/e1000e/ptp.c | 2 +- drivers/net/ethernet/intel/i40e/i40e_adminq.h | 4 +- drivers/net/ethernet/intel/i40e/i40e_client.c | 2 - drivers/net/ethernet/intel/i40e/i40e_common.c | 4 +- drivers/net/ethernet/intel/i40e/i40e_main.c | 17 +- drivers/net/ethernet/intel/i40e/i40e_ptp.c | 1 - drivers/net/ethernet/intel/i40e/i40e_trace.h | 2 +- drivers/net/ethernet/intel/i40e/i40e_txrx.c | 7 +- drivers/net/ethernet/intel/i40e/i40e_txrx.h | 1 - .../ethernet/intel/i40e/i40e_txrx_common.h | 6 +- .../ethernet/intel/i40e/i40e_virtchnl_pf.c | 9 +- drivers/net/ethernet/intel/iavf/iavf_adminq.h | 4 +- drivers/net/ethernet/intel/iavf/iavf_main.c | 20 +- drivers/net/ethernet/intel/iavf/iavf_trace.h | 2 +- drivers/net/ethernet/intel/iavf/iavf_txrx.h | 2 +- drivers/net/ethernet/intel/ice/ice.h | 2 +- .../net/ethernet/intel/ice/ice_adminq_cmd.h | 6 +- drivers/net/ethernet/intel/ice/ice_txrx.h | 2 +- drivers/net/ethernet/intel/igb/e1000_82575.c | 6 +- drivers/net/ethernet/intel/igb/e1000_i210.c | 5 +- drivers/net/ethernet/intel/igb/e1000_mac.c | 1 + drivers/net/ethernet/intel/igb/e1000_mbx.c | 1 + drivers/net/ethernet/intel/igb/igb_main.c | 28 +- drivers/net/ethernet/intel/igb/igb_ptp.c | 8 +- drivers/net/ethernet/intel/igbvf/netdev.c | 17 +- drivers/net/ethernet/intel/igc/igc_main.c | 2 +- drivers/net/ethernet/intel/igc/igc_ptp.c | 4 +- drivers/net/ethernet/intel/ixgb/ixgb_hw.c | 135 ++++--- drivers/net/ethernet/intel/ixgb/ixgb_main.c | 17 +- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 3 +- drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c | 8 +- .../net/ethernet/intel/ixgbevf/ixgbevf_main.c | 3 +- drivers/net/ethernet/mellanox/mlx4/en_tx.c | 2 +- drivers/net/ethernet/micrel/ksz884x.c | 49 +-- .../ethernet/microchip/encx24j600-regmap.c | 2 +- drivers/net/ethernet/microchip/lan743x_main.c | 6 +- drivers/net/ethernet/natsemi/ns83820.c | 4 +- drivers/net/ethernet/neterion/s2io.c | 91 ++--- .../net/ethernet/neterion/vxge/vxge-config.c | 5 +- .../net/ethernet/neterion/vxge/vxge-ethtool.c | 2 +- .../net/ethernet/neterion/vxge/vxge-main.c | 10 +- .../net/ethernet/neterion/vxge/vxge-traffic.c | 72 ++-- .../oki-semi/pch_gbe/pch_gbe_ethtool.c | 4 +- .../ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 5 +- .../ethernet/oki-semi/pch_gbe/pch_gbe_param.c | 14 +- .../net/ethernet/packetengines/yellowfin.c | 2 +- .../net/ethernet/qlogic/netxen/netxen_nic.h | 3 - .../qlogic/netxen/netxen_nic_ethtool.c | 3 + drivers/net/ethernet/qualcomm/emac/emac.c | 1 + drivers/net/ethernet/renesas/sh_eth.c | 10 + .../net/ethernet/samsung/sxgbe/sxgbe_main.c | 17 +- drivers/net/ethernet/sfc/falcon/farch.c | 29 +- drivers/net/ethernet/sfc/falcon/rx.c | 2 + drivers/net/ethernet/sfc/falcon/selftest.c | 2 +- drivers/net/ethernet/sfc/mcdi.h | 1 + drivers/net/ethernet/sfc/net_driver.h | 2 +- drivers/net/ethernet/sfc/ptp.c | 7 +- drivers/net/ethernet/sis/sis900.c | 8 +- .../net/ethernet/stmicro/stmmac/dwmac-rk.c | 2 +- .../net/ethernet/stmicro/stmmac/stmmac_main.c | 14 +- .../ethernet/stmicro/stmmac/stmmac_platform.c | 3 +- drivers/net/ethernet/sun/cassini.c | 4 +- .../net/ethernet/synopsys/dwc-xlgmac-common.c | 2 +- drivers/net/ethernet/tehuti/tehuti.c | 17 +- drivers/net/ethernet/ti/cpsw_new.c | 2 - drivers/net/ethernet/ti/davinci_cpdma.c | 2 +- drivers/net/ethernet/ti/davinci_emac.c | 10 +- drivers/net/ethernet/ti/tlan.c | 4 +- drivers/net/ethernet/via/via-rhine.c | 2 +- drivers/net/ethernet/via/via-velocity.c | 40 +- drivers/net/ethernet/xilinx/ll_temac_main.c | 26 +- 130 files changed, 1178 insertions(+), 1062 deletions(-)
base-commit: 3fc826f121d89c5aa4afd7b3408b07e0ff59466b
Signature · 1 line
2.25.4
PATCH v3 1/9 intel-ethernet: clean up W=1 warnings in kdoc
From: Jesse Brandeburg <[email protected]>
This takes care of all of the trivial W=1 fixes in the Intel Ethernet drivers, which allows developers and maintainers to build more of the networking tree with more complete warning checks.
There are three classes of kdoc warnings fixed:
- cannot understand function prototype: 'x'
- Excess function parameter 'x' description in 'y'
- Function parameter or member 'x' not described in 'y'
All of the changes were trivial comment updates on function headers.
Inspired by Lee Jones' series of wireless work to do the same. Compile tested only, and passes simple test of
$ git ls-files *.[ch] | egrep drivers/net/ethernet/intel | \ xargs scripts/kernel-doc -none
---
v3: added tested-by, united previous v1,v2 patches to intel drivers
into this patch.
Full list of warnings fixed:
git ls-files *.[ch] | egrep drivers/net/ethernet/intel | xargs scripts/kernel-doc -nonedrivers/net/ethernet/intel/e100.c:391: warning: cannot understand function prototype: 'enum cb_command ' drivers/net/ethernet/intel/e1000/e1000_hw.c:1908: warning: Excess function parameter 'mii_reg' description in 'e1000_config_mac_to_phy' drivers/net/ethernet/intel/e1000/e1000_hw.c:2931: warning: Function parameter or member 'phy_data' not described in 'e1000_write_phy_reg' drivers/net/ethernet/intel/e1000/e1000_hw.c:2931: warning: Excess function parameter 'data' description in 'e1000_write_phy_reg' drivers/net/ethernet/intel/e1000/e1000_hw.c:4789: warning: Excess function parameter 'tx_packets' description in 'e1000_update_adaptive' drivers/net/ethernet/intel/e1000/e1000_hw.c:4789: warning: Excess function parameter 'total_collisions' description in 'e1000_update_adaptive' drivers/net/ethernet/intel/e1000/e1000_hw.c:5080: warning: Excess function parameter 'downshift' description in 'e1000_check_downshift' drivers/net/ethernet/intel/e1000/e1000_main.c:208: warning: Function parameter or member 'hw' not described in 'e1000_get_hw_dev' drivers/net/ethernet/intel/e1000/e1000_main.c:361: warning: Function parameter or member 'adapter' not described in 'e1000_configure' drivers/net/ethernet/intel/e1000/e1000_main.c:3495: warning: Function parameter or member 'txqueue' not described in 'e1000_tx_timeout' drivers/net/ethernet/intel/e1000/e1000_main.c:3794: warning: Function parameter or member 'napi' not described in 'e1000_clean' drivers/net/ethernet/intel/e1000/e1000_main.c:3794: warning: Function parameter or member 'budget' not described in 'e1000_clean' drivers/net/ethernet/intel/e1000/e1000_main.c:3794: warning: Excess function parameter 'adapter' description in 'e1000_clean' drivers/net/ethernet/intel/e1000/e1000_main.c:3825: warning: Function parameter or member 'tx_ring' not described in 'e1000_clean_tx_irq' drivers/net/ethernet/intel/e1000/e1000_main.c:3941: warning: Function parameter or member 'skb' not described in 'e1000_rx_checksum' drivers/net/ethernet/intel/e1000/e1000_main.c:3941: warning: Excess function parameter 'sk_buff' description in 'e1000_rx_checksum' drivers/net/ethernet/intel/e1000/e1000_main.c:3977: warning: Function parameter or member 'bi' not described in 'e1000_consume_page' drivers/net/ethernet/intel/e1000/e1000_main.c:3977: warning: Function parameter or member 'skb' not described in 'e1000_consume_page' drivers/net/ethernet/intel/e1000/e1000_main.c:3977: warning: Function parameter or member 'length' not described in 'e1000_consume_page' drivers/net/ethernet/intel/e1000/e1000_main.c:4015: warning: Function parameter or member 'stats' not described in 'e1000_tbi_adjust_stats' drivers/net/ethernet/intel/e1000/e1000_main.c:4556: warning: Function parameter or member 'rx_ring' not described in 'e1000_alloc_rx_buffers' drivers/net/ethernet/intel/e1000/e1000_main.c:4556: warning: Function parameter or member 'cleaned_count' not described in 'e1000_alloc_rx_buffers' drivers/net/ethernet/intel/e1000/e1000_main.c:4669: warning: Function parameter or member 'adapter' not described in 'e1000_smartspeed' drivers/net/ethernet/intel/e1000/e1000_main.c:4728: warning: Function parameter or member 'netdev' not described in 'e1000_ioctl' drivers/net/ethernet/intel/e1000/e1000_main.c:4728: warning: Function parameter or member 'ifr' not described in 'e1000_ioctl' drivers/net/ethernet/intel/e1000/e1000_main.c:4728: warning: Function parameter or member 'cmd' not described in 'e1000_ioctl' drivers/net/ethernet/intel/e1000/e1000_main.c:4747: warning: Function parameter or member 'netdev' not described in 'e1000_mii_ioctl' drivers/net/ethernet/intel/e1000/e1000_main.c:4747: warning: Function parameter or member 'ifr' not described in 'e1000_mii_ioctl' drivers/net/ethernet/intel/e1000/e1000_main.c:4747: warning: Function parameter or member 'cmd' not described in 'e1000_mii_ioctl' drivers/net/ethernet/intel/e1000e/80003es2lan.c:1082: warning: Excess function parameter 'duplex' description in 'e1000_cfg_on_link_up_80003es2lan' drivers/net/ethernet/intel/e1000e/ich8lan.c:755: warning: Function parameter or member 'address' not described in '__e1000_access_emi_reg_locked' drivers/net/ethernet/intel/e1000e/ich8lan.c:755: warning: Excess function parameter 'addr' description in '__e1000_access_emi_reg_locked' drivers/net/ethernet/intel/e1000e/ich8lan.c:2278: warning: Function parameter or member 'k1_enable' not described in 'e1000_configure_k1_ich8lan' drivers/net/ethernet/intel/e1000e/ich8lan.c:2278: warning: Excess function parameter 'enable' description in 'e1000_configure_k1_ich8lan' drivers/net/ethernet/intel/e1000e/ich8lan.c:2413: warning: Function parameter or member 'hw' not described in 'e1000_hv_phy_workarounds_ich8lan' drivers/net/ethernet/intel/e1000e/ich8lan.c:2702: warning: Function parameter or member 'hw' not described in 'e1000_lv_phy_workarounds_ich8lan' drivers/net/ethernet/intel/e1000e/netdev.c:507: warning: Function parameter or member 'ring' not described in 'e1000_desc_unused' drivers/net/ethernet/intel/e1000e/netdev.c:588: warning: Function parameter or member 'netdev' not described in 'e1000_receive_skb' drivers/net/ethernet/intel/e1000e/netdev.c:610: warning: Function parameter or member 'skb' not described in 'e1000_rx_checksum' drivers/net/ethernet/intel/e1000e/netdev.c:610: warning: Excess function parameter 'csum' description in 'e1000_rx_checksum' drivers/net/ethernet/intel/e1000e/netdev.c:610: warning: Excess function parameter 'sk_buff' description in 'e1000_rx_checksum' drivers/net/ethernet/intel/e1000e/netdev.c:680: warning: Function parameter or member 'cleaned_count' not described in 'e1000_alloc_rx_buffers' drivers/net/ethernet/intel/e1000e/netdev.c:680: warning: Function parameter or member 'gfp' not described in 'e1000_alloc_rx_buffers' drivers/net/ethernet/intel/e1000e/netdev.c:748: warning: Function parameter or member 'cleaned_count' not described in 'e1000_alloc_rx_buffers_ps' drivers/net/ethernet/intel/e1000e/netdev.c:748: warning: Function parameter or member 'gfp' not described in 'e1000_alloc_rx_buffers_ps' drivers/net/ethernet/intel/e1000e/netdev.c:852: warning: Function parameter or member 'gfp' not described in 'e1000_alloc_jumbo_rx_buffers' drivers/net/ethernet/intel/e1000e/netdev.c:943: warning: Function parameter or member 'work_done' not described in 'e1000_clean_rx_irq' drivers/net/ethernet/intel/e1000e/netdev.c:943: warning: Function parameter or member 'work_to_do' not described in 'e1000_clean_rx_irq' drivers/net/ethernet/intel/e1000e/netdev.c:1337: warning: Function parameter or member 'work_done' not described in 'e1000_clean_rx_irq_ps' drivers/net/ethernet/intel/e1000e/netdev.c:1337: warning: Function parameter or member 'work_to_do' not described in 'e1000_clean_rx_irq_ps' drivers/net/ethernet/intel/e1000e/netdev.c:1526: warning: Function parameter or member 'bi' not described in 'e1000_consume_page' drivers/net/ethernet/intel/e1000e/netdev.c:1526: warning: Function parameter or member 'skb' not described in 'e1000_consume_page' drivers/net/ethernet/intel/e1000e/netdev.c:1526: warning: Function parameter or member 'length' not described in 'e1000_consume_page' drivers/net/ethernet/intel/e1000e/netdev.c:1542: warning: Function parameter or member 'rx_ring' not described in 'e1000_clean_jumbo_rx_irq' drivers/net/ethernet/intel/e1000e/netdev.c:1542: warning: Function parameter or member 'work_done' not described in 'e1000_clean_jumbo_rx_irq' drivers/net/ethernet/intel/e1000e/netdev.c:1542: warning: Function parameter or member 'work_to_do' not described in 'e1000_clean_jumbo_rx_irq' drivers/net/ethernet/intel/e1000e/netdev.c:1542: warning: Excess function parameter 'adapter' description in 'e1000_clean_jumbo_rx_irq' drivers/net/ethernet/intel/e1000e/netdev.c:2003: warning: Function parameter or member 'adapter' not described in 'e1000_configure_msix' drivers/net/ethernet/intel/e1000e/netdev.c:2081: warning: Function parameter or member 'adapter' not described in 'e1000e_set_interrupt_capability' drivers/net/ethernet/intel/e1000e/netdev.c:2136: warning: Function parameter or member 'adapter' not described in 'e1000_request_msix' drivers/net/ethernet/intel/e1000e/netdev.c:2189: warning: Function parameter or member 'adapter' not described in 'e1000_request_irq' drivers/net/ethernet/intel/e1000e/netdev.c:2246: warning: Function parameter or member 'adapter' not described in 'e1000_irq_disable' drivers/net/ethernet/intel/e1000e/netdev.c:2268: warning: Function parameter or member 'adapter' not described in 'e1000_irq_enable' drivers/net/ethernet/intel/e1000e/netdev.c:2339: warning: Function parameter or member 'adapter' not described in 'e1000_alloc_ring_dma' drivers/net/ethernet/intel/e1000e/netdev.c:2339: warning: Function parameter or member 'ring' not described in 'e1000_alloc_ring_dma' drivers/net/ethernet/intel/e1000e/netdev.c:2526: warning: Excess function parameter 'adapter' description in 'e1000_update_itr' drivers/net/ethernet/intel/e1000e/netdev.c:3058: warning: Function parameter or member 'S' not described in 'PAGE_USE_COUNT' drivers/net/ethernet/intel/e1000e/netdev.c:3058: warning: Excess function parameter 'adapter' description in 'PAGE_USE_COUNT' drivers/net/ethernet/intel/e1000e/netdev.c:3623: warning: Function parameter or member 'config' not described in 'e1000e_config_hwtstamp' drivers/net/ethernet/intel/e1000e/netdev.c:3817: warning: Function parameter or member 'adapter' not described in 'e1000_power_down_phy' drivers/net/ethernet/intel/e1000e/netdev.c:3831: warning: Function parameter or member 'adapter' not described in 'e1000_flush_tx_ring' drivers/net/ethernet/intel/e1000e/netdev.c:3862: warning: Function parameter or member 'adapter' not described in 'e1000_flush_rx_ring' drivers/net/ethernet/intel/e1000e/netdev.c:3900: warning: Function parameter or member 'adapter' not described in 'e1000_flush_desc_rings' drivers/net/ethernet/intel/e1000e/netdev.c:3979: warning: Function parameter or member 'adapter' not described in 'e1000e_reset' drivers/net/ethernet/intel/e1000e/netdev.c:4857: warning: Function parameter or member 't' not described in 'e1000_update_phy_info' drivers/net/ethernet/intel/e1000e/netdev.c:4857: warning: Excess function parameter 'data' description in 'e1000_update_phy_info' drivers/net/ethernet/intel/e1000e/netdev.c:5194: warning: Function parameter or member 't' not described in 'e1000_watchdog' drivers/net/ethernet/intel/e1000e/netdev.c:5194: warning: Excess function parameter 'data' description in 'e1000_watchdog' drivers/net/ethernet/intel/e1000e/netdev.c:5978: warning: Function parameter or member 'txqueue' not described in 'e1000_tx_timeout' drivers/net/ethernet/intel/e1000e/netdev.c:6192: warning: Function parameter or member 'ifr' not described in 'e1000e_hwtstamp_set' drivers/net/ethernet/intel/e1000e/netdev.c:6192: warning: Excess function parameter 'ifreq' description in 'e1000e_hwtstamp_set' drivers/net/ethernet/intel/e1000e/phy.c:2319: warning: Function parameter or member 'reg' not described in 'e1000_get_phy_addr_for_bm_page' drivers/net/ethernet/intel/e1000e/phy.c:2739: warning: Function parameter or member 'page_set' not described in '__e1000_read_phy_reg_hv' drivers/net/ethernet/intel/e1000e/phy.c:2846: warning: Function parameter or member 'page_set' not described in '__e1000_write_phy_reg_hv' drivers/net/ethernet/intel/e1000e/ptp.c:155: warning: Function parameter or member 'xtstamp' not described in 'e1000e_phc_getcrosststamp' drivers/net/ethernet/intel/e1000e/ptp.c:155: warning: Excess function parameter 'cts' description in 'e1000e_phc_getcrosststamp' drivers/net/ethernet/intel/i40e/i40e_adminq.h:93: warning: Function parameter or member 'aq_ret' not described in 'i40e_aq_rc_to_posix' drivers/net/ethernet/intel/i40e/i40e_adminq.h:93: warning: Function parameter or member 'aq_rc' not described in 'i40e_aq_rc_to_posix' drivers/net/ethernet/intel/i40e/i40e_client.c:287: warning: Excess function parameter 'client' description in 'i40e_client_add_instance' drivers/net/ethernet/intel/i40e/i40e_client.c:287: warning: Excess function parameter 'existing' description in 'i40e_client_add_instance' drivers/net/ethernet/intel/i40e/i40e_common.c:3779: warning: Excess function parameter 'buff' description in 'i40e_aq_start_lldp' drivers/net/ethernet/intel/i40e/i40e_common.c:3779: warning: Excess function parameter 'buff_size' description in 'i40e_aq_start_lldp' drivers/net/ethernet/intel/i40e/i40e_common.c:5414: warning: Function parameter or member 'page_change' not described in 'i40e_aq_set_phy_register_ext' drivers/net/ethernet/intel/i40e/i40e_common.c:5458: warning: Function parameter or member 'page_change' not described in 'i40e_aq_get_phy_register_ext' drivers/net/ethernet/intel/i40e/i40e_main.c:297: warning: Function parameter or member 'txqueue' not described in 'i40e_tx_timeout' drivers/net/ethernet/intel/i40e/i40e_main.c:1616: warning: Function parameter or member 'lut' not described in 'i40e_config_rss_aq' drivers/net/ethernet/intel/i40e/i40e_main.c:1616: warning: Function parameter or member 'lut_size' not described in 'i40e_config_rss_aq' drivers/net/ethernet/intel/i40e/i40e_main.c:5828: warning: Excess function parameter 'vsi' description in 'i40e_channel_setup_queue_map' drivers/net/ethernet/intel/i40e/i40e_main.c:6071: warning: Function parameter or member 'vsi' not described in 'i40e_setup_channel' drivers/net/ethernet/intel/i40e/i40e_main.c:6071: warning: Excess function parameter 'type' description in 'i40e_setup_channel' drivers/net/ethernet/intel/i40e/i40e_main.c:6071: warning: Excess function parameter 'uplink_seid' description in 'i40e_setup_channel' drivers/net/ethernet/intel/i40e/i40e_main.c:7791: warning: Function parameter or member 'f' not described in 'i40e_parse_cls_flower' drivers/net/ethernet/intel/i40e/i40e_main.c:7791: warning: Excess function parameter 'cls_flower' description in 'i40e_parse_cls_flower' drivers/net/ethernet/intel/i40e/i40e_main.c:8170: warning: Function parameter or member 'np' not described in 'i40e_setup_tc_cls_flower' drivers/net/ethernet/intel/i40e/i40e_main.c:8170: warning: Function parameter or member 'cls_flower' not described in 'i40e_setup_tc_cls_flower' drivers/net/ethernet/intel/i40e/i40e_main.c:8170: warning: Excess function parameter 'netdev' description in 'i40e_setup_tc_cls_flower' drivers/net/ethernet/intel/i40e/i40e_main.c:8170: warning: Excess function parameter 'type_data' description in 'i40e_setup_tc_cls_flower' drivers/net/ethernet/intel/i40e/i40e_main.c:9593: warning: Function parameter or member 'list_type' not described in 'i40e_get_capabilities' drivers/net/ethernet/intel/i40e/i40e_main.c:10554: warning: Function parameter or member 't' not described in 'i40e_service_timer' drivers/net/ethernet/intel/i40e/i40e_main.c:10554: warning: Excess function parameter 'data' description in 'i40e_service_timer' drivers/net/ethernet/intel/i40e/i40e_main.c:12384: warning: Function parameter or member 'extack' not described in 'i40e_ndo_fdb_add' drivers/net/ethernet/intel/i40e/i40e_ptp.c:271: warning: Excess function parameter 'vsi' description in 'i40e_ptp_rx_hang' drivers/net/ethernet/intel/i40e/i40e_trace.h:46: warning: Function parameter or member 'trace_name' not described in '_I40E_TRACE_NAME' drivers/net/ethernet/intel/i40e/i40e_txrx.c:1767: warning: Excess function parameter 'rx_ptype' description in 'i40e_process_skb_fields' drivers/net/ethernet/intel/i40e/i40e_txrx.c:3521: warning: Function parameter or member 'xdpf' not described in 'i40e_xmit_xdp_ring' drivers/net/ethernet/intel/i40e/i40e_txrx.c:3521: warning: Excess function parameter 'xdp' description in 'i40e_xmit_xdp_ring' drivers/net/ethernet/intel/i40e/i40e_txrx.c:3721: warning: Function parameter or member 'n' not described in 'i40e_xdp_xmit' drivers/net/ethernet/intel/i40e/i40e_txrx.c:3721: warning: Function parameter or member 'frames' not described in 'i40e_xdp_xmit' drivers/net/ethernet/intel/i40e/i40e_txrx.c:3721: warning: Function parameter or member 'flags' not described in 'i40e_xdp_xmit' drivers/net/ethernet/intel/i40e/i40e_txrx.c:3721: warning: Excess function parameter 'xdp' description in 'i40e_xdp_xmit' drivers/net/ethernet/intel/i40e/i40e_txrx.h:493: warning: Excess function parameter 'tx_ring' description in 'i40e_xmit_descriptor_count' drivers/net/ethernet/intel/i40e/i40e_txrx_common.h:30: warning: Function parameter or member 'td_cmd' not described in 'build_ctob' drivers/net/ethernet/intel/i40e/i40e_txrx_common.h:30: warning: Function parameter or member 'td_offset' not described in 'build_ctob' drivers/net/ethernet/intel/i40e/i40e_txrx_common.h:30: warning: Function parameter or member 'size' not described in 'build_ctob' drivers/net/ethernet/intel/i40e/i40e_txrx_common.h:30: warning: Function parameter or member 'td_tag' not described in 'build_ctob' drivers/net/ethernet/intel/i40e/i40e_txrx_common.h:47: warning: Function parameter or member 'total_packets' not described in 'i40e_update_tx_stats' drivers/net/ethernet/intel/i40e/i40e_txrx_common.h:47: warning: Excess function parameter 'total_packet' description in 'i40e_update_tx_stats' drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:2246: warning: Function parameter or member 'vf' not described in 'i40e_validate_queue_map' drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:3161: warning: Function parameter or member 'vf' not described in 'i40e_validate_cloud_filter' drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:3161: warning: Function parameter or member 'tc_filter' not described in 'i40e_validate_cloud_filter' drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:3161: warning: Excess function parameter 'mask' description in 'i40e_validate_cloud_filter' drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:3161: warning: Excess function parameter 'data' description in 'i40e_validate_cloud_filter' drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:3291: warning: Function parameter or member 'seid' not described in 'i40e_find_vsi_from_seid' drivers/net/ethernet/intel/iavf/iavf_adminq.h:93: warning: Function parameter or member 'aq_ret' not described in 'iavf_aq_rc_to_posix' drivers/net/ethernet/intel/iavf/iavf_adminq.h:93: warning: Function parameter or member 'aq_rc' not described in 'iavf_aq_rc_to_posix' drivers/net/ethernet/intel/iavf/iavf_main.c:153: warning: Function parameter or member 'txqueue' not described in 'iavf_tx_timeout' drivers/net/ethernet/intel/iavf/iavf_main.c:2580: warning: Function parameter or member 'adapter' not described in 'iavf_del_all_cloud_filters' drivers/net/ethernet/intel/iavf/iavf_main.c:2605: warning: Function parameter or member 'type_data' not described in '__iavf_setup_tc' drivers/net/ethernet/intel/iavf/iavf_main.c:2605: warning: Excess function parameter 'type_date' description in '__iavf_setup_tc' drivers/net/ethernet/intel/iavf/iavf_main.c:2700: warning: Function parameter or member 'f' not described in 'iavf_parse_cls_flower' drivers/net/ethernet/intel/iavf/iavf_main.c:2700: warning: Excess function parameter 'cls_flower' description in 'iavf_parse_cls_flower' drivers/net/ethernet/intel/iavf/iavf_main.c:3073: warning: Function parameter or member 'adapter' not described in 'iavf_setup_tc_cls_flower' drivers/net/ethernet/intel/iavf/iavf_main.c:3073: warning: Function parameter or member 'cls_flower' not described in 'iavf_setup_tc_cls_flower' drivers/net/ethernet/intel/iavf/iavf_main.c:3073: warning: Excess function parameter 'netdev' description in 'iavf_setup_tc_cls_flower' drivers/net/ethernet/intel/iavf/iavf_main.c:3073: warning: Excess function parameter 'type_data' description in 'iavf_setup_tc_cls_flower' drivers/net/ethernet/intel/iavf/iavf_main.c:3125: warning: Function parameter or member 'type_data' not described in 'iavf_setup_tc' drivers/net/ethernet/intel/iavf/iavf_main.c:3125: warning: Excess function parameter 'type_date' description in 'iavf_setup_tc' drivers/net/ethernet/intel/iavf/iavf_main.c:3778: warning: Function parameter or member 'dev_d' not described in 'iavf_suspend' drivers/net/ethernet/intel/iavf/iavf_main.c:3778: warning: Excess function parameter 'pdev' description in 'iavf_suspend' drivers/net/ethernet/intel/iavf/iavf_main.c:3778: warning: Excess function parameter 'state' description in 'iavf_suspend' drivers/net/ethernet/intel/iavf/iavf_main.c:3808: warning: Function parameter or member 'dev_d' not described in 'iavf_resume' drivers/net/ethernet/intel/iavf/iavf_main.c:3808: warning: Excess function parameter 'pdev' description in 'iavf_resume' drivers/net/ethernet/intel/iavf/iavf_trace.h:46: warning: Function parameter or member 'trace_name' not described in '_IAVF_TRACE_NAME' drivers/net/ethernet/intel/iavf/iavf_txrx.h:465: warning: Excess function parameter 'tx_ring' description in 'iavf_xmit_descriptor_count' drivers/net/ethernet/intel/iavf/iavf_txrx.h:518: warning: Cannot understand * @ring: Tx ring to find the netdev equivalent of on line 518 - I thought it was a doc line drivers/net/ethernet/intel/ice/ice.h:518: warning: Function parameter or member 'ring' not described in 'ice_xsk_pool' drivers/net/ethernet/intel/ice/ice_adminq_cmd.h:1432: warning: cannot understand function prototype: 'struct ice_aqc_pf_vf_msg ' drivers/net/ethernet/intel/ice/ice_adminq_cmd.h:1899: warning: Function parameter or member 'cookie_high' not described in 'ice_aq_desc' drivers/net/ethernet/intel/ice/ice_adminq_cmd.h:1899: warning: Function parameter or member 'cookie_low' not described in 'ice_aq_desc' drivers/net/ethernet/intel/ice/ice_txrx.h:55: warning: Function parameter or member 'rx_buf_len' not described in 'ice_compute_pad' drivers/net/ethernet/intel/igb/e1000_82575.c:2564: warning: Function parameter or member 'address' not described in '__igb_access_emi_reg' drivers/net/ethernet/intel/igb/e1000_82575.c:2564: warning: Excess function parameter 'addr' description in '__igb_access_emi_reg' drivers/net/ethernet/intel/igb/e1000_82575.c:2600: warning: Function parameter or member 'adv100M' not described in 'igb_set_eee_i350' drivers/net/ethernet/intel/igb/e1000_82575.c:2600: warning: Excess function parameter 'adv100m' description in 'igb_set_eee_i350' drivers/net/ethernet/intel/igb/e1000_82575.c:2656: warning: Function parameter or member 'adv100M' not described in 'igb_set_eee_i354' drivers/net/ethernet/intel/igb/e1000_82575.c:2656: warning: Excess function parameter 'adv100m' description in 'igb_set_eee_i354' drivers/net/ethernet/intel/igb/e1000_i210.c:368: warning: Function parameter or member 'offset' not described in 'igb_read_invm_i210' drivers/net/ethernet/intel/igb/e1000_i210.c:368: warning: Function parameter or member '__always_unused' not described in 'igb_read_invm_i210' drivers/net/ethernet/intel/igb/e1000_i210.c:368: warning: Excess function parameter 'words' description in 'igb_read_invm_i210' drivers/net/ethernet/intel/igb/e1000_mac.c:176: warning: Function parameter or member 'vlvf_bypass' not described in 'igb_vfta_set' drivers/net/ethernet/intel/igb/e1000_mbx.c:18: warning: Function parameter or member 'unlock' not described in 'igb_read_mbx' drivers/net/ethernet/intel/igb/igb_main.c:559: warning: Function parameter or member 'data' not described in 'igb_get_i2c_data' drivers/net/ethernet/intel/igb/igb_main.c:559: warning: Excess function parameter 'hw' description in 'igb_get_i2c_data' drivers/net/ethernet/intel/igb/igb_main.c:559: warning: Excess function parameter 'i2cctl' description in 'igb_get_i2c_data' drivers/net/ethernet/intel/igb/igb_main.c:3882: warning: Function parameter or member 'resuming' not described in '__igb_open' drivers/net/ethernet/intel/igb/igb_main.c:3998: warning: Function parameter or member 'suspending' not described in '__igb_close' drivers/net/ethernet/intel/igb/igb_main.c:5226: warning: Function parameter or member 't' not described in 'igb_watchdog' drivers/net/ethernet/intel/igb/igb_main.c:5226: warning: Excess function parameter 'data' description in 'igb_watchdog' drivers/net/ethernet/intel/igb/igb_main.c:6198: warning: Function parameter or member 'txqueue' not described in 'igb_tx_timeout' drivers/net/ethernet/intel/igb/igb_main.c:8194: warning: Excess function parameter 'skb' description in 'igb_is_non_eop' drivers/net/ethernet/intel/igb/igb_main.c:8468: warning: Function parameter or member 'rx_ring' not described in 'igb_alloc_rx_buffers' drivers/net/ethernet/intel/igb/igb_main.c:8468: warning: Function parameter or member 'cleaned_count' not described in 'igb_alloc_rx_buffers' drivers/net/ethernet/intel/igb/igb_main.c:8468: warning: Excess function parameter 'adapter' description in 'igb_alloc_rx_buffers' drivers/net/ethernet/intel/igb/igb_main.c:8539: warning: Function parameter or member 'netdev' not described in 'igb_mii_ioctl' drivers/net/ethernet/intel/igb/igb_main.c:8539: warning: Function parameter or member 'ifr' not described in 'igb_mii_ioctl' drivers/net/ethernet/intel/igb/igb_main.c:8539: warning: Function parameter or member 'cmd' not described in 'igb_mii_ioctl' drivers/net/ethernet/intel/igb/igb_main.c:8569: warning: Function parameter or member 'netdev' not described in 'igb_ioctl' drivers/net/ethernet/intel/igb/igb_main.c:8569: warning: Function parameter or member 'ifr' not described in 'igb_ioctl' drivers/net/ethernet/intel/igb/igb_main.c:8569: warning: Function parameter or member 'cmd' not described in 'igb_ioctl' drivers/net/ethernet/intel/igb/igb_ptp.c:969: warning: Function parameter or member 'netdev' not described in 'igb_ptp_get_ts_config' drivers/net/ethernet/intel/igb/igb_ptp.c:969: warning: Function parameter or member 'ifr' not described in 'igb_ptp_get_ts_config' drivers/net/ethernet/intel/igb/igb_ptp.c:969: warning: Excess function parameter 'ifreq' description in 'igb_ptp_get_ts_config' drivers/net/ethernet/intel/igb/igb_ptp.c:1150: warning: Function parameter or member 'netdev' not described in 'igb_ptp_set_ts_config' drivers/net/ethernet/intel/igb/igb_ptp.c:1150: warning: Function parameter or member 'ifr' not described in 'igb_ptp_set_ts_config' drivers/net/ethernet/intel/igb/igb_ptp.c:1150: warning: Excess function parameter 'ifreq' description in 'igb_ptp_set_ts_config' drivers/net/ethernet/intel/igbvf/netdev.c:68: warning: Function parameter or member 'ring' not described in 'igbvf_desc_unused' drivers/net/ethernet/intel/igbvf/netdev.c:68: warning: Excess function parameter 'rx_ring' description in 'igbvf_desc_unused' drivers/net/ethernet/intel/igbvf/netdev.c:86: warning: Function parameter or member 'netdev' not described in 'igbvf_receive_skb' drivers/net/ethernet/intel/igbvf/netdev.c:243: warning: Function parameter or member 'work_done' not described in 'igbvf_clean_rx_irq' drivers/net/ethernet/intel/igbvf/netdev.c:243: warning: Function parameter or member 'work_to_do' not described in 'igbvf_clean_rx_irq' drivers/net/ethernet/intel/igbvf/netdev.c:415: warning: Function parameter or member 'tx_ring' not described in 'igbvf_setup_tx_resources' drivers/net/ethernet/intel/igbvf/netdev.c:453: warning: Function parameter or member 'rx_ring' not described in 'igbvf_setup_rx_resources' drivers/net/ethernet/intel/igbvf/netdev.c:547: warning: Function parameter or member 'rx_ring' not described in 'igbvf_clean_rx_ring' drivers/net/ethernet/intel/igbvf/netdev.c:547: warning: Excess function parameter 'adapter' description in 'igbvf_clean_rx_ring' drivers/net/ethernet/intel/igbvf/netdev.c:769: warning: Function parameter or member 'tx_ring' not described in 'igbvf_clean_tx_irq' drivers/net/ethernet/intel/igbvf/netdev.c:769: warning: Excess function parameter 'adapter' description in 'igbvf_clean_tx_irq' drivers/net/ethernet/intel/igbvf/netdev.c:1898: warning: Function parameter or member 't' not described in 'igbvf_watchdog' drivers/net/ethernet/intel/igbvf/netdev.c:1898: warning: Excess function parameter 'data' description in 'igbvf_watchdog' drivers/net/ethernet/intel/igbvf/netdev.c:2378: warning: Function parameter or member 'txqueue' not described in 'igbvf_tx_timeout' drivers/net/ethernet/intel/igc/igc_main.c:4661: warning: Function parameter or member 'ifr' not described in 'igc_ioctl' drivers/net/ethernet/intel/igc/igc_main.c:4661: warning: Excess function parameter 'ifreq' description in 'igc_ioctl' drivers/net/ethernet/intel/igc/igc_ptp.c:428: warning: Function parameter or member 'ifr' not described in 'igc_ptp_set_ts_config' drivers/net/ethernet/intel/igc/igc_ptp.c:428: warning: Excess function parameter 'ifreq' description in 'igc_ptp_set_ts_config' drivers/net/ethernet/intel/igc/igc_ptp.c:458: warning: Function parameter or member 'ifr' not described in 'igc_ptp_get_ts_config' drivers/net/ethernet/intel/igc/igc_ptp.c:458: warning: Excess function parameter 'ifreq' description in 'igc_ptp_get_ts_config' drivers/net/ethernet/intel/ixgb/ixgb_main.c:1118: warning: Function parameter or member 't' not described in 'ixgb_watchdog' drivers/net/ethernet/intel/ixgb/ixgb_main.c:1118: warning: Excess function parameter 'data' description in 'ixgb_watchdog' drivers/net/ethernet/intel/ixgb/ixgb_main.c:1539: warning: Function parameter or member 'txqueue' not described in 'ixgb_tx_timeout' drivers/net/ethernet/intel/ixgb/ixgb_main.c:1755: warning: Function parameter or member 'napi' not described in 'ixgb_clean' drivers/net/ethernet/intel/ixgb/ixgb_main.c:1755: warning: Function parameter or member 'budget' not described in 'ixgb_clean' drivers/net/ethernet/intel/ixgb/ixgb_main.c:1755: warning: Excess function parameter 'adapter' description in 'ixgb_clean' drivers/net/ethernet/intel/ixgb/ixgb_main.c:1876: warning: Function parameter or member 'skb' not described in 'ixgb_rx_checksum' drivers/net/ethernet/intel/ixgb/ixgb_main.c:1876: warning: Excess function parameter 'sk_buff' description in 'ixgb_rx_checksum' drivers/net/ethernet/intel/ixgb/ixgb_main.c:1931: warning: Function parameter or member 'work_done' not described in 'ixgb_clean_rx_irq' drivers/net/ethernet/intel/ixgb/ixgb_main.c:1931: warning: Function parameter or member 'work_to_do' not described in 'ixgb_clean_rx_irq' drivers/net/ethernet/intel/ixgb/ixgb_main.c:2050: warning: Function parameter or member 'cleaned_count' not described in 'ixgb_alloc_rx_buffers' drivers/net/ethernet/intel/ixgb/ixgb_main.c:2223: warning: Function parameter or member 'pdev' not described in 'ixgb_io_slot_reset' drivers/net/ethernet/intel/ixgb/ixgb_main.c:2270: warning: Function parameter or member 'pdev' not described in 'ixgb_io_resume' drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:6181: warning: Function parameter or member 'txqueue' not described in 'ixgbe_tx_timeout' drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c:780: warning: Function parameter or member 'bus' not described in 'ixgbe_mii_bus_read' drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c:780: warning: Excess function parameter 'hw' description in 'ixgbe_mii_bus_read' drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c:797: warning: Function parameter or member 'bus' not described in 'ixgbe_mii_bus_write' drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c:797: warning: Excess function parameter 'hw' description in 'ixgbe_mii_bus_write' drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c:813: warning: Function parameter or member 'bus' not described in 'ixgbe_x550em_a_mii_bus_read' drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c:813: warning: Excess function parameter 'hw' description in 'ixgbe_x550em_a_mii_bus_read' drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c:831: warning: Function parameter or member 'bus' not described in 'ixgbe_x550em_a_mii_bus_write' drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c:831: warning: Excess function parameter 'hw' description in 'ixgbe_x550em_a_mii_bus_write' drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c:252: warning: Function parameter or member 'txqueue' not described in 'ixgbevf_tx_timeout'
--- drivers/net/ethernet/intel/e100.c | 2 +- drivers/net/ethernet/intel/e1000/e1000_hw.c | 7 +-- drivers/net/ethernet/intel/e1000/e1000_main.c | 39 +++++++++------ .../net/ethernet/intel/e1000e/80003es2lan.c | 1 - drivers/net/ethernet/intel/e1000e/ich8lan.c | 16 +++--- drivers/net/ethernet/intel/e1000e/netdev.c | 50 ++++++++++++++----- drivers/net/ethernet/intel/e1000e/phy.c | 3 ++ drivers/net/ethernet/intel/e1000e/ptp.c | 2 +- drivers/net/ethernet/intel/i40e/i40e_adminq.h | 4 +- drivers/net/ethernet/intel/i40e/i40e_client.c | 2 - drivers/net/ethernet/intel/i40e/i40e_common.c | 4 +- drivers/net/ethernet/intel/i40e/i40e_main.c | 17 ++++--- drivers/net/ethernet/intel/i40e/i40e_ptp.c | 1 - drivers/net/ethernet/intel/i40e/i40e_trace.h | 2 +- drivers/net/ethernet/intel/i40e/i40e_txrx.c | 7 +-- drivers/net/ethernet/intel/i40e/i40e_txrx.h | 1 - .../ethernet/intel/i40e/i40e_txrx_common.h | 6 +-- .../ethernet/intel/i40e/i40e_virtchnl_pf.c | 9 ++-- drivers/net/ethernet/intel/iavf/iavf_adminq.h | 4 +- drivers/net/ethernet/intel/iavf/iavf_main.c | 20 ++++---- drivers/net/ethernet/intel/iavf/iavf_trace.h | 2 +- drivers/net/ethernet/intel/iavf/iavf_txrx.h | 2 +- drivers/net/ethernet/intel/ice/ice.h | 2 +- .../net/ethernet/intel/ice/ice_adminq_cmd.h | 6 +-- drivers/net/ethernet/intel/ice/ice_txrx.h | 2 +- drivers/net/ethernet/intel/igb/e1000_82575.c | 6 +-- drivers/net/ethernet/intel/igb/e1000_i210.c | 5 +- drivers/net/ethernet/intel/igb/e1000_mac.c | 1 + drivers/net/ethernet/intel/igb/e1000_mbx.c | 1 + drivers/net/ethernet/intel/igb/igb_main.c | 28 ++++++----- drivers/net/ethernet/intel/igb/igb_ptp.c | 8 +-- drivers/net/ethernet/intel/igbvf/netdev.c | 17 +++++-- drivers/net/ethernet/intel/igc/igc_main.c | 2 +- drivers/net/ethernet/intel/igc/igc_ptp.c | 4 +- drivers/net/ethernet/intel/ixgb/ixgb_main.c | 17 ++++--- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 3 +- drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c | 8 +-- .../net/ethernet/intel/ixgbevf/ixgbevf_main.c | 3 +- 38 files changed, 185 insertions(+), 129 deletions(-)
drivers/net/ethernet/intel/e100.c +1 -1
@@ -384,7 +384,7 @@ enum cb_status { cb_ok = 0x2000, }; -/** +/* * cb_command - Command Block flags * @cb_tx_nc: 0: controller does CRC (normal), 1: CRC from skb memory */
drivers/net/ethernet/intel/e1000/e1000_hw.c +1 -6
@@ -1896,7 +1896,6 @@ void e1000_config_collision_dist(struct e1000_hw *hw)/** * e1000_config_mac_to_phy - sync phy and mac settings * @hw: Struct containing variables accessed by shared code -* @mii_reg: data to write to the MII control register * * Sets MAC speed and duplex settings to reflect the those in the PHY * The contents of the PHY register containing the needed information need to
@@ -2921,7 +2920,7 @@ static s32 e1000_read_phy_reg_ex(struct e1000_hw *hw, u32 reg_addr,* * @hw: Struct containing variables accessed by shared code * @reg_addr: address of the PHY register to write -* @data: data to write to the PHY +* @phy_data: data to write to the PHY * * Writes a value to a PHY register */
@@ -4777,8 +4776,6 @@ void e1000_reset_adaptive(struct e1000_hw *hw)/** * e1000_update_adaptive - update adaptive IFS * @hw: Struct containing variables accessed by shared code -* @tx_packets: Number of transmits since last callback -* @total_collisions: Number of collisions since last callback * * Called during the callback/watchdog routine to update IFS value based on * the ratio of transmits to collisions.
@@ -5063,8 +5060,6 @@ static s32 e1000_check_polarity(struct e1000_hw *hw,/** * e1000_check_downshift - Check if Downshift occurred * @hw: Struct containing variables accessed by shared code -* @downshift: output parameter : 0 - No Downshift occurred. -* 1 - Downshift occurred. * * returns: - E1000_ERR_XXX * E1000_SUCCESS
drivers/net/ethernet/intel/e1000/e1000_main.c +25 -14
@@ -199,8 +199,10 @@ module_param(debug, int, 0);MODULE_PARM_DESC (debug,"Debug level (0=none,...,16=all)" );/** -* e1000_get_hw_dev - return device -* used by hardware layer to print debugging information +* e1000_get_hw_dev - helper function for getting netdev +* @hw: pointer to HW struct +* +* return device used by hardware layer to print debugging information * **/ struct net_device *e1000_get_hw_dev (struct e1000_hw *hw)
@@ -354,7 +356,7 @@ static void e1000_release_manageability(struct e1000_adapter *adapter)/** * e1000_configure - configure the hardware for RX and TX -* @adapter = private board structure +* @adapter: private board structure **/ static void e1000_configure (struct e1000_adapter *adapter) {
@@ -3489,8 +3491,9 @@ static void e1000_dump(struct e1000_adapter *adapter)/** * e1000_tx_timeout - Respond to a Tx Hang * @netdev: network interface device structure +* @txqueue: number of the Tx queue that hung (unused) **/ -static void e1000_tx_timeout (struct net_device *netdev,unsigned int txqueue) +static void e1000_tx_timeout (struct net_device *netdev,unsigned int __always_unused txqueue) {struct e1000_adapter *adapter =netdev_priv (netdev);
@@ -3787,7 +3790,8 @@ static irqreturn_t e1000_intr(int irq, void *data)/** * e1000_clean - NAPI Rx polling callback -* @adapter: board private structure +* @napi: napi struct containing references to driver info +* @budget: budget given to driver for receive packets **/ static int e1000_clean (struct napi_struct *napi,int budget) {
@@ -3818,6 +3822,7 @@ static int e1000_clean(struct napi_struct *napi, int budget)/** * e1000_clean_tx_irq - Reclaim resources after transmit completes * @adapter: board private structure +* @tx_ring: ring to clean **/ static bool e1000_clean_tx_irq (struct e1000_adapter *adapter,struct e1000_tx_ring *tx_ring)
@@ -3933,7 +3938,7 @@ static bool e1000_clean_tx_irq(struct e1000_adapter *adapter,* @adapter: board private structure * @status_err: receive descriptor status and error fields * @csum: receive descriptor csum field -* @sk_buff: socket buffer with received data +* @skb: socket buffer with received data **/ static void e1000_rx_checksum (struct e1000_adapter *adapter,u32 status_err,u32 csum,struct sk_buff *skb)
@@ -3970,6 +3975,9 @@ static void e1000_rx_checksum(struct e1000_adapter *adapter, u32 status_err,/** * e1000_consume_page - helper function for jumbo Rx path +* @bi: software descriptor shadow data +* @skb: skb being modified +* @length: length of data being added **/ static void e1000_consume_page (struct e1000_rx_buffer *bi,struct sk_buff *skb,u16 length)
@@ -4003,6 +4011,7 @@ static void e1000_receive_skb(struct e1000_adapter *adapter, u8 status,/** * e1000_tbi_adjust_stats * @hw: Struct containing variables accessed by shared code +* @stats: point to stats struct * @frame_len: The length of the frame in question * @mac_addr: The Ethernet destination address of the frame in question *
@@ -4548,6 +4557,8 @@ e1000_alloc_jumbo_rx_buffers(struct e1000_adapter *adapter,/** * e1000_alloc_rx_buffers - Replace used receive buffers; legacy & extended * @adapter: address of board private structure +* @rx_ring: pointer to ring struct +* @cleaned_count: number of new Rx buffers to try to allocate **/ static void e1000_alloc_rx_buffers(struct e1000_adapter *adapter, struct e1000_rx_ring *rx_ring,
@@ -4662,7 +4673,7 @@ static void e1000_alloc_rx_buffers(struct e1000_adapter *adapter,/** * e1000_smartspeed - Workaround for SmartSpeed on 82541 and 82547 controllers. -* @adapter: +* @adapter: address of board private structure **/ static void e1000_smartspeed (struct e1000_adapter *adapter) {
@@ -4718,10 +4729,10 @@ static void e1000_smartspeed(struct e1000_adapter *adapter) }/** -* e1000_ioctl - -* @netdev: -* @ifreq: -* @cmd: +* e1000_ioctl - handle ioctl calls +* @netdev: pointer to our netdev +* @ifr: pointer to interface request structure +* @cmd: ioctl data **/ static int e1000_ioctl (struct net_device *netdev,struct ifreq *ifr,int cmd) {
@@ -4737,9 +4748,9 @@ static int e1000_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)/** * e1000_mii_ioctl - -* @netdev: -* @ifreq: -* @cmd: +* @netdev: pointer to our netdev +* @ifr: pointer to interface request structure +* @cmd: ioctl data **/ static int e1000_mii_ioctl (struct net_device *netdev,struct ifreq *ifr,int cmd)
drivers/net/ethernet/intel/e1000e/80003es2lan.c +0 -1
@@ -1072,7 +1072,6 @@ static s32 e1000_setup_copper_link_80003es2lan(struct e1000_hw *hw)/** * e1000_cfg_on_link_up_80003es2lan - es2 link configuration after link-up * @hw: pointer to the HW structure -* @duplex: current duplex setting * * Configure the KMRN interface by applying last minute quirks for * 10/100 operation.
drivers/net/ethernet/intel/e1000e/ich8lan.c +10 -6
@@ -743,7 +743,7 @@ static s32 e1000_init_mac_params_ich8lan(struct e1000_hw *hw)/** * __e1000_access_emi_reg_locked - Read/write EMI register * @hw: pointer to the HW structure -* @addr: EMI address to program +* @address: EMI address to program * @data: pointer to value to read/write from/to the EMI address * @read: boolean flag to indicate read or write *
@@ -2266,7 +2266,7 @@ static s32 e1000_k1_gig_workaround_hv(struct e1000_hw *hw, bool link)/** * e1000_configure_k1_ich8lan - Configure K1 power state * @hw: pointer to the HW structure -* @enable: K1 state to configure +* @k1_enable: K1 state to configure * * Configure the K1 power state based on the provided parameter. * Assumes semaphore already acquired.
@@ -2405,8 +2405,10 @@ static s32 e1000_set_mdio_slow_mode_hv(struct e1000_hw *hw) }/** -* e1000_hv_phy_workarounds_ich8lan - A series of Phy workarounds to be -* done after every PHY reset. +* e1000_hv_phy_workarounds_ich8lan - apply PHY workarounds +* @hw: pointer to the HW structure +* +* A series of PHY workarounds to be done after every PHY reset. **/ static s32 e1000_hv_phy_workarounds_ich8lan (struct e1000_hw *hw) {
@@ -2694,8 +2696,10 @@ s32 e1000_lv_jumbo_workaround_ich8lan(struct e1000_hw *hw, bool enable) }/** -* e1000_lv_phy_workarounds_ich8lan - A series of Phy workarounds to be -* done after every PHY reset. +* e1000_lv_phy_workarounds_ich8lan - apply ich8 specific workarounds +* @hw: pointer to the HW structure +* +* A series of PHY workarounds to be done after every PHY reset. **/ static s32 e1000_lv_phy_workarounds_ich8lan (struct e1000_hw *hw) {
drivers/net/ethernet/intel/e1000e/netdev.c +37 -13
229 lines not on this page · raw message
drivers/net/ethernet/intel/e1000e/phy.c +3 -0
@@ -2311,6 +2311,7 @@ s32 e1000e_determine_phy_address(struct e1000_hw *hw)/** * e1000_get_phy_addr_for_bm_page - Retrieve PHY page address * @page: page to access +* @reg: register to check * * Returns the phy address for the page requested. **/
@@ -2728,6 +2729,7 @@ void e1000_power_down_phy_copper(struct e1000_hw *hw)* @offset: register offset to be read * @data: pointer to the read data * @locked: semaphore has already been acquired or not +* @page_set: BM_WUC_PAGE already set and access enabled * * Acquires semaphore, if necessary, then reads the PHY register at offset * and stores the retrieved information in data. Release any acquired
@@ -2836,6 +2838,7 @@ s32 e1000_read_phy_reg_page_hv(struct e1000_hw *hw, u32 offset, u16 *data)* @offset: register offset to write to * @data: data to write at register offset * @locked: semaphore has already been acquired or not +* @page_set: BM_WUC_PAGE already set and access enabled * * Acquires semaphore, if necessary, then writes the data to PHY register * at the offset. Release any acquired semaphores before exiting.
drivers/net/ethernet/intel/e1000e/ptp.c +1 -1
@@ -144,7 +144,7 @@ static int e1000e_phc_get_syncdevicetime(ktime_t *device,/** * e1000e_phc_getsynctime - Reads the current system/device cross timestamp * @ptp: ptp clock structure -* @cts: structure containing timestamp +* @xtstamp: structure containing timestamp * * Read device and system (ART) clock simultaneously and return the scaled * clock values in ns.
drivers/net/ethernet/intel/i40e/i40e_adminq.h +2 -2
@@ -85,8 +85,8 @@ struct i40e_adminq_info {/** * i40e_aq_rc_to_posix - convert errors to user-land codes -* aq_ret: AdminQ handler error code can override aq_rc -* aq_rc: AdminQ firmware error code to convert +* @aq_ret: AdminQ handler error code can override aq_rc +* @aq_rc: AdminQ firmware error code to convert **/ static inline int i40e_aq_rc_to_posix (int aq_ret,int aq_rc) {
drivers/net/ethernet/intel/i40e/i40e_client.c +0 -2
@@ -278,8 +278,6 @@ void i40e_client_update_msix_info(struct i40e_pf *pf)/** * i40e_client_add_instance - add a client instance struct to the instance list * @pf: pointer to the board struct -* @client: pointer to a client struct in the client list. -* @existing: if there was already an existing instance * **/ static void i40e_client_add_instance (struct i40e_pf *pf)
drivers/net/ethernet/intel/i40e/i40e_common.c +2 -2
@@ -3766,9 +3766,7 @@ i40e_status i40e_aq_stop_lldp(struct i40e_hw *hw, bool shutdown_agent,/** * i40e_aq_start_lldp * @hw: pointer to the hw struct -* @buff: buffer for result * @persist: True if start of LLDP should be persistent across power cycles -* @buff_size: buffer size * @cmd_details: pointer to command details structure or NULL * * Start the embedded LLDP Agent on all ports.
@@ -5395,6 +5393,7 @@ static void i40e_mdio_if_number_selection(struct i40e_hw *hw, bool set_mdio,* @hw: pointer to the hw struct * @phy_select: select which phy should be accessed * @dev_addr: PHY device address +* @page_change: flag to indicate if phy page should be updated * @set_mdio: use MDIO I/F number specified by mdio_num * @mdio_num: MDIO I/F number * @reg_addr: PHY register address
@@ -5439,6 +5438,7 @@ enum i40e_status_code i40e_aq_set_phy_register_ext(struct i40e_hw *hw,* @hw: pointer to the hw struct * @phy_select: select which phy should be accessed * @dev_addr: PHY device address +* @page_change: flag to indicate if phy page should be updated * @set_mdio: use MDIO I/F number specified by mdio_num * @mdio_num: MDIO I/F number * @reg_addr: PHY register address
drivers/net/ethernet/intel/i40e/i40e_main.c +10 -7
@@ -287,6 +287,7 @@ void i40e_service_event_schedule(struct i40e_pf *pf)/** * i40e_tx_timeout - Respond to a Tx Hang * @netdev: network interface device structure +* @txqueue: queue number timing out * * If any port has noticed a Tx timeout, it is likely that the whole * device is munged, not just the one netdev port, so go for the full
@@ -1609,6 +1610,8 @@ static int i40e_set_mac(struct net_device *netdev, void *p)* i40e_config_rss_aq - Prepare for RSS using AQ commands * @vsi: vsi structure * @seed: RSS hash seed +* @lut: pointer to lookup table of lut_size +* @lut_size: size of the lookup table **/ static int i40e_config_rss_aq (struct i40e_vsi *vsi,const u8 *seed,u8 *lut,u16 lut_size)
@@ -5815,7 +5818,6 @@ static int i40e_vsi_reconfig_rss(struct i40e_vsi *vsi, u16 rss_size)/** * i40e_channel_setup_queue_map - Setup a channel queue map * @pf: ptr to PF device -* @vsi: the VSI being setup * @ctxt: VSI context structure * @ch: ptr to channel structure *
@@ -6058,8 +6060,7 @@ static inline int i40e_setup_hw_channel(struct i40e_pf *pf,/** * i40e_setup_channel - setup new channel using uplink element * @pf: ptr to PF device -* @type: type of channel to be created (VMDq2/VF) -* @uplink_seid: underlying HW switching element (VEB) ID +* @vsi: pointer to the VSI to set up the channel within * @ch: ptr to channel structure * * Setup new channel (VSI) based on specified type (VMDq2/VF)
@@ -7780,7 +7781,7 @@ int i40e_add_del_cloud_filter_big_buf(struct i40e_vsi *vsi,/** * i40e_parse_cls_flower - Parse tc flower filters provided by kernel * @vsi: Pointer to VSI -* @cls_flower: Pointer to struct flow_cls_offload +* @f: Pointer to struct flow_cls_offload * @filter: Pointer to cloud filter structure * **/
@@ -8161,8 +8162,8 @@ static int i40e_delete_clsflower(struct i40e_vsi *vsi,/** * i40e_setup_tc_cls_flower - flower classifier offloads -* @netdev: net device to configure -* @type_data: offload data +* @np: net device to configure +* @cls_flower: offload data **/ static int i40e_setup_tc_cls_flower (struct i40e_netdev_priv *np,struct flow_cls_offload *cls_flower)
@@ -9586,6 +9587,7 @@ static int i40e_reconstitute_veb(struct i40e_veb *veb)/** * i40e_get_capabilities - get info about the HW * @pf: the PF struct +* @list_type: AQ capability to be queried **/ static int i40e_get_capabilities (struct i40e_pf *pf,enum i40e_admin_queue_opc list_type)
@@ -10547,7 +10549,7 @@ static void i40e_service_task(struct work_struct *work)/** * i40e_service_timer - timer callback -* @data: pointer to PF struct +* @t: timer list pointer **/ static void i40e_service_timer (struct timer_list *t) {
@@ -12374,6 +12376,7 @@ static int i40e_get_phys_port_id(struct net_device *netdev,* @addr: the MAC address entry being added * @vid: VLAN ID * @flags: instructions from stack about fdb operation +* @extack: netlink extended ack, unused currently */ static int i40e_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[], struct net_device *dev,
drivers/net/ethernet/intel/i40e/i40e_ptp.c +0 -1
@@ -259,7 +259,6 @@ static u32 i40e_ptp_get_rx_events(struct i40e_pf *pf)/** * i40e_ptp_rx_hang - Detect error case when Rx timestamp registers are hung * @pf: The PF private data structure -* @vsi: The VSI with the rings relevant to 1588 * * This watchdog task is scheduled to detect error case where hardware has * dropped an Rx packet that was timestamped when the ring is full. The
drivers/net/ethernet/intel/i40e/i40e_trace.h +1 -1
@@ -22,7 +22,7 @@#include <linux/tracepoint.h> -/** +/* * i40e_trace() macro enables shared code to refer to trace points * like: *
drivers/net/ethernet/intel/i40e/i40e_txrx.c +4 -3
@@ -1755,7 +1755,6 @@ static inline void i40e_rx_hash(struct i40e_ring *ring,* @rx_ring: rx descriptor ring packet is being transacted on * @rx_desc: pointer to the EOP Rx descriptor * @skb: pointer to current skb being populated -* @rx_ptype: the packet type decoded by hardware * * This function checks the ring, descriptor, and packet information in * order to populate the hash, checksum, VLAN, protocol, and
@@ -3512,7 +3511,7 @@ static inline int i40e_tx_map(struct i40e_ring *tx_ring, struct sk_buff *skb,/** * i40e_xmit_xdp_ring - transmits an XDP buffer to an XDP Tx ring -* @xdp: data to transmit +* @xdpf: data to transmit * @xdp_ring: XDP Tx ring **/ static int i40e_xmit_xdp_ring(struct xdp_frame *xdpf,
@@ -3707,7 +3706,9 @@ netdev_tx_t i40e_lan_xmit_frame(struct sk_buff *skb, struct net_device *netdev)/** * i40e_xdp_xmit - Implements ndo_xdp_xmit * @dev: netdev -* @xdp: XDP buffer +* @n: number of frames +* @frames: array of XDP buffer pointers +* @flags: XDP extra info * * Returns number of frames successfully sent. Frames that fail are * free'ed via XDP return API.
drivers/net/ethernet/intel/i40e/i40e_txrx.h +0 -1
@@ -482,7 +482,6 @@ static inline u32 i40e_get_head(struct i40e_ring *tx_ring)/** * i40e_xmit_descriptor_count - calculate number of Tx descriptors needed * @skb: send buffer -* @tx_ring: ring to send buffer on * * Returns number of data descriptors needed for this skb. Returns 0 to indicate * there is not enough descriptors available in this ring since we need at least
drivers/net/ethernet/intel/i40e/i40e_txrx_common.h +3 -3
@@ -21,9 +21,9 @@ void i40e_release_rx_desc(struct i40e_ring *rx_ring, u32 val);#define I40E_XDP_TX BIT(1)#define I40E_XDP_REDIR BIT(2) -/** +/* * build_ctob - Builds the Tx descriptor (cmd, offset and type) qword -**/ +*/ static inline __le64 build_ctob (u32 td_cmd,u32 td_offset,unsigned int size,u32 td_tag) {
@@ -37,7 +37,7 @@ static inline __le64 build_ctob(u32 td_cmd, u32 td_offset, unsigned int size,/** * i40e_update_tx_stats - Update the egress statistics for the Tx ring * @tx_ring: Tx ring to update -* @total_packet: total packets sent +* @total_packets: total packets sent * @total_bytes: total bytes sent **/ static inline void i40e_update_tx_stats(struct i40e_ring *tx_ring,
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +5 -4
@@ -2244,7 +2244,8 @@ static int i40e_vc_config_queues_msg(struct i40e_vf *vf, u8 *msg) }/** -* i40e_validate_queue_map +* i40e_validate_queue_map - check queue map is valid +* @vf: the VF structure pointer * @vsi_id: vsi id * @queuemap: Tx or Rx queue map *
@@ -3160,8 +3161,8 @@ static int i40e_vc_disable_vlan_stripping(struct i40e_vf *vf, u8 *msg)/** * i40e_validate_cloud_filter -* @mask: mask for TC filter -* @data: data for TC filter +* @vf: pointer to VF structure +* @tc_filter: pointer to filter requested * * This function validates cloud filter programmed as TC filter for ADq **/
@@ -3294,7 +3295,7 @@ static int i40e_validate_cloud_filter(struct i40e_vf *vf,/** * i40e_find_vsi_from_seid - searches for the vsi with the given seid * @vf: pointer to the VF info -* @seid - seid of the vsi it is searching for +* @seid: seid of the vsi it is searching for **/ static struct i40e_vsi *i40e_find_vsi_from_seid (struct i40e_vf *vf,u16 seid) {
drivers/net/ethernet/intel/iavf/iavf_adminq.h +2 -2
@@ -85,8 +85,8 @@ struct iavf_adminq_info {/** * iavf_aq_rc_to_posix - convert errors to user-land codes -* aq_ret: AdminQ handler error code can override aq_rc -* aq_rc: AdminQ firmware error code to convert +* @aq_ret: AdminQ handler error code can override aq_rc +* @aq_rc: AdminQ firmware error code to convert **/ static inline int iavf_aq_rc_to_posix (int aq_ret,int aq_rc) {
drivers/net/ethernet/intel/iavf/iavf_main.c +10 -10
@@ -147,6 +147,7 @@ void iavf_schedule_reset(struct iavf_adapter *adapter)/** * iavf_tx_timeout - Respond to a Tx Hang * @netdev: network interface device structure +* @txqueue: queue number that is timing out **/ static void iavf_tx_timeout (struct net_device *netdev,unsigned int txqueue) {
@@ -2572,8 +2573,8 @@ static int iavf_validate_ch_config(struct iavf_adapter *adapter, }/** -* iavf_del_all_cloud_filters - delete all cloud filters -* on the traffic classes +* iavf_del_all_cloud_filters - delete all cloud filters on the traffic classes +* @adapter: board private structure **/ static void iavf_del_all_cloud_filters (struct iavf_adapter *adapter) {
@@ -2592,7 +2593,7 @@ static void iavf_del_all_cloud_filters(struct iavf_adapter *adapter)/** * __iavf_setup_tc - configure multiple traffic classes * @netdev: network interface device structure -* @type_date: tc offload data +* @type_data: tc offload data * * This function processes the config information provided by the * user to configure traffic classes/queue channels and packages the
@@ -2690,7 +2691,7 @@ static int __iavf_setup_tc(struct net_device *netdev, void *type_data)/** * iavf_parse_cls_flower - Parse tc flower filters provided by kernel * @adapter: board private structure -* @cls_flower: pointer to struct flow_cls_offload +* @f: pointer to struct flow_cls_offload * @filter: pointer to cloud filter structure */ static int iavf_parse_cls_flower(struct iavf_adapter *adapter,
@@ -3064,8 +3065,8 @@ static int iavf_delete_clsflower(struct iavf_adapter *adapter,/** * iavf_setup_tc_cls_flower - flower classifier offloads -* @netdev: net device to configure -* @type_data: offload data +* @adapter: board private structure +* @cls_flower: pointer to flow_cls_offload struct with flow info */ static int iavf_setup_tc_cls_flower (struct iavf_adapter *adapter,struct flow_cls_offload *cls_flower)
@@ -3112,7 +3113,7 @@ static LIST_HEAD(iavf_block_cb_list);* iavf_setup_tc - configure multiple traffic classes * @netdev: network interface device structure * @type: type of offload -* @type_date: tc offload data +* @type_data: tc offload data * * This function is the callback to ndo_setup_tc in the * netdev_ops.
@@ -3768,8 +3769,7 @@ static int iavf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)/** * iavf_suspend - Power management suspend routine -* @pdev: PCI device information struct -* @state: unused +* @dev_d: device info pointer * * Called when the system (VM) is entering sleep/suspend. **/
@@ -3799,7 +3799,7 @@ static int __maybe_unused iavf_suspend(struct device *dev_d)/** * iavf_resume - Power management resume routine -* @pdev: PCI device information struct +* @dev_d: device info pointer * * Called when the system (VM) is resumed from sleep/suspend. **/
drivers/net/ethernet/intel/iavf/iavf_trace.h +1 -1
@@ -22,7 +22,7 @@#include <linux/tracepoint.h> -/** +/* * iavf_trace() macro enables shared code to refer to trace points * like: *
drivers/net/ethernet/intel/iavf/iavf_txrx.h +1 -1
@@ -454,7 +454,6 @@ bool __iavf_chk_linearize(struct sk_buff *skb);/** * iavf_xmit_descriptor_count - calculate number of Tx descriptors needed * @skb: send buffer -* @tx_ring: ring to send buffer on * * Returns number of data descriptors needed for this skb. Returns 0 to indicate * there is not enough descriptors available in this ring since we need at least
@@ -514,6 +513,7 @@ static inline bool iavf_chk_linearize(struct sk_buff *skb, int count)return count !=IAVF_MAX_BUFFER_TXD ; }/** +* txring_txq - helper to convert from a ring to a queue * @ring: Tx ring to find the netdev equivalent of **/ static inline struct netdev_queue *txring_txq (const struct iavf_ring *ring)
drivers/net/ethernet/intel/ice/ice.h +1 -1
@@ -508,7 +508,7 @@ static inline void ice_set_ring_xdp(struct ice_ring *ring)/** * ice_xsk_pool - get XSK buffer pool bound to a ring -* @ring - ring to use +* @ring: ring to use * * Returns a pointer to xdp_umem structure if there is a buffer pool present, * NULL otherwise.
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h +3 -3
@@ -1422,7 +1422,7 @@ struct ice_aqc_nvm_comp_tbl {u8 cvs[];/* Component Version String */ } __packed; -/** +/* * Send to PF command (indirect 0x0801) ID is only used by PF * * Send to VF command (indirect 0x0802) ID is only used by PF
@@ -1826,8 +1826,8 @@ struct ice_aqc_event_lan_overflow {* @opcode: AQ command opcode * @datalen: length in bytes of indirect/external data buffer * @retval: return value from firmware -* @cookie_h: opaque data high-half -* @cookie_l: opaque data low-half +* @cookie_high: opaque data high-half +* @cookie_low: opaque data low-half * @params: command-specific parameters * * Descriptor format for commands the driver posts on the Admin Transmit Queue
drivers/net/ethernet/intel/ice/ice_txrx.h +1 -1
@@ -43,7 +43,7 @@/** * ice_compute_pad - compute the padding -* rx_buf_len: buffer length +* @rx_buf_len: buffer length * * Figure out the size of half page based on given buffer length and * then subtract the skb_shared_info followed by subtraction of the
drivers/net/ethernet/intel/igb/e1000_82575.c +3 -3
@@ -2554,7 +2554,7 @@ static s32 igb_update_nvm_checksum_i350(struct e1000_hw *hw)/** * __igb_access_emi_reg - Read/write EMI register * @hw: pointer to the HW structure -* @addr: EMI address to program +* @address: EMI address to program * @data: pointer to value to read/write from/to the EMI address * @read: boolean flag to indicate read or write **/
@@ -2590,7 +2590,7 @@ s32 igb_read_emi_reg(struct e1000_hw *hw, u16 addr, u16 *data)* igb_set_eee_i350 - Enable/disable EEE support * @hw: pointer to the HW structure * @adv1G: boolean flag enabling 1G EEE advertisement -* @adv100m: boolean flag enabling 100M EEE advertisement +* @adv100M: boolean flag enabling 100M EEE advertisement * * Enable/disable EEE based on setting in dev_spec structure. *
@@ -2646,7 +2646,7 @@ s32 igb_set_eee_i350(struct e1000_hw *hw, bool adv1G, bool adv100M)* igb_set_eee_i354 - Enable/disable EEE support * @hw: pointer to the HW structure * @adv1G: boolean flag enabling 1G EEE advertisement -* @adv100m: boolean flag enabling 100M EEE advertisement +* @adv100M: boolean flag enabling 100M EEE advertisement * * Enable/disable EEE legacy mode based on setting in dev_spec structure. *
drivers/net/ethernet/intel/igb/e1000_i210.c +3 -2
@@ -357,13 +357,14 @@ static s32 igb_read_invm_word_i210(struct e1000_hw *hw, u8 address, u16 *data)/** * igb_read_invm_i210 - Read invm wrapper function for I210/I211 * @hw: pointer to the HW structure -* @words: number of words to read +* @offset: offset to read from +* @words: number of words to read (unused) * @data: pointer to the data read * * Wrapper function to return data formerly found in the NVM. **/ static s32 igb_read_invm_i210 (struct e1000_hw *hw,u16 offset, -u16 words__always_unused ,u16 *data) +u16 __always_unused words,u16 *data) {s32 ret_val =0 ;
drivers/net/ethernet/intel/igb/e1000_mac.c +1 -0
@@ -166,6 +166,7 @@ static s32 igb_find_vlvf_slot(struct e1000_hw *hw, u32 vlan, bool vlvf_bypass)* @vlan: VLAN id to add or remove * @vind: VMDq output index that maps queue to VLAN id * @vlan_on: if true add filter, if false remove +* @vlvf_bypass: skip VLVF if no match is found * * Sets or clears a bit in the VLAN filter table array based on VLAN id * and if we are adding or removing the filter
drivers/net/ethernet/intel/igb/e1000_mbx.c +1 -0
@@ -9,6 +9,7 @@* @msg: The message buffer * @size: Length of buffer * @mbx_id: id of mailbox to read +* @unlock: skip locking or not * * returns SUCCESS if it successfully read message from buffer **/
drivers/net/ethernet/intel/igb/igb_main.c +15 -13
@@ -549,8 +549,7 @@ static void igb_dump(struct igb_adapter *adapter)/** * igb_get_i2c_data - Reads the I2C SDA data bit -* @hw: pointer to hardware structure -* @i2cctl: Current value of I2CCTL register +* @data: opaque pointer to adapter struct * * Returns the I2C data bit value **/
@@ -3868,6 +3867,7 @@ static int igb_sw_init(struct igb_adapter *adapter)/** * igb_open - Called when a network interface is made active * @netdev: network interface device structure +* @resuming: indicates whether we are in a resume call * * Returns 0 on success, negative value on failure *
@@ -3985,6 +3985,7 @@ int igb_open(struct net_device *netdev)/** * igb_close - Disables a network interface * @netdev: network interface device structure +* @suspending: indicates we are in a suspend call * * Returns 0, this is not allowed to fail *
@@ -5219,7 +5220,7 @@ static void igb_check_lvmmc(struct igb_adapter *adapter)/** * igb_watchdog - Timer Call-back -* @data: pointer to adapter cast into an unsigned long +* @t: pointer to timer_list containing our private info pointer **/ static void igb_watchdog (struct timer_list *t) {
@@ -6192,8 +6193,9 @@ static netdev_tx_t igb_xmit_frame(struct sk_buff *skb,/** * igb_tx_timeout - Respond to a Tx Hang * @netdev: network interface device structure +* @txqueue: number of the Tx queue that hung (unused) **/ -static void igb_tx_timeout (struct net_device *netdev,unsigned int txqueue) +static void igb_tx_timeout (struct net_device *netdev,unsigned int __always_unused txqueue) {struct igb_adapter *adapter =netdev_priv (netdev);struct e1000_hw *hw = &adapter->hw;
@@ -8181,7 +8183,6 @@ static inline void igb_rx_hash(struct igb_ring *ring,* igb_is_non_eop - process handling of non-EOP buffers * @rx_ring: Rx ring being processed * @rx_desc: Rx descriptor for current buffer -* @skb: current socket buffer containing buffer in progress * * This function updates next to clean. If the buffer is an EOP buffer * this function exits returning false, otherwise it will place the
@@ -8460,8 +8461,9 @@ static bool igb_alloc_mapped_page(struct igb_ring *rx_ring, }/** -* igb_alloc_rx_buffers - Replace used receive buffers; packet split -* @adapter: address of board private structure +* igb_alloc_rx_buffers - Replace used receive buffers +* @rx_ring: rx descriptor ring to allocate new receive buffers +* @cleaned_count: count of buffers to allocate **/ void igb_alloc_rx_buffers (struct igb_ring *rx_ring,u16 cleaned_count) {
@@ -8530,9 +8532,9 @@ void igb_alloc_rx_buffers(struct igb_ring *rx_ring, u16 cleaned_count)/** * igb_mii_ioctl - -* @netdev: -* @ifreq: -* @cmd: +* @netdev: pointer to netdev struct +* @ifr: interface structure +* @cmd: ioctl command to execute **/ static int igb_mii_ioctl (struct net_device *netdev,struct ifreq *ifr,int cmd) {
@@ -8560,9 +8562,9 @@ static int igb_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)/** * igb_ioctl - -* @netdev: -* @ifreq: -* @cmd: +* @netdev: pointer to netdev struct +* @ifr: interface structure +* @cmd: ioctl command to execute **/ static int igb_ioctl (struct net_device *netdev,struct ifreq *ifr,int cmd) {
drivers/net/ethernet/intel/igb/igb_ptp.c +4 -4
@@ -957,8 +957,8 @@ void igb_ptp_rx_rgtstamp(struct igb_q_vector *q_vector,/** * igb_ptp_get_ts_config - get hardware time stamping config -* @netdev: -* @ifreq: +* @netdev: netdev struct +* @ifr: interface struct * * Get the hwtstamp_config settings to return to the user. Rather than attempt * to deconstruct the settings from the registers, just return a shadow copy
@@ -1141,8 +1141,8 @@ static int igb_ptp_set_timestamp_mode(struct igb_adapter *adapter,/** * igb_ptp_set_ts_config - set hardware time stamping config -* @netdev: -* @ifreq: +* @netdev: netdev struct +* @ifr: interface struct * **/ int igb_ptp_set_ts_config (struct net_device *netdev,struct ifreq *ifr)
drivers/net/ethernet/intel/igbvf/netdev.c +12 -5
@@ -61,7 +61,7 @@ static const struct igbvf_info *igbvf_info_tbl[] = {/** * igbvf_desc_unused - calculate if we have unused descriptors -* @rx_ring: address of receive ring structure +* @ring: address of receive ring structure **/ static int igbvf_desc_unused (struct igbvf_ring *ring) {
@@ -74,6 +74,8 @@ static int igbvf_desc_unused(struct igbvf_ring *ring)/** * igbvf_receive_skb - helper function to handle Rx indications * @adapter: board private structure +* @netdev: pointer to netdev struct +* @skb: skb to indicate to stack * @status: descriptor status field as written by hardware * @vlan: descriptor vlan field as written by hardware (no le/be conversion) * @skb: pointer to sk_buff to be indicated to stack
@@ -233,6 +235,8 @@ static void igbvf_alloc_rx_buffers(struct igbvf_ring *rx_ring,/** * igbvf_clean_rx_irq - Send received data up the network stack; legacy * @adapter: board private structure +* @work_done: output parameter used to indicate completed work +* @work_to_do: input parameter setting limit of work * * the return value indicates whether actual cleaning was done, there * is no guarantee that everything was cleaned
@@ -406,6 +410,7 @@ static void igbvf_put_txbuf(struct igbvf_adapter *adapter,/** * igbvf_setup_tx_resources - allocate Tx resources (Descriptors) * @adapter: board private structure +* @tx_ring: ring being initialized * * Return 0 on success, negative on failure **/
@@ -444,6 +449,7 @@ int igbvf_setup_tx_resources(struct igbvf_adapter *adapter,/** * igbvf_setup_rx_resources - allocate Rx resources (Descriptors) * @adapter: board private structure +* @rx_ring: ring being initialized * * Returns 0 on success, negative on failure **/
@@ -540,7 +546,7 @@ void igbvf_free_tx_resources(struct igbvf_ring *tx_ring)/** * igbvf_clean_rx_ring - Free Rx Buffers per Queue -* @adapter: board private structure +* @rx_ring: ring structure pointer to free buffers from **/ static void igbvf_clean_rx_ring (struct igbvf_ring *rx_ring) {
@@ -760,7 +766,7 @@ static void igbvf_set_itr(struct igbvf_adapter *adapter)/** * igbvf_clean_tx_irq - Reclaim resources after transmit completes -* @adapter: board private structure +* @tx_ring: ring structure to clean descriptors from * * returns true if ring is completely cleaned **/
@@ -1891,7 +1897,7 @@ static bool igbvf_has_link(struct igbvf_adapter *adapter)/** * igbvf_watchdog - Timer Call-back -* @data: pointer to adapter cast into an unsigned long +* @t: timer list pointer containing private struct **/ static void igbvf_watchdog (struct timer_list *t) {
@@ -2372,8 +2378,9 @@ static netdev_tx_t igbvf_xmit_frame(struct sk_buff *skb,/** * igbvf_tx_timeout - Respond to a Tx Hang * @netdev: network interface device structure +* @txqueue: queue timing out (unused) **/ -static void igbvf_tx_timeout (struct net_device *netdev,unsigned int txqueue) +static void igbvf_tx_timeout (struct net_device *netdev,unsigned int __always_unused txqueue) {struct igbvf_adapter *adapter =netdev_priv (netdev);
drivers/net/ethernet/intel/igc/igc_main.c +1 -1
@@ -4653,7 +4653,7 @@ int igc_close(struct net_device *netdev)/** * igc_ioctl - Access the hwtstamp interface * @netdev: network interface device structure -* @ifreq: interface request data +* @ifr: interface request data * @cmd: ioctl command **/ static int igc_ioctl (struct net_device *netdev,struct ifreq *ifr,int cmd)
drivers/net/ethernet/intel/igc/igc_ptp.c +2 -2
@@ -439,7 +439,7 @@ static void igc_ptp_tx_work(struct work_struct *work)/** * igc_ptp_set_ts_config - set hardware time stamping config * @netdev: network interface device structure -* @ifreq: interface request data +* @ifr: interface request data * **/ int igc_ptp_set_ts_config (struct net_device *netdev,struct ifreq *ifr)
@@ -466,7 +466,7 @@ int igc_ptp_set_ts_config(struct net_device *netdev, struct ifreq *ifr)/** * igc_ptp_get_ts_config - get hardware time stamping config * @netdev: network interface device structure -* @ifreq: interface request data +* @ifr: interface request data * * Get the hwtstamp_config settings to return to the user. Rather than attempt * to deconstruct the settings from the registers, just return a shadow copy
drivers/net/ethernet/intel/ixgb/ixgb_main.c +11 -6
@@ -1109,7 +1109,7 @@ ixgb_set_multi(struct net_device *netdev)/** * ixgb_watchdog - Timer Call-back -* @data: pointer to netdev cast into an unsigned long +* @t: pointer to timer_list containing our private info pointer **/ static void
@@ -1531,10 +1531,11 @@ ixgb_xmit_frame(struct sk_buff *skb, struct net_device *netdev)/** * ixgb_tx_timeout - Respond to a Tx Hang * @netdev: network interface device structure +* @txqueue: queue hanging (unused) **/ static void -ixgb_tx_timeout (struct net_device *netdev,unsigned int txqueue) +ixgb_tx_timeout (struct net_device *netdev,unsigned int __always_unused txqueue) {struct ixgb_adapter *adapter =netdev_priv (netdev);
@@ -1746,7 +1747,8 @@ ixgb_intr(int irq, void *data)/** * ixgb_clean - NAPI Rx polling callback -* @adapter: board private structure +* @napi: napi struct pointer +* @budget: max number of receives to clean **/ static int
@@ -1865,7 +1867,7 @@ ixgb_clean_tx_irq(struct ixgb_adapter *adapter)* ixgb_rx_checksum - Receive Checksum Offload for 82597. * @adapter: board private structure * @rx_desc: receive descriptor -* @sk_buff: socket buffer with received data +* @skb: socket buffer with received data **/ static void
@@ -1923,6 +1925,8 @@ static void ixgb_check_copybreak(struct napi_struct *napi,/** * ixgb_clean_rx_irq - Send received data up the network stack, * @adapter: board private structure +* @work_done: output pointer to amount of packets cleaned +* @work_to_do: how much work we can complete **/ static bool
@@ -2042,6 +2046,7 @@ ixgb_clean_rx_irq(struct ixgb_adapter *adapter, int *work_done, int work_to_do)/** * ixgb_alloc_rx_buffers - Replace used receive buffers * @adapter: address of board private structure +* @cleaned_count: how many buffers to allocate **/ static void
@@ -2211,7 +2216,7 @@ static pci_ers_result_t ixgb_io_error_detected(struct pci_dev *pdev,/** * ixgb_io_slot_reset - called after the pci bus has been reset. -* @pdev pointer to pci device with error +* @pdev: pointer to pci device with error * * This callback is called after the PCI bus has been reset. * Basically, this tries to restart the card from scratch.
@@ -2259,7 +2264,7 @@ static pci_ers_result_t ixgb_io_slot_reset(struct pci_dev *pdev)/** * ixgb_io_resume - called when its OK to resume normal operations -* @pdev pointer to pci device with error +* @pdev: pointer to pci device with error * * The error recovery driver tells us that its OK to resume * normal operation. Implementation resembles the second-half
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +2 -1
@@ -6175,8 +6175,9 @@ static void ixgbe_set_eee_capable(struct ixgbe_adapter *adapter)/** * ixgbe_tx_timeout - Respond to a Tx Hang * @netdev: network interface device structure +* @txqueue: queue number that timed out **/ -static void ixgbe_tx_timeout (struct net_device *netdev,unsigned int txqueue) +static void ixgbe_tx_timeout (struct net_device *netdev,unsigned int __always_unused txqueue) {struct ixgbe_adapter *adapter =netdev_priv (netdev);
drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c +4 -4
@@ -771,7 +771,7 @@ static s32 ixgbe_mii_bus_write_generic(struct ixgbe_hw *hw, int addr,/** * ixgbe_mii_bus_read - Read a clause 22/45 register -* @hw: pointer to hardware structure +* @bus: pointer to mii_bus structure which points to our driver private * @addr: address * @regnum: register number **/
@@ -786,7 +786,7 @@ static s32 ixgbe_mii_bus_read(struct mii_bus *bus, int addr, int regnum)/** * ixgbe_mii_bus_write - Write a clause 22/45 register -* @hw: pointer to hardware structure +* @bus: pointer to mii_bus structure which points to our driver private * @addr: address * @regnum: register number * @val: value to write
@@ -803,7 +803,7 @@ static s32 ixgbe_mii_bus_write(struct mii_bus *bus, int addr, int regnum,/** * ixgbe_x550em_a_mii_bus_read - Read a clause 22/45 register on x550em_a -* @hw: pointer to hardware structure +* @bus: pointer to mii_bus structure which points to our driver private * @addr: address * @regnum: register number **/
@@ -820,7 +820,7 @@ static s32 ixgbe_x550em_a_mii_bus_read(struct mii_bus *bus, int addr,/** * ixgbe_x550em_a_mii_bus_write - Write a clause 22/45 register on x550em_a -* @hw: pointer to hardware structure +* @bus: pointer to mii_bus structure which points to our driver private * @addr: address * @regnum: register number * @val: value to write
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +2 -1
@@ -246,8 +246,9 @@ static void ixgbevf_tx_timeout_reset(struct ixgbevf_adapter *adapter)/** * ixgbevf_tx_timeout - Respond to a Tx Hang * @netdev: network interface device structure +* @txqueue: transmit queue hanging (unused) **/ -static void ixgbevf_tx_timeout (struct net_device *netdev,unsigned int txqueue) +static void ixgbevf_tx_timeout (struct net_device *netdev,unsigned int __always_unused txqueue) {struct ixgbevf_adapter *adapter =netdev_priv (netdev);
Signature · 1 line
2.25.4
PATCH v3 2/9 intel: handle unused assignments
In reply to Jesse BrandeburgFrom: Jesse Brandeburg <[email protected]>
Remove variables that were storing a return value from a register read or other read, where the return value wasn't used. Those conversions to remove the lvalue of the assignment should be safe because the readl memory mapped reads are marked volatile and should not be optimized out without an lvalue (I suspect a very long time ago this wasn't guaranteed as it is today).
These changes are part of a separate patch to make it easier to review.
Warnings Fixed:.../intel/e100.c:2596:9: warning: variable ?err? set but not used [-Wunused-but-set-variable] .../intel/ixgb/ixgb_hw.c:101:6: warning: variable ?icr_reg? set but not used [-Wunused-but-set-variable] .../intel/ixgb/ixgb_hw.c:277:6: warning: variable ?ctrl_reg? set but not used [-Wunused-but-set-variable] .../intel/ixgb/ixgb_hw.c:952:15: warning: variable ?temp_reg? set but not used [-Wunused-but-set-variable] .../intel/ixgb/ixgb_hw.c:1164:7: warning: variable ?mdio_reg? set but not used [-Wunused-but-set-variable] .../intel/e1000/e1000_hw.c:132:6: warning: variable ?ret_val? set but not used [-Wunused-but-set-variable] .../intel/e1000/e1000_hw.c:380:6: warning: variable ?icr? set but not used [-Wunused-but-set-variable] .../intel/e1000/e1000_hw.c:2378:6: warning: variable ?signal? set but not used [-Wunused-but-set-variable] .../intel/e1000/e1000_hw.c:2374:6: warning: variable ?ctrl? set but not used [-Wunused-but-set-variable] .../intel/e1000/e1000_hw.c:2373:6: warning: variable ?rxcw? set but not used [-Wunused-but-set-variable] .../intel/e1000/e1000_hw.c:4678:15: warning: variable ?temp? set but not used [-Wunused-but-set-variable]
---
v3: added summary of warnings fixed.
Full list of warnings fixed/home/jbrandeb/git/linux/drivers/net/ethernet/intel/e100.c: In function ?e100_diag_test?:/home/jbrandeb/git/linux/drivers/net/ethernet/intel/e100.c:2596:9: warning: variable ?err? set but not used [-Wunused-but-set-variable]
2596 | int i, err;
| ^~~
/home/jbrandeb/git/linux/drivers/net/ethernet/intel/e1000/e1000_hw.c: In function ?e1000_reset_hw?:
/home/jbrandeb/git/linux/drivers/net/ethernet/intel/e1000/e1000_hw.c:381:6: warning: variable ?icr? set but not used [-Wunused-but-set-variable]
381 | u32 icr;
| ^~~
/home/jbrandeb/git/linux/drivers/net/ethernet/intel/e1000/e1000_hw.c: In function ?e1000_check_for_link?:
/home/jbrandeb/git/linux/drivers/net/ethernet/intel/e1000/e1000_hw.c:2378:6: warning: variable ?signal? set but not used [-Wunused-but-set-variable]
2378 | u32 signal = 0;
| ^~~~~~
/home/jbrandeb/git/linux/drivers/net/ethernet/intel/e1000/e1000_hw.c:2374:6: warning: variable ?ctrl? set but not used [-Wunused-but-set-variable]
2374 | u32 ctrl;
| ^~~~
/home/jbrandeb/git/linux/drivers/net/ethernet/intel/e1000/e1000_hw.c:2373:6: warning: variable ?rxcw? set but not used [-Wunused-but-set-variable]
2373 | u32 rxcw = 0;
| ^~~~/home/jbrandeb/git/linux/drivers/net/ethernet/intel/e1000/e1000_hw.c: In function ?e1000_clear_hw_cntrs?:/home/jbrandeb/git/linux/drivers/net/ethernet/intel/e1000/e1000_hw.c:4678:15: warning: variable ?temp? set but not used [-Wunused-but-set-variable]
4678 | volatile u32 temp;
| ^~~~/home/jbrandeb/git/linux/drivers/net/ethernet/intel/ixgb/ixgb_hw.c: In function ?ixgb_adapter_stop?:/home/jbrandeb/git/linux/drivers/net/ethernet/intel/ixgb/ixgb_hw.c:101:6: warning: variable ?icr_reg? set but not used [-Wunused-but-set-variable]
101 | u32 icr_reg;
| ^~~~~~~
/home/jbrandeb/git/linux/drivers/net/ethernet/intel/ixgb/ixgb_hw.c: In function ?ixgb_init_hw?:
/home/jbrandeb/git/linux/drivers/net/ethernet/intel/ixgb/ixgb_hw.c:277:6: warning: variable ?ctrl_reg? set but not used [-Wunused-but-set-variable]
277 | u32 ctrl_reg;
| ^~~~~~~~
/home/jbrandeb/git/linux/drivers/net/ethernet/intel/ixgb/ixgb_hw.c: In function ?ixgb_clear_hw_cntrs?:
/home/jbrandeb/git/linux/drivers/net/ethernet/intel/ixgb/ixgb_hw.c:952:15: warning: variable ?temp_reg? set but not used [-Wunused-but-set-variable]
952 | volatile u32 temp_reg;
| ^~~~~~~~
/home/jbrandeb/git/linux/drivers/net/ethernet/intel/ixgb/ixgb_hw.c: In function ?ixgb_optics_reset?:
/home/jbrandeb/git/linux/drivers/net/ethernet/intel/ixgb/ixgb_hw.c:1164:7: warning: variable ?mdio_reg? set but not used [-Wunused-but-set-variable]
1164 | u16 mdio_reg;
| ^~~~~~~~
---
drivers/net/ethernet/intel/e100.c | 6 +-
drivers/net/ethernet/intel/e1000/e1000_hw.c | 139 +++++++++-----------
drivers/net/ethernet/intel/ixgb/ixgb_hw.c | 135 +++++++++----------
3 files changed, 131 insertions(+), 149 deletions(-)drivers/net/ethernet/intel/e100.c +3 -3
@@ -2593,7 +2593,7 @@ static void e100_diag_test(struct net_device *netdev, {struct ethtool_cmd cmd;struct nic *nic =netdev_priv (netdev); -int i, err; +int i;memset (data,0 ,E100_TEST_LEN *sizeof (u64)); data[0 ] = !mii_link_ok (&nic->mii);
@@ -2601,7 +2601,7 @@ static void e100_diag_test(struct net_device *netdev,if (test->flags Ð_TEST_FL_OFFLINE ) {/* save speed, duplex & autoneg settings */ - err =mii_ethtool_gset (&nic->mii, &cmd); +mii_ethtool_gset (&nic->mii, &cmd);if (netif_running (netdev))e100_down (nic);
@@ -2610,7 +2610,7 @@ static void e100_diag_test(struct net_device *netdev, data[4 ] =e100_loopback_test (nic, lb_phy);/* restore speed, duplex & autoneg settings */ - err =mii_ethtool_sset (&nic->mii, &cmd); +mii_ethtool_sset (&nic->mii, &cmd);if (netif_running (netdev))e100_up (nic);
drivers/net/ethernet/intel/e1000/e1000_hw.c +65 -74
185 lines not on this page · raw message
drivers/net/ethernet/intel/ixgb/ixgb_hw.c +63 -72
183 lines not on this page · raw message
Signature · 1 line
2.25.4
PATCH v3 3/9 drivers/net/ethernet: clean up unused assignments
In reply to Jesse BrandeburgFrom: Jesse Brandeburg <[email protected]>
As part of the W=1 compliation series, these lines all created warnings about unused variables that were assigned a value. Most of them are from register reads, but some are just picking up a return value from a function and never doing anything with it.
Fixed warnings:.../ethernet/brocade/bna/bnad.c:3280:6: warning: variable ?rx_count? set but not used [-Wunused-but-set-variable] .../ethernet/brocade/bna/bnad.c:3280:6: warning: variable ?rx_count? set but not used [-Wunused-but-set-variable] .../ethernet/cortina/gemini.c:512:6: warning: variable ?val? set but not used [-Wunused-but-set-variable] .../ethernet/cortina/gemini.c:2110:21: warning: variable ?config0? set but not used [-Wunused-but-set-variable] .../ethernet/cavium/liquidio/octeon_device.c:1327:6: warning: variable ?val32? set but not used [-Wunused-but-set-variable] .../ethernet/cavium/liquidio/octeon_device.c:1358:6: warning: variable ?val32? set but not used [-Wunused-but-set-variable] .../ethernet/dec/tulip/media.c:322:8: warning: variable ?setup? set but not used [-Wunused-but-set-variable] .../ethernet/dec/tulip/de4x5.c:4928:13: warning: variable ?r3? set but not used [-Wunused-but-set-variable] .../ethernet/micrel/ksz884x.c:1652:7: warning: variable ?dummy? set but not used [-Wunused-but-set-variable] .../ethernet/micrel/ksz884x.c:1652:7: warning: variable ?dummy? set but not used [-Wunused-but-set-variable] .../ethernet/micrel/ksz884x.c:1652:7: warning: variable ?dummy? set but not used [-Wunused-but-set-variable] .../ethernet/micrel/ksz884x.c:1652:7: warning: variable ?dummy? set but not used [-Wunused-but-set-variable] .../ethernet/micrel/ksz884x.c:4981:6: warning: variable ?rx_status? set but not used [-Wunused-but-set-variable] .../ethernet/micrel/ksz884x.c:6510:6: warning: variable ?rc? set but not used [-Wunused-but-set-variable] .../ethernet/micrel/ksz884x.c:6087: warning: cannot understand function prototype: 'struct hw_regs ' .../ethernet/microchip/lan743x_main.c:161:6: warning: variable ?int_en? set but not used [-Wunused-but-set-variable] .../ethernet/microchip/lan743x_main.c:1702:6: warning: variable ?int_sts? set but not used [-Wunused-but-set-variable] .../ethernet/microchip/lan743x_main.c:3041:6: warning: variable ?ret? set but not used [-Wunused-but-set-variable] .../ethernet/natsemi/ns83820.c:603:6: warning: variable ?tbisr? set but not used [-Wunused-but-set-variable] .../ethernet/natsemi/ns83820.c:1207:11: warning: variable ?tanar? set but not used [-Wunused-but-set-variable] .../ethernet/marvell/mvneta.c:754:6: warning: variable ?dummy? set but not used [-Wunused-but-set-variable] .../ethernet/neterion/vxge/vxge-traffic.c:33:6: warning: variable ?val64? set but not used [-Wunused-but-set-variable] .../ethernet/neterion/vxge/vxge-traffic.c:160:6: warning: variable ?val64? set but not used [-Wunused-but-set-variable] .../ethernet/neterion/vxge/vxge-traffic.c:490:6: warning: variable ?val32? set but not used [-Wunused-but-set-variable] .../ethernet/neterion/vxge/vxge-traffic.c:2378:6: warning: variable ?val64? set but not used [-Wunused-but-set-variable] .../ethernet/packetengines/yellowfin.c:1063:18: warning: variable ?yf_size? set but not used [-Wunused-but-set-variable] .../ethernet/realtek/8139cp.c:1242:6: warning: variable ?rc? set but not used [-Wunused-but-set-variable] .../ethernet/mellanox/mlx4/en_tx.c:858:6: warning: variable ?ring_cons? set but not used [-Wunused-but-set-variable] .../ethernet/sis/sis900.c:792:6: warning: variable ?status? set but not used [-Wunused-but-set-variable] .../ethernet/sfc/falcon/farch.c:878:11: warning: variable ?rx_ev_pkt_type? set but not used [-Wunused-but-set-variable] .../ethernet/sfc/falcon/farch.c:877:23: warning: variable ?rx_ev_mcast_pkt? set but not used [-Wunused-but-set-variable] .../ethernet/sfc/falcon/farch.c:877:7: warning: variable ?rx_ev_hdr_type? set but not used [-Wunused-but-set-variable] .../ethernet/sfc/falcon/farch.c:876:7: warning: variable ?rx_ev_other_err? set but not used [-Wunused-but-set-variable] .../ethernet/sfc/falcon/farch.c:1646:21: warning: variable ?buftbl_min? set but not used [-Wunused-but-set-variable] .../ethernet/sfc/falcon/farch.c:2535:32: warning: variable ?spec? set but not used [-Wunused-but-set-variable] .../ethernet/via/via-velocity.c:880:6: warning: variable ?curr_status? set but not used [-Wunused-but-set-variable] .../ethernet/ti/tlan.c:656:6: warning: variable ?rc? set but not used [-Wunused-but-set-variable] .../ethernet/ti/davinci_emac.c:1230:6: warning: variable ?num_tx_pkts? set but not used [-Wunused-but-set-variable] .../ethernet/synopsys/dwc-xlgmac-common.c:516:8: warning: variable ?str? set but not used [-Wunused-but-set-variable] .../ethernet/ti/cpsw_new.c:1662:22: warning: variable ?priv? set but not used [-Wunused-but-set-variable]
The register reads should be OK, because the current implementation of readl and friends will always execute even without an lvalue.
When it makes sense, just remove the lvalue assignment and the local. Other times, just remove the offending code, and occasionally, just mark the variable as maybe unused since it could be used in an ifdef or debug scenario.
Only compile tested with W=1.
---
v3: added warnings details, Ed only acked the SFC bits
v2: addressed some comments and got rid of a few kdoc changes that snuck
into this version.
Full list of warnings:
======================drivers/net/ethernet/brocade/bna/bnad.c: In function ?bnad_change_mtu?:drivers/net/ethernet/brocade/bna/bnad.c:3280:6: warning: variable ?rx_count? set but not used [-Wunused-but-set-variable]
3280 | u32 rx_count = 0, frame, new_frame;
| ^~~~~~~~
drivers/net/ethernet/cortina/gemini.c: In function ?gmac_init?:
drivers/net/ethernet/cortina/gemini.c:512:6: warning: variable ?val? set but not used [-Wunused-but-set-variable]
512 | u32 val;
| ^~~
drivers/net/ethernet/cortina/gemini.c: In function ?gmac_get_ringparam?:
drivers/net/ethernet/cortina/gemini.c:2110:21: warning: variable ?config0? set but not used [-Wunused-but-set-variable]
2110 | union gmac_config0 config0;
| ^~~~~~~
drivers/net/ethernet/cavium/liquidio/octeon_device.c: In function ?lio_pci_readq?:
drivers/net/ethernet/cavium/liquidio/octeon_device.c:1327:6: warning: variable ?val32? set but not used [-Wunused-but-set-variable]
1327 | u32 val32, addrhi;
| ^~~~~
drivers/net/ethernet/cavium/liquidio/octeon_device.c: In function ?lio_pci_writeq?:
drivers/net/ethernet/cavium/liquidio/octeon_device.c:1358:6: warning: variable ?val32? set but not used [-Wunused-but-set-variable]
1358 | u32 val32;
| ^~~~~
drivers/net/ethernet/dec/tulip/media.c: In function ?tulip_select_media?:
drivers/net/ethernet/dec/tulip/media.c:322:8: warning: variable ?setup? set but not used [-Wunused-but-set-variable]
322 | u16 setup[5];
| ^~~~~drivers/net/ethernet/dec/tulip/de4x5.c: In function ?mii_get_oui?:drivers/net/ethernet/dec/tulip/de4x5.c:4928:13: warning: variable ?r3? set but not used [-Wunused-but-set-variable]
4928 | int r2, r3;
| ^~drivers/net/ethernet/micrel/ksz884x.c: In function ?sw_r_table?:drivers/net/ethernet/micrel/ksz884x.c:1652:7: warning: variable ?dummy? set but not used [-Wunused-but-set-variable]
1652 | u16 dummy; \
| ^~~~~
drivers/net/ethernet/micrel/ksz884x.c:1676:2: note: in expansion of macro ?HW_DELAY?
1676 | HW_DELAY(hw, KS884X_IACR_OFFSET);
| ^~~~~~~~
drivers/net/ethernet/micrel/ksz884x.c: In function ?sw_w_table_64?:
drivers/net/ethernet/micrel/ksz884x.c:1652:7: warning: variable ?dummy? set but not used [-Wunused-but-set-variable]
1652 | u16 dummy; \
| ^~~~~
drivers/net/ethernet/micrel/ksz884x.c:1707:2: note: in expansion of macro ?HW_DELAY?
1707 | HW_DELAY(hw, KS884X_IACR_OFFSET);
| ^~~~~~~~
drivers/net/ethernet/micrel/ksz884x.c: In function ?port_r_mib_cnt?:
drivers/net/ethernet/micrel/ksz884x.c:1652:7: warning: variable ?dummy? set but not used [-Wunused-but-set-variable]
1652 | u16 dummy; \
| ^~~~~
drivers/net/ethernet/micrel/ksz884x.c:1802:2: note: in expansion of macro ?HW_DELAY?
1802 | HW_DELAY(hw, KS884X_IACR_OFFSET);
| ^~~~~~~~
drivers/net/ethernet/micrel/ksz884x.c: In function ?port_r_mib_pkt?:
drivers/net/ethernet/micrel/ksz884x.c:1652:7: warning: variable ?dummy? set but not used [-Wunused-but-set-variable]
1652 | u16 dummy; \
| ^~~~~
drivers/net/ethernet/micrel/ksz884x.c:1843:3: note: in expansion of macro ?HW_DELAY?
1843 | HW_DELAY(hw, KS884X_IACR_OFFSET);
| ^~~~~~~~
drivers/net/ethernet/micrel/ksz884x.c: In function ?rx_proc?:
drivers/net/ethernet/micrel/ksz884x.c:4981:6: warning: variable ?rx_status? set but not used [-Wunused-but-set-variable]
4981 | int rx_status;
| ^~~~~~~~~
drivers/net/ethernet/micrel/ksz884x.c: In function ?netdev_get_ethtool_stats?:
drivers/net/ethernet/micrel/ksz884x.c:6510:6: warning: variable ?rc? set but not used [-Wunused-but-set-variable]
6510 | int rc;
| ^~
drivers/net/ethernet/micrel/ksz884x.c:6087: warning: cannot understand function prototype: 'struct hw_regs '
drivers/net/ethernet/microchip/lan743x_main.c: In function ?lan743x_tx_isr?:
drivers/net/ethernet/microchip/lan743x_main.c:161:6: warning: variable ?int_en? set but not used [-Wunused-but-set-variable]
161 | u32 int_en = 0;
| ^~~~~~
drivers/net/ethernet/microchip/lan743x_main.c: In function ?lan743x_tx_napi_poll?:
drivers/net/ethernet/microchip/lan743x_main.c:1702:6: warning: variable ?int_sts? set but not used [-Wunused-but-set-variable]
1702 | u32 int_sts = 0;
| ^~~~~~~
drivers/net/ethernet/microchip/lan743x_main.c: In function ?lan743x_pm_suspend?:
drivers/net/ethernet/microchip/lan743x_main.c:3041:6: warning: variable ?ret? set but not used [-Wunused-but-set-variable]
3041 | int ret;
| ^~~
drivers/net/ethernet/natsemi/ns83820.c: In function ?phy_intr?:
drivers/net/ethernet/natsemi/ns83820.c:603:6: warning: variable ?tbisr? set but not used [-Wunused-but-set-variable]
603 | u32 tbisr, tanar, tanlpar;
| ^~~~~
drivers/net/ethernet/natsemi/ns83820.c: In function ?ns83820_get_link_ksettings?:
drivers/net/ethernet/natsemi/ns83820.c:1207:11: warning: variable ?tanar? set but not used [-Wunused-but-set-variable]
1207 | u32 cfg, tanar, tbicr;
| ^~~~~
drivers/net/ethernet/marvell/mvneta.c: In function ?mvneta_mib_counters_clear?:
drivers/net/ethernet/marvell/mvneta.c:754:6: warning: variable ?dummy? set but not used [-Wunused-but-set-variable]
754 | u32 dummy;
| ^~~~~
drivers/net/ethernet/neterion/vxge/vxge-traffic.c: In function ?vxge_hw_vpath_intr_enable?:
drivers/net/ethernet/neterion/vxge/vxge-traffic.c:33:6: warning: variable ?val64? set but not used [-Wunused-but-set-variable]
33 | u64 val64;
| ^~~~~
drivers/net/ethernet/neterion/vxge/vxge-traffic.c: In function ?vxge_hw_vpath_intr_disable?:
drivers/net/ethernet/neterion/vxge/vxge-traffic.c:160:6: warning: variable ?val64? set but not used [-Wunused-but-set-variable]
160 | u64 val64;
| ^~~~~
drivers/net/ethernet/neterion/vxge/vxge-traffic.c: In function ?vxge_hw_device_flush_io?:
drivers/net/ethernet/neterion/vxge/vxge-traffic.c:490:6: warning: variable ?val32? set but not used [-Wunused-but-set-variable]
490 | u32 val32;
| ^~~~~
drivers/net/ethernet/neterion/vxge/vxge-traffic.c: In function ?vxge_hw_vpath_poll_rx?:
drivers/net/ethernet/neterion/vxge/vxge-traffic.c:2378:6: warning: variable ?val64? set but not used [-Wunused-but-set-variable]
2378 | u64 val64 = 0;
| ^~~~~
drivers/net/ethernet/packetengines/yellowfin.c: In function ?yellowfin_rx?:
drivers/net/ethernet/packetengines/yellowfin.c:1063:18: warning: variable ?yf_size? set but not used [-Wunused-but-set-variable]
1063 | int data_size, yf_size;
| ^~~~~~~
drivers/net/ethernet/realtek/8139cp.c: In function ?cp_tx_timeout?:
drivers/net/ethernet/realtek/8139cp.c:1242:6: warning: variable ?rc? set but not used [-Wunused-but-set-variable]
1242 | int rc, i;
| ^~
drivers/net/ethernet/renesas/sh_eth.c:333:16: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[93]?)
drivers/net/ethernet/mellanox/mlx4/en_tx.c: In function ?mlx4_en_xmit?:
drivers/net/ethernet/mellanox/mlx4/en_tx.c:858:6: warning: variable ?ring_cons? set but not used [-Wunused-but-set-variable]
858 | u32 ring_cons;
| ^~~~~~~~~
drivers/net/ethernet/sis/sis900.c: In function ?sis900_set_capability?:
drivers/net/ethernet/sis/sis900.c:792:6: warning: variable ?status? set but not used [-Wunused-but-set-variable]
792 | u16 status;
| ^~~~~~
drivers/net/ethernet/sfc/falcon/farch.c: In function ?ef4_farch_handle_rx_not_ok?:
drivers/net/ethernet/sfc/falcon/farch.c:878:11: warning: variable ?rx_ev_pkt_type? set but not used [-Wunused-but-set-variable]
878 | unsigned rx_ev_pkt_type;
| ^~~~~~~~~~~~~~
drivers/net/ethernet/sfc/falcon/farch.c:877:23: warning: variable ?rx_ev_mcast_pkt? set but not used [-Wunused-but-set-variable]
877 | bool rx_ev_hdr_type, rx_ev_mcast_pkt;
| ^~~~~~~~~~~~~~~
drivers/net/ethernet/sfc/falcon/farch.c:877:7: warning: variable ?rx_ev_hdr_type? set but not used [-Wunused-but-set-variable]
877 | bool rx_ev_hdr_type, rx_ev_mcast_pkt;
| ^~~~~~~~~~~~~~
drivers/net/ethernet/sfc/falcon/farch.c:876:7: warning: variable ?rx_ev_other_err? set but not used [-Wunused-but-set-variable]
876 | bool rx_ev_other_err, rx_ev_pause_frm;
| ^~~~~~~~~~~~~~~
drivers/net/ethernet/sfc/falcon/farch.c: In function ?ef4_farch_dimension_resources?:
drivers/net/ethernet/sfc/falcon/farch.c:1646:21: warning: variable ?buftbl_min? set but not used [-Wunused-but-set-variable]
1646 | unsigned vi_count, buftbl_min;
| ^~~~~~~~~~drivers/net/ethernet/sfc/falcon/farch.c: In function ?ef4_farch_filter_remove_safe?:drivers/net/ethernet/sfc/falcon/farch.c:2535:32: warning: variable ?spec? set but not used [-Wunused-but-set-variable]
2535 | struct ef4_farch_filter_spec *spec;
| ^~~~drivers/net/ethernet/via/via-velocity.c: In function ?velocity_set_media_mode?:drivers/net/ethernet/via/via-velocity.c:880:6: warning: variable ?curr_status? set but not used [-Wunused-but-set-variable]
880 | u32 curr_status;
| ^~~~~~~~~~~
drivers/net/ethernet/ti/tlan.c: In function ?tlan_eisa_probe?:
drivers/net/ethernet/ti/tlan.c:656:6: warning: variable ?rc? set but not used [-Wunused-but-set-variable]
656 | int rc = -ENODEV;
| ^~
drivers/net/ethernet/ti/davinci_emac.c: In function ?emac_poll?:
drivers/net/ethernet/ti/davinci_emac.c:1230:6: warning: variable ?num_tx_pkts? set but not used [-Wunused-but-set-variable]
1230 | u32 num_tx_pkts = 0, num_rx_pkts = 0;
| ^~~~~~~~~~~
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c: In function ?xlgmac_print_all_hw_features?:
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c:516:8: warning: variable ?str? set but not used [-Wunused-but-set-variable]
516 | char *str = NULL;
| ^~~drivers/net/ethernet/ti/cpsw_new.c: In function ?cpsw_dl_switch_mode_set?:drivers/net/ethernet/ti/cpsw_new.c:1662:22: warning: variable ?priv? set but not used [-Wunused-but-set-variable]
1662 | struct cpsw_priv *priv;
| ^~~~
--- drivers/net/ethernet/brocade/bna/bnad.c | 7 ++-- drivers/net/ethernet/dec/tulip/de4x5.c | 4 +-- drivers/net/ethernet/dec/tulip/media.c | 5 --- drivers/net/ethernet/dnet.c | 2 +- drivers/net/ethernet/mellanox/mlx4/en_tx.c | 2 +- drivers/net/ethernet/micrel/ksz884x.c | 3 +- drivers/net/ethernet/microchip/lan743x_main.c | 6 ++-- .../net/ethernet/neterion/vxge/vxge-traffic.c | 32 +++++++------------ drivers/net/ethernet/sfc/falcon/farch.c | 29 +++++++---------- drivers/net/ethernet/sis/sis900.c | 5 ++- .../net/ethernet/synopsys/dwc-xlgmac-common.c | 2 +- drivers/net/ethernet/ti/cpsw_new.c | 2 -- drivers/net/ethernet/ti/davinci_emac.c | 5 ++- drivers/net/ethernet/ti/tlan.c | 4 +-- drivers/net/ethernet/via/via-velocity.c | 13 -------- 15 files changed, 37 insertions(+), 84 deletions(-)
drivers/net/ethernet/brocade/bna/bnad.c +2 -5
@@ -3277,7 +3277,7 @@ bnad_change_mtu(struct net_device *netdev, int new_mtu) {int err, mtu;struct bnad *bnad =netdev_priv (netdev); -u32 rx_count =0 , frame, new_frame; +u32 frame, new_frame;mutex_lock (&bnad->conf_mutex);
@@ -3293,12 +3293,9 @@ bnad_change_mtu(struct net_device *netdev, int new_mtu)/* only when transition is over 4K */ if ((frame <=4096 && new_frame >4096 ) || (frame >4096 && new_frame <=4096 )) - rx_count =bnad_reinit_rx (bnad); +bnad_reinit_rx (bnad); } -/* rx_count > 0 - new rx created -* - Linux set err = 0 and return -*/ err =bnad_mtu_set (bnad, new_frame);if (err) err = -EBUSY ;
drivers/net/ethernet/dec/tulip/de4x5.c +2 -2
@@ -4925,11 +4925,11 @@ mii_get_oui(u_char phyaddr, u_long ioaddr)u_char breg[2]; } a; int i, r2, r3, ret=0;*/ -int r2, r3; +int r2;/* Read r2 and r3 */ r2 =mii_rd (MII_ID0 , phyaddr, ioaddr); - r3 =mii_rd (MII_ID1 , phyaddr, ioaddr); +mii_rd (MII_ID1 , phyaddr, ioaddr);/* SEEQ and Cypress way * / / * Shuffle r2 and r3 * / a.reg=0;
drivers/net/ethernet/dec/tulip/media.c +0 -5
@@ -319,13 +319,8 @@ void tulip_select_media(struct net_device *dev, int startup)break ; }case 5 :case 6 : { -u16 setup[5 ]; - new_csr6 =0 ;/* FIXME */ -for (i =0 ; i <5 ; i++) - setup[i] =get_u16 (&p[i*2 +1 ]); -if (startup && mtable->has_reset) {struct medialeaf *rleaf = &mtable->mleaf[mtable->has_reset];unsigned char *rst = rleaf->leafdata;
drivers/net/ethernet/dnet.c +1 -1
@@ -507,10 +507,10 @@ static netdev_tx_t dnet_start_xmit(struct sk_buff *skb, struct net_device *dev) {struct dnet *bp =netdev_priv (dev); -u32 irq_enable;unsigned int i, tx_cmd, wrsz;unsigned long flags;unsigned int *bufp; +u32 irq_enable;dnet_readl (bp,TX_STATUS );
drivers/net/ethernet/mellanox/mlx4/en_tx.c +1 -1
@@ -842,6 +842,7 @@ netdev_tx_t mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev)struct mlx4_en_tx_desc *tx_desc;struct mlx4_wqe_data_seg *data;struct mlx4_en_tx_info *tx_info; +u32 __maybe_unused ring_cons;int tx_ind;int nr_txbb;int desc_size;
@@ -855,7 +856,6 @@ netdev_tx_t mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev)bool stop_queue;bool inline_ok;u8 data_offset; -u32 ring_cons;bool bf_ok; tx_ind =skb_get_queue_mapping (skb);
drivers/net/ethernet/micrel/ksz884x.c +1 -2
@@ -1649,8 +1649,7 @@ static inline void set_tx_len(struct ksz_desc *desc, u32 len)#define HW_DELAY (hw, reg) \ do { \ - u16 dummy; \ - dummy = readw(hw->io + reg); \ + readw(hw->io + reg); \ } while (0)/**
drivers/net/ethernet/microchip/lan743x_main.c +2 -4
@@ -158,9 +158,8 @@ static void lan743x_tx_isr(void *context, u32 int_sts, u32 flags)struct lan743x_tx *tx = context;struct lan743x_adapter *adapter = tx->adapter;bool enable_flag = true; -u32 int_en =0 ; - int_en =lan743x_csr_read (adapter,INT_EN_SET ); +lan743x_csr_read (adapter,INT_EN_SET );if (flags &LAN743X_VECTOR_FLAG_SOURCE_ENABLE_CLEAR ) {lan743x_csr_write (adapter,INT_EN_CLR ,INT_BIT_DMA_TX_ (tx->channel_number));
@@ -1699,10 +1698,9 @@ static int lan743x_tx_napi_poll(struct napi_struct *napi, int weight)bool start_transmitter = false;unsigned long irq_flags =0 ;u32 ioc_bit =0 ; -u32 int_sts =0 ; ioc_bit =DMAC_INT_BIT_TX_IOC_ (tx->channel_number); - int_sts =lan743x_csr_read (adapter,DMAC_INT_STS ); +lan743x_csr_read (adapter,DMAC_INT_STS );if (tx->vector_flags &LAN743X_VECTOR_FLAG_SOURCE_STATUS_W2C )lan743x_csr_write (adapter,DMAC_INT_STS , ioc_bit);spin_lock_irqsave (&tx->ring_lock, irq_flags);
drivers/net/ethernet/neterion/vxge/vxge-traffic.c +11 -21
@@ -30,8 +30,6 @@*/ enum vxge_hw_status vxge_hw_vpath_intr_enable (struct __vxge_hw_vpath_handle *vp) { -u64 val64; -struct __vxge_hw_virtualpath *vpath;struct vxge_hw_vpath_reg __iomem *vp_reg;enum vxge_hw_status status =VXGE_HW_OK ;
@@ -84,7 +82,7 @@ enum vxge_hw_status vxge_hw_vpath_intr_enable(struct __vxge_hw_vpath_handle *vp)__vxge_hw_pio_mem_write32_upper ((u32 )VXGE_HW_INTR_MASK_ALL , &vp_reg->xgmac_vp_int_status); - val64 =readq (&vp_reg->vpath_general_int_status); +readq (&vp_reg->vpath_general_int_status);/* Mask unwanted interrupts */
@@ -157,8 +155,6 @@ enum vxge_hw_status vxge_hw_vpath_intr_enable(struct __vxge_hw_vpath_handle *vp)enum vxge_hw_status vxge_hw_vpath_intr_disable (struct __vxge_hw_vpath_handle *vp) { -u64 val64; -struct __vxge_hw_virtualpath *vpath;enum vxge_hw_status status =VXGE_HW_OK ;struct vxge_hw_vpath_reg __iomem *vp_reg;
@@ -179,8 +175,6 @@ enum vxge_hw_status vxge_hw_vpath_intr_disable( (u32 )VXGE_HW_INTR_MASK_ALL , &vp_reg->vpath_general_int_mask); - val64 =VXGE_HW_TIM_CLR_INT_EN_VP (1 << (16 - vpath->vp_id)); -writeq (VXGE_HW_INTR_MASK_ALL , &vp_reg->kdfcctl_errors_mask); __vxge_hw_pio_mem_write32_upper((u32)VXGE_HW_INTR_MASK_ALL,
@@ -487,9 +481,7 @@ void vxge_hw_device_unmask_all(struct __vxge_hw_device *hldev)*/ void vxge_hw_device_flush_io (struct __vxge_hw_device *hldev) { -u32 val32; - - val32 =readl (&hldev->common_reg->titan_general_int_status); +readl (&hldev->common_reg->titan_general_int_status); }/**
@@ -1716,8 +1708,8 @@ void vxge_hw_fifo_txdl_free(struct __vxge_hw_fifo *fifo, void *txdlh)enum vxge_hw_status vxge_hw_vpath_mac_addr_add (struct __vxge_hw_vpath_handle *vp, -u8 (macaddr )[ETH_ALEN ], -u8 (macaddr_mask )[ETH_ALEN ], +u8 *macaddr, +u8 *macaddr_mask,enum vxge_hw_vpath_mac_addr_add_mode duplicate_mode) {u32 i;
@@ -1779,8 +1771,8 @@ vxge_hw_vpath_mac_addr_add(enum vxge_hw_status vxge_hw_vpath_mac_addr_get (struct __vxge_hw_vpath_handle *vp, -u8 (macaddr )[ETH_ALEN ], -u8 (macaddr_mask )[ETH_ALEN ]) +u8 *macaddr, +u8 *macaddr_mask) {u32 i;u64 data1 =0ULL ;
@@ -1831,8 +1823,8 @@ vxge_hw_vpath_mac_addr_get(enum vxge_hw_status vxge_hw_vpath_mac_addr_get_next (struct __vxge_hw_vpath_handle *vp, -u8 (macaddr )[ETH_ALEN ], -u8 (macaddr_mask )[ETH_ALEN ]) +u8 *macaddr, +u8 *macaddr_mask) {u32 i;u64 data1 =0ULL ;
@@ -1884,8 +1876,8 @@ vxge_hw_vpath_mac_addr_get_next(enum vxge_hw_status vxge_hw_vpath_mac_addr_delete (struct __vxge_hw_vpath_handle *vp, -u8 (macaddr )[ETH_ALEN ], -u8 (macaddr_mask )[ETH_ALEN ]) +u8 *macaddr, +u8 *macaddr_mask) {u32 i;u64 data1 =0ULL ;
@@ -2375,7 +2367,6 @@ enum vxge_hw_status vxge_hw_vpath_poll_rx(struct __vxge_hw_ring *ring)u8 t_code;enum vxge_hw_status status =VXGE_HW_OK ;void *first_rxdh; -u64 val64 =0 ;int new_count =0 ; ring->cmpl_cnt =0 ;
@@ -2403,8 +2394,7 @@ enum vxge_hw_status vxge_hw_vpath_poll_rx(struct __vxge_hw_ring *ring) }writeq (VXGE_HW_PRC_RXD_DOORBELL_NEW_QW_CNT (new_count), &ring->vp_reg->prc_rxd_doorbell); - val64 = -readl (&ring->common_reg->titan_general_int_status); +readl (&ring->common_reg->titan_general_int_status); ring->doorbell_cnt =0 ; } }
drivers/net/ethernet/sfc/falcon/farch.c +11 -18
@@ -870,17 +870,12 @@ static u16 ef4_farch_handle_rx_not_ok(struct ef4_rx_queue *rx_queue, {struct ef4_channel *channel =ef4_rx_queue_channel (rx_queue);struct ef4_nic *efx = rx_queue->efx; -bool rx_ev_buf_owner_id_err, rx_ev_ip_hdr_chksum_err; +bool __maybe_unused rx_ev_buf_owner_id_err, rx_ev_ip_hdr_chksum_err;bool rx_ev_tcp_udp_chksum_err, rx_ev_eth_crc_err;bool rx_ev_frm_trunc, rx_ev_drib_nib, rx_ev_tobe_disc; -bool rx_ev_other_err, rx_ev_pause_frm; -bool rx_ev_hdr_type, rx_ev_mcast_pkt; -unsigned rx_ev_pkt_type; +bool rx_ev_pause_frm; - rx_ev_hdr_type =EF4_QWORD_FIELD (*event,FSF_AZ_RX_EV_HDR_TYPE ); - rx_ev_mcast_pkt =EF4_QWORD_FIELD (*event,FSF_AZ_RX_EV_MCAST_PKT ); rx_ev_tobe_disc =EF4_QWORD_FIELD (*event,FSF_AZ_RX_EV_TOBE_DISC ); - rx_ev_pkt_type =EF4_QWORD_FIELD (*event,FSF_AZ_RX_EV_PKT_TYPE ); rx_ev_buf_owner_id_err =EF4_QWORD_FIELD (*event,FSF_AZ_RX_EV_BUF_OWNER_ID_ERR ); rx_ev_ip_hdr_chksum_err = EF4_QWORD_FIELD(*event,
@@ -893,10 +888,6 @@ static u16 ef4_farch_handle_rx_not_ok(struct ef4_rx_queue *rx_queue, 0 : EF4_QWORD_FIELD(*event, FSF_AA_RX_EV_DRIB_NIB)); rx_ev_pause_frm =EF4_QWORD_FIELD (*event,FSF_AZ_RX_EV_PAUSE_FRM_ERR ); -/* Every error apart from tobe_disc and pause_frm */ - rx_ev_other_err = (rx_ev_drib_nib | rx_ev_tcp_udp_chksum_err | - rx_ev_buf_owner_id_err | rx_ev_eth_crc_err | - rx_ev_frm_trunc | rx_ev_ip_hdr_chksum_err);/* Count errors that are not in MAC stats. Ignore expected * checksum errors during self-test. */
@@ -916,6 +907,13 @@ static u16 ef4_farch_handle_rx_not_ok(struct ef4_rx_queue *rx_queue,* to a FIFO overflow. */ #ifdef DEBUG + { +/* Every error apart from tobe_disc and pause_frm */ + +bool rx_ev_other_err = (rx_ev_drib_nib | rx_ev_tcp_udp_chksum_err | + rx_ev_buf_owner_id_err | rx_ev_eth_crc_err | + rx_ev_frm_trunc | rx_ev_ip_hdr_chksum_err); +if (rx_ev_other_err &&net_ratelimit ()) {netif_dbg (efx, rx_err, efx->net_dev, " RX queue %d unexpected RX event "
@@ -932,6 +930,7 @@ static u16 ef4_farch_handle_rx_not_ok(struct ef4_rx_queue *rx_queue, rx_ev_tobe_disc ?" [TOBE_DISC]" :"" , rx_ev_pause_frm ? " [PAUSE]" : ""); } + }#endif /* The frame must be discarded if any of these are true. */
@@ -1643,15 +1642,11 @@ void ef4_farch_rx_push_indir_table(struct ef4_nic *efx)*/ void ef4_farch_dimension_resources (struct ef4_nic *efx,unsigned sram_lim_qw) { -unsigned vi_count, buftbl_min; +unsigned vi_count;/* Account for the buffer table entries backing the datapath channels * and the descriptor caches for those channels. */ - buftbl_min = ((efx->n_rx_channels *EF4_MAX_DMAQ_SIZE + - efx->n_tx_channels *EF4_TXQ_TYPES *EF4_MAX_DMAQ_SIZE + - efx->n_channels *EF4_MAX_EVQ_SIZE ) - *sizeof (ef4_qword_t) /EF4_BUF_SIZE ); vi_count =max (efx->n_channels, efx->n_tx_channels *EF4_TXQ_TYPES ); efx->tx_dc_base = sram_lim_qw - vi_count *TX_DC_ENTRIES ;
@@ -2532,7 +2527,6 @@ int ef4_farch_filter_remove_safe(struct ef4_nic *efx,enum ef4_farch_filter_table_id table_id;struct ef4_farch_filter_table *table;unsigned int filter_idx; -struct ef4_farch_filter_spec *spec;int rc; table_id =ef4_farch_filter_id_table_id (filter_id);
@@ -2543,7 +2537,6 @@ int ef4_farch_filter_remove_safe(struct ef4_nic *efx, filter_idx =ef4_farch_filter_id_index (filter_id);if (filter_idx >= table->size)return -ENOENT ; - spec = &table->spec[filter_idx];spin_lock_bh (&efx->filter_lock); rc =ef4_farch_filter_remove (efx, table, filter_idx, priority);
drivers/net/ethernet/sis/sis900.c +2 -3
@@ -789,10 +789,9 @@ static u16 sis900_default_phy(struct net_device * net_dev)static void sis900_set_capability (struct net_device *net_dev,struct mii_phy *phy) {u16 cap; -u16 status; - status =mdio_read (net_dev, phy->phy_addr,MII_STATUS ); - status =mdio_read (net_dev, phy->phy_addr,MII_STATUS ); +mdio_read (net_dev, phy->phy_addr,MII_STATUS ); +mdio_read (net_dev, phy->phy_addr,MII_STATUS ); cap =MII_NWAY_CSMA_CD | ((phy->status & MII_STAT_CAN_TX_FDX)? MII_NWAY_TX_FDX:0) |
drivers/net/ethernet/synopsys/dwc-xlgmac-common.c +1 -1
@@ -513,7 +513,7 @@ void xlgmac_get_all_hw_features(struct xlgmac_pdata *pdata)void xlgmac_print_all_hw_features (struct xlgmac_pdata *pdata) { -char *str =NULL ; +char __maybe_unused *str =NULL ;XLGMAC_PR ("\n" );XLGMAC_PR ("=====================================================\n" );
drivers/net/ethernet/ti/cpsw_new.c +0 -2
@@ -1660,12 +1660,10 @@ static int cpsw_dl_switch_mode_set(struct devlink *dl, u32 id,for (i =0 ; i < cpsw->data.slaves; i++) {struct cpsw_slave *slave = &cpsw->slaves[i];struct net_device *sl_ndev = slave->ndev; -struct cpsw_priv *priv;if (!sl_ndev)continue ; - priv =netdev_priv (sl_ndev);if (switch_en) vlan = cpsw->data.default_vlan;else
drivers/net/ethernet/ti/davinci_emac.c +2 -3
@@ -1227,7 +1227,7 @@ static int emac_poll(struct napi_struct *napi, int budget)struct net_device *ndev = priv->ndev;struct device *emac_dev = &ndev->dev;u32 status =0 ; -u32 num_tx_pkts =0 , num_rx_pkts =0 ; +u32 num_rx_pkts =0 ;/* Check interrupt vectors and call packet processing */ status =emac_read (EMAC_MACINVECTOR );
@@ -1238,8 +1238,7 @@ static int emac_poll(struct napi_struct *napi, int budget) mask =EMAC_DM646X_MAC_IN_VECTOR_TX_INT_VEC ;if (status & mask) { - num_tx_pkts =cpdma_chan_process (priv->txchan, -EMAC_DEF_TX_MAX_SERVICE ); +cpdma_chan_process (priv->txchan,EMAC_DEF_TX_MAX_SERVICE ); }/* TX processing */ mask =EMAC_DM644X_MAC_IN_VECTOR_RX_INT_VEC ;
drivers/net/ethernet/ti/tlan.c +1 -3
@@ -653,7 +653,6 @@ module_exit(tlan_exit);static void __init tlan_eisa_probe (void ) {long ioaddr; -int rc = -ENODEV ;int irq;u16 device_id;
@@ -718,8 +717,7 @@ static void __init tlan_eisa_probe(void)/* Setup the newly found eisa adapter */ - rc =tlan_probe1 (NULL , ioaddr, irq, -12 ,NULL ); +tlan_probe1 (NULL , ioaddr, irq,12 ,NULL );continue ; out:
drivers/net/ethernet/via/via-velocity.c +0 -13
@@ -877,26 +877,13 @@ static u32 check_connection_type(struct mac_regs __iomem *regs)*/ static int velocity_set_media_mode (struct velocity_info *vptr,u32 mii_status) { -u32 curr_status;struct mac_regs __iomem *regs = vptr->mac_regs; vptr->mii_status =mii_check_media_mode (vptr->mac_regs); - curr_status = vptr->mii_status & (~VELOCITY_LINK_FAIL );/* Set mii link status */ set_mii_flow_control (vptr); -/* -Check if new status is consistent with current status -if (((mii_status & curr_status) & VELOCITY_AUTONEG_ENABLE) || -(mii_status==curr_status)) { -vptr->mii_status=mii_check_media_mode(vptr->mac_regs); -vptr->mii_status=check_connection_type(vptr->mac_regs); -netdev_info(vptr->netdev, "Velocity link no change\n"); -return 0; -} -*/ -if (PHYID_GET_PHY_ID (vptr->phy_id) ==PHYID_CICADA_CS8201 )MII_REG_BITS_ON (AUXCR_MDPPS ,MII_NCONFIG , vptr->mac_regs);
Signature · 1 line
2.25.4
PATCH v3 4/9 drivers/net/ethernet: rid ethernet of no-prototype warnings
In reply to Jesse BrandeburgFrom: Jesse Brandeburg <[email protected]>
The W=1 builds showed a few files exporting functions (non-static) that were not prototyped. What actually happened is that there were prototypes, but the include file was forgotten in the implementation file.
Add the include file and remove the warnings.
Fixed Warnings:drivers/net/ethernet/cavium/liquidio/cn68xx_device.c:124:5: warning: no previous prototype for ?lio_setup_cn68xx_octeon_device? [-Wmissing-prototypes] drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:159:1: warning: no previous prototype for ?octeon_pci_read_core_mem? [-Wmissing-prototypes] drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:168:1: warning: no previous prototype for ?octeon_pci_write_core_mem? [-Wmissing-prototypes] drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:176:5: warning: no previous prototype for ?octeon_read_device_mem64? [-Wmissing-prototypes] drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:185:5: warning: no previous prototype for ?octeon_read_device_mem32? [-Wmissing-prototypes] drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:194:6: warning: no previous prototype for ?octeon_write_device_mem32? [-Wmissing-prototypes] drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c:453:6: warning: no previous prototype for ?hclge_dcb_ops_set? [-Wmissing-prototypes]
---
v3: add warnings detail
v2: first non-rfc version
Full list of warnings:drivers/net/ethernet/cavium/liquidio/cn68xx_device.c:124:5: warning: no previous prototype for ?lio_setup_cn68xx_octeon_device? [-Wmissing-prototypes]
124 | int lio_setup_cn68xx_octeon_device(struct octeon_device *oct)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:159:1: warning: no previous prototype for ?octeon_pci_read_core_mem? [-Wmissing-prototypes]
159 | octeon_pci_read_core_mem(struct octeon_device *oct,
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:168:1: warning: no previous prototype for ?octeon_pci_write_core_mem? [-Wmissing-prototypes]
168 | octeon_pci_write_core_mem(struct octeon_device *oct,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:176:5: warning: no previous prototype for ?octeon_read_device_mem64? [-Wmissing-prototypes]
176 | u64 octeon_read_device_mem64(struct octeon_device *oct, u64 coreaddr)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:185:5: warning: no previous prototype for ?octeon_read_device_mem32? [-Wmissing-prototypes]
185 | u32 octeon_read_device_mem32(struct octeon_device *oct, u64 coreaddr)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:194:6: warning: no previous prototype for ?octeon_write_device_mem32? [-Wmissing-prototypes]
194 | void octeon_write_device_mem32(struct octeon_device *oct, u64 coreaddr,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c:453:6: warning: no previous prototype for ?hclge_dcb_ops_set? [-Wmissing-prototypes]
453 | void hclge_dcb_ops_set(struct hclge_dev *hdev)
| ^~~~~~~~~~~~~~~~~
---
drivers/net/ethernet/cavium/liquidio/cn68xx_device.c | 1 +
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c | 1 +
2 files changed, 2 insertions(+)drivers/net/ethernet/cavium/liquidio/cn68xx_device.c +1 -0
@@ -25,6 +25,7 @@#include "octeon_main.h" #include "cn66xx_regs.h" #include "cn66xx_device.h" +#include "cn68xx_device.h" #include "cn68xx_regs.h" #include "cn68xx_device.h"
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c +1 -0
@@ -4,6 +4,7 @@#include "hclge_main.h" #include "hclge_dcb.h" #include "hclge_tm.h" +#include "hclge_dcb.h" #include "hnae3.h" #define BW_PERCENT 100
Signature · 1 line
2.25.4
PATCH v3 5/9 drivers/net/ethernet: handle one warning explicitly
In reply to Jesse BrandeburgFrom: Jesse Brandeburg <[email protected]>
While fixing the W=1 builds, this warning came up because the developers used a very tricky way to get structures initialized to a non-zero value, but this causes GCC to warn about an override. In this case the override was intentional, so just disable the warning for this code with a kernel macro that results in disabling the warning for compiles on GCC versions after 8.
It is not appropriate to change the struct to initialize all the values as it will just add a lot more code for no value. The code is completely correct as is, we just want to acknowledge that this code could generate a warning and we're ok with that.
NOTE: the __diag_ignore macro currently only accepts a second argument of 8 (version 80000), it's either use this one or open code the pragma.
Fixed Warnings example (all the same):drivers/net/ethernet/renesas/sh_eth.c:51:12: warning: initialized field overwritten [-Woverride-init] drivers/net/ethernet/renesas/sh_eth.c:52:12: warning: initialized field overwritten [-Woverride-init] drivers/net/ethernet/renesas/sh_eth.c:53:13: warning: initialized field overwritten [-Woverride-init]
+ 256 more...
---
v3: change to __diag_* macros, add warning detail
v2: first non-RFC version
Full list of warnings:
======================drivers/net/ethernet/renesas/sh_eth.c:51:12: warning: initialized field overwritten [-Woverride-init]
51 | [EDSR] = 0x0000,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:51:12: note: (near initialization for ?sh_eth_offset_gigabit[0]?)
drivers/net/ethernet/renesas/sh_eth.c:52:12: warning: initialized field overwritten [-Woverride-init]
52 | [EDMR] = 0x0400,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:52:12: note: (near initialization for ?sh_eth_offset_gigabit[1]?)
drivers/net/ethernet/renesas/sh_eth.c:53:13: warning: initialized field overwritten [-Woverride-init]
53 | [EDTRR] = 0x0408,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:53:13: note: (near initialization for ?sh_eth_offset_gigabit[2]?)
drivers/net/ethernet/renesas/sh_eth.c:54:13: warning: initialized field overwritten [-Woverride-init]
54 | [EDRRR] = 0x0410,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:54:13: note: (near initialization for ?sh_eth_offset_gigabit[3]?)
drivers/net/ethernet/renesas/sh_eth.c:55:12: warning: initialized field overwritten [-Woverride-init]
55 | [EESR] = 0x0428,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:55:12: note: (near initialization for ?sh_eth_offset_gigabit[4]?)
drivers/net/ethernet/renesas/sh_eth.c:56:13: warning: initialized field overwritten [-Woverride-init]
56 | [EESIPR] = 0x0430,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:56:13: note: (near initialization for ?sh_eth_offset_gigabit[5]?)
drivers/net/ethernet/renesas/sh_eth.c:57:13: warning: initialized field overwritten [-Woverride-init]
57 | [TDLAR] = 0x0010,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:57:13: note: (near initialization for ?sh_eth_offset_gigabit[6]?)
drivers/net/ethernet/renesas/sh_eth.c:58:13: warning: initialized field overwritten [-Woverride-init]
58 | [TDFAR] = 0x0014,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:58:13: note: (near initialization for ?sh_eth_offset_gigabit[7]?)
drivers/net/ethernet/renesas/sh_eth.c:59:13: warning: initialized field overwritten [-Woverride-init]
59 | [TDFXR] = 0x0018,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:59:13: note: (near initialization for ?sh_eth_offset_gigabit[8]?)
drivers/net/ethernet/renesas/sh_eth.c:60:13: warning: initialized field overwritten [-Woverride-init]
60 | [TDFFR] = 0x001c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:60:13: note: (near initialization for ?sh_eth_offset_gigabit[9]?)
drivers/net/ethernet/renesas/sh_eth.c:61:13: warning: initialized field overwritten [-Woverride-init]
61 | [RDLAR] = 0x0030,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:61:13: note: (near initialization for ?sh_eth_offset_gigabit[10]?)
drivers/net/ethernet/renesas/sh_eth.c:62:13: warning: initialized field overwritten [-Woverride-init]
62 | [RDFAR] = 0x0034,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:62:13: note: (near initialization for ?sh_eth_offset_gigabit[11]?)
drivers/net/ethernet/renesas/sh_eth.c:63:13: warning: initialized field overwritten [-Woverride-init]
63 | [RDFXR] = 0x0038,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:63:13: note: (near initialization for ?sh_eth_offset_gigabit[12]?)
drivers/net/ethernet/renesas/sh_eth.c:64:13: warning: initialized field overwritten [-Woverride-init]
64 | [RDFFR] = 0x003c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:64:13: note: (near initialization for ?sh_eth_offset_gigabit[13]?)
drivers/net/ethernet/renesas/sh_eth.c:65:13: warning: initialized field overwritten [-Woverride-init]
65 | [TRSCER] = 0x0438,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:65:13: note: (near initialization for ?sh_eth_offset_gigabit[14]?)
drivers/net/ethernet/renesas/sh_eth.c:66:13: warning: initialized field overwritten [-Woverride-init]
66 | [RMFCR] = 0x0440,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:66:13: note: (near initialization for ?sh_eth_offset_gigabit[15]?)
drivers/net/ethernet/renesas/sh_eth.c:67:12: warning: initialized field overwritten [-Woverride-init]
67 | [TFTR] = 0x0448,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:67:12: note: (near initialization for ?sh_eth_offset_gigabit[16]?)
drivers/net/ethernet/renesas/sh_eth.c:68:11: warning: initialized field overwritten [-Woverride-init]
68 | [FDR] = 0x0450,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:68:11: note: (near initialization for ?sh_eth_offset_gigabit[17]?)
drivers/net/ethernet/renesas/sh_eth.c:69:12: warning: initialized field overwritten [-Woverride-init]
69 | [RMCR] = 0x0458,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:69:12: note: (near initialization for ?sh_eth_offset_gigabit[18]?)
drivers/net/ethernet/renesas/sh_eth.c:70:13: warning: initialized field overwritten [-Woverride-init]
70 | [RPADIR] = 0x0460,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:70:13: note: (near initialization for ?sh_eth_offset_gigabit[24]?)
drivers/net/ethernet/renesas/sh_eth.c:71:13: warning: initialized field overwritten [-Woverride-init]
71 | [FCFTR] = 0x0468,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:71:13: note: (near initialization for ?sh_eth_offset_gigabit[23]?)
drivers/net/ethernet/renesas/sh_eth.c:72:12: warning: initialized field overwritten [-Woverride-init]
72 | [CSMR] = 0x04E4,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:72:12: note: (near initialization for ?sh_eth_offset_gigabit[63]?)
drivers/net/ethernet/renesas/sh_eth.c:74:12: warning: initialized field overwritten [-Woverride-init]
74 | [ECMR] = 0x0500,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:74:12: note: (near initialization for ?sh_eth_offset_gigabit[28]?)
drivers/net/ethernet/renesas/sh_eth.c:75:12: warning: initialized field overwritten [-Woverride-init]
75 | [ECSR] = 0x0510,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:75:12: note: (near initialization for ?sh_eth_offset_gigabit[29]?)
drivers/net/ethernet/renesas/sh_eth.c:76:13: warning: initialized field overwritten [-Woverride-init]
76 | [ECSIPR] = 0x0518,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:76:13: note: (near initialization for ?sh_eth_offset_gigabit[30]?)
drivers/net/ethernet/renesas/sh_eth.c:77:11: warning: initialized field overwritten [-Woverride-init]
77 | [PIR] = 0x0520,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:77:11: note: (near initialization for ?sh_eth_offset_gigabit[31]?)
drivers/net/ethernet/renesas/sh_eth.c:78:11: warning: initialized field overwritten [-Woverride-init]
78 | [PSR] = 0x0528,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:78:11: note: (near initialization for ?sh_eth_offset_gigabit[32]?)
drivers/net/ethernet/renesas/sh_eth.c:79:12: warning: initialized field overwritten [-Woverride-init]
79 | [PIPR] = 0x052c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:79:12: note: (near initialization for ?sh_eth_offset_gigabit[34]?)
drivers/net/ethernet/renesas/sh_eth.c:80:12: warning: initialized field overwritten [-Woverride-init]
80 | [RFLR] = 0x0508,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:80:12: note: (near initialization for ?sh_eth_offset_gigabit[35]?)
drivers/net/ethernet/renesas/sh_eth.c:81:11: warning: initialized field overwritten [-Woverride-init]
81 | [APR] = 0x0554,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:81:11: note: (near initialization for ?sh_eth_offset_gigabit[37]?)
drivers/net/ethernet/renesas/sh_eth.c:82:11: warning: initialized field overwritten [-Woverride-init]
82 | [MPR] = 0x0558,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:82:11: note: (near initialization for ?sh_eth_offset_gigabit[38]?)
drivers/net/ethernet/renesas/sh_eth.c:83:13: warning: initialized field overwritten [-Woverride-init]
83 | [PFTCR] = 0x055c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:83:13: note: (near initialization for ?sh_eth_offset_gigabit[39]?)
drivers/net/ethernet/renesas/sh_eth.c:84:13: warning: initialized field overwritten [-Woverride-init]
84 | [PFRCR] = 0x0560,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:84:13: note: (near initialization for ?sh_eth_offset_gigabit[40]?)
drivers/net/ethernet/renesas/sh_eth.c:85:14: warning: initialized field overwritten [-Woverride-init]
85 | [TPAUSER] = 0x0564,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:85:14: note: (near initialization for ?sh_eth_offset_gigabit[43]?)
drivers/net/ethernet/renesas/sh_eth.c:86:13: warning: initialized field overwritten [-Woverride-init]
86 | [GECMR] = 0x05b0,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:86:13: note: (near initialization for ?sh_eth_offset_gigabit[47]?)
drivers/net/ethernet/renesas/sh_eth.c:87:13: warning: initialized field overwritten [-Woverride-init]
87 | [BCULR] = 0x05b4,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:87:13: note: (near initialization for ?sh_eth_offset_gigabit[48]?)
drivers/net/ethernet/renesas/sh_eth.c:88:12: warning: initialized field overwritten [-Woverride-init]
88 | [MAHR] = 0x05c0,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:88:12: note: (near initialization for ?sh_eth_offset_gigabit[49]?)
drivers/net/ethernet/renesas/sh_eth.c:89:12: warning: initialized field overwritten [-Woverride-init]
89 | [MALR] = 0x05c8,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:89:12: note: (near initialization for ?sh_eth_offset_gigabit[50]?)
drivers/net/ethernet/renesas/sh_eth.c:90:13: warning: initialized field overwritten [-Woverride-init]
90 | [TROCR] = 0x0700,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:90:13: note: (near initialization for ?sh_eth_offset_gigabit[51]?)
drivers/net/ethernet/renesas/sh_eth.c:91:12: warning: initialized field overwritten [-Woverride-init]
91 | [CDCR] = 0x0708,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:91:12: note: (near initialization for ?sh_eth_offset_gigabit[52]?)
drivers/net/ethernet/renesas/sh_eth.c:92:12: warning: initialized field overwritten [-Woverride-init]
92 | [LCCR] = 0x0710,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:92:12: note: (near initialization for ?sh_eth_offset_gigabit[53]?)
drivers/net/ethernet/renesas/sh_eth.c:93:13: warning: initialized field overwritten [-Woverride-init]
93 | [CEFCR] = 0x0740,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:93:13: note: (near initialization for ?sh_eth_offset_gigabit[55]?)
drivers/net/ethernet/renesas/sh_eth.c:94:13: warning: initialized field overwritten [-Woverride-init]
94 | [FRECR] = 0x0748,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:94:13: note: (near initialization for ?sh_eth_offset_gigabit[56]?)
drivers/net/ethernet/renesas/sh_eth.c:95:13: warning: initialized field overwritten [-Woverride-init]
95 | [TSFRCR] = 0x0750,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:95:13: note: (near initialization for ?sh_eth_offset_gigabit[57]?)
drivers/net/ethernet/renesas/sh_eth.c:96:13: warning: initialized field overwritten [-Woverride-init]
96 | [TLFRCR] = 0x0758,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:96:13: note: (near initialization for ?sh_eth_offset_gigabit[58]?)
drivers/net/ethernet/renesas/sh_eth.c:97:12: warning: initialized field overwritten [-Woverride-init]
97 | [RFCR] = 0x0760,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:97:12: note: (near initialization for ?sh_eth_offset_gigabit[41]?)
drivers/net/ethernet/renesas/sh_eth.c:98:13: warning: initialized field overwritten [-Woverride-init]
98 | [CERCR] = 0x0768,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:98:13: note: (near initialization for ?sh_eth_offset_gigabit[59]?)
drivers/net/ethernet/renesas/sh_eth.c:99:13: warning: initialized field overwritten [-Woverride-init]
99 | [CEECR] = 0x0770,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:99:13: note: (near initialization for ?sh_eth_offset_gigabit[60]?)
drivers/net/ethernet/renesas/sh_eth.c:100:13: warning: initialized field overwritten [-Woverride-init]
100 | [MAFCR] = 0x0778,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:100:13: note: (near initialization for ?sh_eth_offset_gigabit[61]?)
drivers/net/ethernet/renesas/sh_eth.c:101:15: warning: initialized field overwritten [-Woverride-init]
101 | [RMII_MII] = 0x0790,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:101:15: note: (near initialization for ?sh_eth_offset_gigabit[64]?)
drivers/net/ethernet/renesas/sh_eth.c:103:13: warning: initialized field overwritten [-Woverride-init]
103 | [ARSTR] = 0x0000,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:103:13: note: (near initialization for ?sh_eth_offset_gigabit[65]?)
drivers/net/ethernet/renesas/sh_eth.c:104:16: warning: initialized field overwritten [-Woverride-init]
104 | [TSU_CTRST] = 0x0004,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:104:16: note: (near initialization for ?sh_eth_offset_gigabit[66]?)
drivers/net/ethernet/renesas/sh_eth.c:105:16: warning: initialized field overwritten [-Woverride-init]
105 | [TSU_FWEN0] = 0x0010,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:105:16: note: (near initialization for ?sh_eth_offset_gigabit[67]?)
drivers/net/ethernet/renesas/sh_eth.c:106:16: warning: initialized field overwritten [-Woverride-init]
106 | [TSU_FWEN1] = 0x0014,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:106:16: note: (near initialization for ?sh_eth_offset_gigabit[68]?)
drivers/net/ethernet/renesas/sh_eth.c:107:14: warning: initialized field overwritten [-Woverride-init]
107 | [TSU_FCM] = 0x0018,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:107:14: note: (near initialization for ?sh_eth_offset_gigabit[69]?)
drivers/net/ethernet/renesas/sh_eth.c:108:17: warning: initialized field overwritten [-Woverride-init]
108 | [TSU_BSYSL0] = 0x0020,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:108:17: note: (near initialization for ?sh_eth_offset_gigabit[70]?)
drivers/net/ethernet/renesas/sh_eth.c:109:17: warning: initialized field overwritten [-Woverride-init]
109 | [TSU_BSYSL1] = 0x0024,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:109:17: note: (near initialization for ?sh_eth_offset_gigabit[71]?)
drivers/net/ethernet/renesas/sh_eth.c:110:17: warning: initialized field overwritten [-Woverride-init]
110 | [TSU_PRISL0] = 0x0028,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:110:17: note: (near initialization for ?sh_eth_offset_gigabit[72]?)
drivers/net/ethernet/renesas/sh_eth.c:111:17: warning: initialized field overwritten [-Woverride-init]
111 | [TSU_PRISL1] = 0x002c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:111:17: note: (near initialization for ?sh_eth_offset_gigabit[73]?)
drivers/net/ethernet/renesas/sh_eth.c:112:16: warning: initialized field overwritten [-Woverride-init]
112 | [TSU_FWSL0] = 0x0030,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:112:16: note: (near initialization for ?sh_eth_offset_gigabit[74]?)
drivers/net/ethernet/renesas/sh_eth.c:113:16: warning: initialized field overwritten [-Woverride-init]
113 | [TSU_FWSL1] = 0x0034,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:113:16: note: (near initialization for ?sh_eth_offset_gigabit[75]?)
drivers/net/ethernet/renesas/sh_eth.c:114:16: warning: initialized field overwritten [-Woverride-init]
114 | [TSU_FWSLC] = 0x0038,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:114:16: note: (near initialization for ?sh_eth_offset_gigabit[76]?)
drivers/net/ethernet/renesas/sh_eth.c:115:17: warning: initialized field overwritten [-Woverride-init]
115 | [TSU_QTAGM0] = 0x0040,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:115:17: note: (near initialization for ?sh_eth_offset_gigabit[79]?)
drivers/net/ethernet/renesas/sh_eth.c:116:17: warning: initialized field overwritten [-Woverride-init]
116 | [TSU_QTAGM1] = 0x0044,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:116:17: note: (near initialization for ?sh_eth_offset_gigabit[80]?)
drivers/net/ethernet/renesas/sh_eth.c:117:15: warning: initialized field overwritten [-Woverride-init]
117 | [TSU_FWSR] = 0x0050,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:117:15: note: (near initialization for ?sh_eth_offset_gigabit[81]?)
drivers/net/ethernet/renesas/sh_eth.c:118:17: warning: initialized field overwritten [-Woverride-init]
118 | [TSU_FWINMK] = 0x0054,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:118:17: note: (near initialization for ?sh_eth_offset_gigabit[82]?)
drivers/net/ethernet/renesas/sh_eth.c:119:16: warning: initialized field overwritten [-Woverride-init]
119 | [TSU_ADQT0] = 0x0048,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:119:16: note: (near initialization for ?sh_eth_offset_gigabit[83]?)
drivers/net/ethernet/renesas/sh_eth.c:120:16: warning: initialized field overwritten [-Woverride-init]
120 | [TSU_ADQT1] = 0x004c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:120:16: note: (near initialization for ?sh_eth_offset_gigabit[84]?)
drivers/net/ethernet/renesas/sh_eth.c:121:16: warning: initialized field overwritten [-Woverride-init]
121 | [TSU_VTAG0] = 0x0058,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:121:16: note: (near initialization for ?sh_eth_offset_gigabit[85]?)
drivers/net/ethernet/renesas/sh_eth.c:122:16: warning: initialized field overwritten [-Woverride-init]
122 | [TSU_VTAG1] = 0x005c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:122:16: note: (near initialization for ?sh_eth_offset_gigabit[86]?)
drivers/net/ethernet/renesas/sh_eth.c:123:17: warning: initialized field overwritten [-Woverride-init]
123 | [TSU_ADSBSY] = 0x0060,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:123:17: note: (near initialization for ?sh_eth_offset_gigabit[87]?)
drivers/net/ethernet/renesas/sh_eth.c:124:14: warning: initialized field overwritten [-Woverride-init]
124 | [TSU_TEN] = 0x0064,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:124:14: note: (near initialization for ?sh_eth_offset_gigabit[88]?)
drivers/net/ethernet/renesas/sh_eth.c:125:16: warning: initialized field overwritten [-Woverride-init]
125 | [TSU_POST1] = 0x0070,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:125:16: note: (near initialization for ?sh_eth_offset_gigabit[89]?)
drivers/net/ethernet/renesas/sh_eth.c:126:16: warning: initialized field overwritten [-Woverride-init]
126 | [TSU_POST2] = 0x0074,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:126:16: note: (near initialization for ?sh_eth_offset_gigabit[90]?)
drivers/net/ethernet/renesas/sh_eth.c:127:16: warning: initialized field overwritten [-Woverride-init]
127 | [TSU_POST3] = 0x0078,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:127:16: note: (near initialization for ?sh_eth_offset_gigabit[91]?)
drivers/net/ethernet/renesas/sh_eth.c:128:16: warning: initialized field overwritten [-Woverride-init]
128 | [TSU_POST4] = 0x007c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:128:16: note: (near initialization for ?sh_eth_offset_gigabit[92]?)
drivers/net/ethernet/renesas/sh_eth.c:129:16: warning: initialized field overwritten [-Woverride-init]
129 | [TSU_ADRH0] = 0x0100,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:129:16: note: (near initialization for ?sh_eth_offset_gigabit[93]?)
drivers/net/ethernet/renesas/sh_eth.c:131:14: warning: initialized field overwritten [-Woverride-init]
131 | [TXNLCR0] = 0x0080,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:131:14: note: (near initialization for ?sh_eth_offset_gigabit[94]?)
drivers/net/ethernet/renesas/sh_eth.c:132:14: warning: initialized field overwritten [-Woverride-init]
132 | [TXALCR0] = 0x0084,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:132:14: note: (near initialization for ?sh_eth_offset_gigabit[95]?)
drivers/net/ethernet/renesas/sh_eth.c:133:14: warning: initialized field overwritten [-Woverride-init]
133 | [RXNLCR0] = 0x0088,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:133:14: note: (near initialization for ?sh_eth_offset_gigabit[96]?)
drivers/net/ethernet/renesas/sh_eth.c:134:14: warning: initialized field overwritten [-Woverride-init]
134 | [RXALCR0] = 0x008c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:134:14: note: (near initialization for ?sh_eth_offset_gigabit[97]?)
drivers/net/ethernet/renesas/sh_eth.c:135:14: warning: initialized field overwritten [-Woverride-init]
135 | [FWNLCR0] = 0x0090,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:135:14: note: (near initialization for ?sh_eth_offset_gigabit[98]?)
drivers/net/ethernet/renesas/sh_eth.c:136:14: warning: initialized field overwritten [-Woverride-init]
136 | [FWALCR0] = 0x0094,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:136:14: note: (near initialization for ?sh_eth_offset_gigabit[99]?)
drivers/net/ethernet/renesas/sh_eth.c:137:14: warning: initialized field overwritten [-Woverride-init]
137 | [TXNLCR1] = 0x00a0,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:137:14: note: (near initialization for ?sh_eth_offset_gigabit[100]?)
drivers/net/ethernet/renesas/sh_eth.c:138:14: warning: initialized field overwritten [-Woverride-init]
138 | [TXALCR1] = 0x00a4,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:138:14: note: (near initialization for ?sh_eth_offset_gigabit[101]?)
drivers/net/ethernet/renesas/sh_eth.c:139:14: warning: initialized field overwritten [-Woverride-init]
139 | [RXNLCR1] = 0x00a8,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:139:14: note: (near initialization for ?sh_eth_offset_gigabit[102]?)
drivers/net/ethernet/renesas/sh_eth.c:140:14: warning: initialized field overwritten [-Woverride-init]
140 | [RXALCR1] = 0x00ac,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:140:14: note: (near initialization for ?sh_eth_offset_gigabit[103]?)
drivers/net/ethernet/renesas/sh_eth.c:141:14: warning: initialized field overwritten [-Woverride-init]
141 | [FWNLCR1] = 0x00b0,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:141:14: note: (near initialization for ?sh_eth_offset_gigabit[104]?)
drivers/net/ethernet/renesas/sh_eth.c:142:14: warning: initialized field overwritten [-Woverride-init]
142 | [FWALCR1] = 0x00b4,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:142:14: note: (near initialization for ?sh_eth_offset_gigabit[105]?)
drivers/net/ethernet/renesas/sh_eth.c:148:12: warning: initialized field overwritten [-Woverride-init]
148 | [ECMR] = 0x0300,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:148:12: note: (near initialization for ?sh_eth_offset_fast_rcar[28]?)
drivers/net/ethernet/renesas/sh_eth.c:149:12: warning: initialized field overwritten [-Woverride-init]
149 | [RFLR] = 0x0308,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:149:12: note: (near initialization for ?sh_eth_offset_fast_rcar[35]?)
drivers/net/ethernet/renesas/sh_eth.c:150:12: warning: initialized field overwritten [-Woverride-init]
150 | [ECSR] = 0x0310,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:150:12: note: (near initialization for ?sh_eth_offset_fast_rcar[29]?)
drivers/net/ethernet/renesas/sh_eth.c:151:13: warning: initialized field overwritten [-Woverride-init]
151 | [ECSIPR] = 0x0318,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:151:13: note: (near initialization for ?sh_eth_offset_fast_rcar[30]?)
drivers/net/ethernet/renesas/sh_eth.c:152:11: warning: initialized field overwritten [-Woverride-init]
152 | [PIR] = 0x0320,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:152:11: note: (near initialization for ?sh_eth_offset_fast_rcar[31]?)
drivers/net/ethernet/renesas/sh_eth.c:153:11: warning: initialized field overwritten [-Woverride-init]
153 | [PSR] = 0x0328,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:153:11: note: (near initialization for ?sh_eth_offset_fast_rcar[32]?)
drivers/net/ethernet/renesas/sh_eth.c:154:13: warning: initialized field overwritten [-Woverride-init]
154 | [RDMLR] = 0x0340,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:154:13: note: (near initialization for ?sh_eth_offset_fast_rcar[33]?)
drivers/net/ethernet/renesas/sh_eth.c:155:12: warning: initialized field overwritten [-Woverride-init]
155 | [IPGR] = 0x0350,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:155:12: note: (near initialization for ?sh_eth_offset_fast_rcar[36]?)
drivers/net/ethernet/renesas/sh_eth.c:156:11: warning: initialized field overwritten [-Woverride-init]
156 | [APR] = 0x0354,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:156:11: note: (near initialization for ?sh_eth_offset_fast_rcar[37]?)
drivers/net/ethernet/renesas/sh_eth.c:157:11: warning: initialized field overwritten [-Woverride-init]
157 | [MPR] = 0x0358,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:157:11: note: (near initialization for ?sh_eth_offset_fast_rcar[38]?)
drivers/net/ethernet/renesas/sh_eth.c:158:12: warning: initialized field overwritten [-Woverride-init]
158 | [RFCF] = 0x0360,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:158:12: note: (near initialization for ?sh_eth_offset_fast_rcar[42]?)
drivers/net/ethernet/renesas/sh_eth.c:159:14: warning: initialized field overwritten [-Woverride-init]
159 | [TPAUSER] = 0x0364,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:159:14: note: (near initialization for ?sh_eth_offset_fast_rcar[43]?)
drivers/net/ethernet/renesas/sh_eth.c:160:15: warning: initialized field overwritten [-Woverride-init]
160 | [TPAUSECR] = 0x0368,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:160:15: note: (near initialization for ?sh_eth_offset_fast_rcar[44]?)
drivers/net/ethernet/renesas/sh_eth.c:161:12: warning: initialized field overwritten [-Woverride-init]
161 | [MAHR] = 0x03c0,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:161:12: note: (near initialization for ?sh_eth_offset_fast_rcar[49]?)
drivers/net/ethernet/renesas/sh_eth.c:162:12: warning: initialized field overwritten [-Woverride-init]
162 | [MALR] = 0x03c8,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:162:12: note: (near initialization for ?sh_eth_offset_fast_rcar[50]?)
drivers/net/ethernet/renesas/sh_eth.c:163:13: warning: initialized field overwritten [-Woverride-init]
163 | [TROCR] = 0x03d0,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:163:13: note: (near initialization for ?sh_eth_offset_fast_rcar[51]?)
drivers/net/ethernet/renesas/sh_eth.c:164:12: warning: initialized field overwritten [-Woverride-init]
164 | [CDCR] = 0x03d4,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:164:12: note: (near initialization for ?sh_eth_offset_fast_rcar[52]?)
drivers/net/ethernet/renesas/sh_eth.c:165:12: warning: initialized field overwritten [-Woverride-init]
165 | [LCCR] = 0x03d8,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:165:12: note: (near initialization for ?sh_eth_offset_fast_rcar[53]?)
drivers/net/ethernet/renesas/sh_eth.c:166:13: warning: initialized field overwritten [-Woverride-init]
166 | [CNDCR] = 0x03dc,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:166:13: note: (near initialization for ?sh_eth_offset_fast_rcar[54]?)
drivers/net/ethernet/renesas/sh_eth.c:167:13: warning: initialized field overwritten [-Woverride-init]
167 | [CEFCR] = 0x03e4,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:167:13: note: (near initialization for ?sh_eth_offset_fast_rcar[55]?)
drivers/net/ethernet/renesas/sh_eth.c:168:13: warning: initialized field overwritten [-Woverride-init]
168 | [FRECR] = 0x03e8,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:168:13: note: (near initialization for ?sh_eth_offset_fast_rcar[56]?)
drivers/net/ethernet/renesas/sh_eth.c:169:13: warning: initialized field overwritten [-Woverride-init]
169 | [TSFRCR] = 0x03ec,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:169:13: note: (near initialization for ?sh_eth_offset_fast_rcar[57]?)
drivers/net/ethernet/renesas/sh_eth.c:170:13: warning: initialized field overwritten [-Woverride-init]
170 | [TLFRCR] = 0x03f0,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:170:13: note: (near initialization for ?sh_eth_offset_fast_rcar[58]?)
drivers/net/ethernet/renesas/sh_eth.c:171:12: warning: initialized field overwritten [-Woverride-init]
171 | [RFCR] = 0x03f4,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:171:12: note: (near initialization for ?sh_eth_offset_fast_rcar[41]?)
drivers/net/ethernet/renesas/sh_eth.c:172:13: warning: initialized field overwritten [-Woverride-init]
172 | [MAFCR] = 0x03f8,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:172:13: note: (near initialization for ?sh_eth_offset_fast_rcar[61]?)
drivers/net/ethernet/renesas/sh_eth.c:174:12: warning: initialized field overwritten [-Woverride-init]
174 | [EDMR] = 0x0200,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:174:12: note: (near initialization for ?sh_eth_offset_fast_rcar[1]?)
drivers/net/ethernet/renesas/sh_eth.c:175:13: warning: initialized field overwritten [-Woverride-init]
175 | [EDTRR] = 0x0208,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:175:13: note: (near initialization for ?sh_eth_offset_fast_rcar[2]?)
drivers/net/ethernet/renesas/sh_eth.c:176:13: warning: initialized field overwritten [-Woverride-init]
176 | [EDRRR] = 0x0210,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:176:13: note: (near initialization for ?sh_eth_offset_fast_rcar[3]?)
drivers/net/ethernet/renesas/sh_eth.c:177:13: warning: initialized field overwritten [-Woverride-init]
177 | [TDLAR] = 0x0218,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:177:13: note: (near initialization for ?sh_eth_offset_fast_rcar[6]?)
drivers/net/ethernet/renesas/sh_eth.c:178:13: warning: initialized field overwritten [-Woverride-init]
178 | [RDLAR] = 0x0220,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:178:13: note: (near initialization for ?sh_eth_offset_fast_rcar[10]?)
drivers/net/ethernet/renesas/sh_eth.c:179:12: warning: initialized field overwritten [-Woverride-init]
179 | [EESR] = 0x0228,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:179:12: note: (near initialization for ?sh_eth_offset_fast_rcar[4]?)
drivers/net/ethernet/renesas/sh_eth.c:180:13: warning: initialized field overwritten [-Woverride-init]
180 | [EESIPR] = 0x0230,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:180:13: note: (near initialization for ?sh_eth_offset_fast_rcar[5]?)
drivers/net/ethernet/renesas/sh_eth.c:181:13: warning: initialized field overwritten [-Woverride-init]
181 | [TRSCER] = 0x0238,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:181:13: note: (near initialization for ?sh_eth_offset_fast_rcar[14]?)
drivers/net/ethernet/renesas/sh_eth.c:182:13: warning: initialized field overwritten [-Woverride-init]
182 | [RMFCR] = 0x0240,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:182:13: note: (near initialization for ?sh_eth_offset_fast_rcar[15]?)
drivers/net/ethernet/renesas/sh_eth.c:183:12: warning: initialized field overwritten [-Woverride-init]
183 | [TFTR] = 0x0248,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:183:12: note: (near initialization for ?sh_eth_offset_fast_rcar[16]?)
drivers/net/ethernet/renesas/sh_eth.c:184:11: warning: initialized field overwritten [-Woverride-init]
184 | [FDR] = 0x0250,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:184:11: note: (near initialization for ?sh_eth_offset_fast_rcar[17]?)
drivers/net/ethernet/renesas/sh_eth.c:185:12: warning: initialized field overwritten [-Woverride-init]
185 | [RMCR] = 0x0258,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:185:12: note: (near initialization for ?sh_eth_offset_fast_rcar[18]?)
drivers/net/ethernet/renesas/sh_eth.c:186:13: warning: initialized field overwritten [-Woverride-init]
186 | [TFUCR] = 0x0264,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:186:13: note: (near initialization for ?sh_eth_offset_fast_rcar[20]?)
drivers/net/ethernet/renesas/sh_eth.c:187:13: warning: initialized field overwritten [-Woverride-init]
187 | [RFOCR] = 0x0268,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:187:13: note: (near initialization for ?sh_eth_offset_fast_rcar[21]?)
drivers/net/ethernet/renesas/sh_eth.c:188:20: warning: initialized field overwritten [-Woverride-init]
188 | [RMIIMODE] = 0x026c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:188:20: note: (near initialization for ?sh_eth_offset_fast_rcar[22]?)
drivers/net/ethernet/renesas/sh_eth.c:189:13: warning: initialized field overwritten [-Woverride-init]
189 | [FCFTR] = 0x0270,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:189:13: note: (near initialization for ?sh_eth_offset_fast_rcar[23]?)
drivers/net/ethernet/renesas/sh_eth.c:190:13: warning: initialized field overwritten [-Woverride-init]
190 | [TRIMD] = 0x027c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:190:13: note: (near initialization for ?sh_eth_offset_fast_rcar[25]?)
drivers/net/ethernet/renesas/sh_eth.c:196:12: warning: initialized field overwritten [-Woverride-init]
196 | [ECMR] = 0x0100,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:196:12: note: (near initialization for ?sh_eth_offset_fast_sh4[28]?)
drivers/net/ethernet/renesas/sh_eth.c:197:12: warning: initialized field overwritten [-Woverride-init]
197 | [RFLR] = 0x0108,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:197:12: note: (near initialization for ?sh_eth_offset_fast_sh4[35]?)
drivers/net/ethernet/renesas/sh_eth.c:198:12: warning: initialized field overwritten [-Woverride-init]
198 | [ECSR] = 0x0110,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:198:12: note: (near initialization for ?sh_eth_offset_fast_sh4[29]?)
drivers/net/ethernet/renesas/sh_eth.c:199:13: warning: initialized field overwritten [-Woverride-init]
199 | [ECSIPR] = 0x0118,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:199:13: note: (near initialization for ?sh_eth_offset_fast_sh4[30]?)
drivers/net/ethernet/renesas/sh_eth.c:200:11: warning: initialized field overwritten [-Woverride-init]
200 | [PIR] = 0x0120,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:200:11: note: (near initialization for ?sh_eth_offset_fast_sh4[31]?)
drivers/net/ethernet/renesas/sh_eth.c:201:11: warning: initialized field overwritten [-Woverride-init]
201 | [PSR] = 0x0128,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:201:11: note: (near initialization for ?sh_eth_offset_fast_sh4[32]?)
drivers/net/ethernet/renesas/sh_eth.c:202:13: warning: initialized field overwritten [-Woverride-init]
202 | [RDMLR] = 0x0140,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:202:13: note: (near initialization for ?sh_eth_offset_fast_sh4[33]?)
drivers/net/ethernet/renesas/sh_eth.c:203:12: warning: initialized field overwritten [-Woverride-init]
203 | [IPGR] = 0x0150,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:203:12: note: (near initialization for ?sh_eth_offset_fast_sh4[36]?)
drivers/net/ethernet/renesas/sh_eth.c:204:11: warning: initialized field overwritten [-Woverride-init]
204 | [APR] = 0x0154,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:204:11: note: (near initialization for ?sh_eth_offset_fast_sh4[37]?)
drivers/net/ethernet/renesas/sh_eth.c:205:11: warning: initialized field overwritten [-Woverride-init]
205 | [MPR] = 0x0158,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:205:11: note: (near initialization for ?sh_eth_offset_fast_sh4[38]?)
drivers/net/ethernet/renesas/sh_eth.c:206:14: warning: initialized field overwritten [-Woverride-init]
206 | [TPAUSER] = 0x0164,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:206:14: note: (near initialization for ?sh_eth_offset_fast_sh4[43]?)
drivers/net/ethernet/renesas/sh_eth.c:207:12: warning: initialized field overwritten [-Woverride-init]
207 | [RFCF] = 0x0160,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:207:12: note: (near initialization for ?sh_eth_offset_fast_sh4[42]?)
drivers/net/ethernet/renesas/sh_eth.c:208:15: warning: initialized field overwritten [-Woverride-init]
208 | [TPAUSECR] = 0x0168,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:208:15: note: (near initialization for ?sh_eth_offset_fast_sh4[44]?)
drivers/net/ethernet/renesas/sh_eth.c:209:13: warning: initialized field overwritten [-Woverride-init]
209 | [BCFRR] = 0x016c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:209:13: note: (near initialization for ?sh_eth_offset_fast_sh4[46]?)
drivers/net/ethernet/renesas/sh_eth.c:210:12: warning: initialized field overwritten [-Woverride-init]
210 | [MAHR] = 0x01c0,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:210:12: note: (near initialization for ?sh_eth_offset_fast_sh4[49]?)
drivers/net/ethernet/renesas/sh_eth.c:211:12: warning: initialized field overwritten [-Woverride-init]
211 | [MALR] = 0x01c8,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:211:12: note: (near initialization for ?sh_eth_offset_fast_sh4[50]?)
drivers/net/ethernet/renesas/sh_eth.c:212:13: warning: initialized field overwritten [-Woverride-init]
212 | [TROCR] = 0x01d0,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:212:13: note: (near initialization for ?sh_eth_offset_fast_sh4[51]?)
drivers/net/ethernet/renesas/sh_eth.c:213:12: warning: initialized field overwritten [-Woverride-init]
213 | [CDCR] = 0x01d4,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:213:12: note: (near initialization for ?sh_eth_offset_fast_sh4[52]?)
drivers/net/ethernet/renesas/sh_eth.c:214:12: warning: initialized field overwritten [-Woverride-init]
214 | [LCCR] = 0x01d8,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:214:12: note: (near initialization for ?sh_eth_offset_fast_sh4[53]?)
drivers/net/ethernet/renesas/sh_eth.c:215:13: warning: initialized field overwritten [-Woverride-init]
215 | [CNDCR] = 0x01dc,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:215:13: note: (near initialization for ?sh_eth_offset_fast_sh4[54]?)
drivers/net/ethernet/renesas/sh_eth.c:216:13: warning: initialized field overwritten [-Woverride-init]
216 | [CEFCR] = 0x01e4,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:216:13: note: (near initialization for ?sh_eth_offset_fast_sh4[55]?)
drivers/net/ethernet/renesas/sh_eth.c:217:13: warning: initialized field overwritten [-Woverride-init]
217 | [FRECR] = 0x01e8,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:217:13: note: (near initialization for ?sh_eth_offset_fast_sh4[56]?)
drivers/net/ethernet/renesas/sh_eth.c:218:13: warning: initialized field overwritten [-Woverride-init]
218 | [TSFRCR] = 0x01ec,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:218:13: note: (near initialization for ?sh_eth_offset_fast_sh4[57]?)
drivers/net/ethernet/renesas/sh_eth.c:219:13: warning: initialized field overwritten [-Woverride-init]
219 | [TLFRCR] = 0x01f0,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:219:13: note: (near initialization for ?sh_eth_offset_fast_sh4[58]?)
drivers/net/ethernet/renesas/sh_eth.c:220:12: warning: initialized field overwritten [-Woverride-init]
220 | [RFCR] = 0x01f4,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:220:12: note: (near initialization for ?sh_eth_offset_fast_sh4[41]?)
drivers/net/ethernet/renesas/sh_eth.c:221:13: warning: initialized field overwritten [-Woverride-init]
221 | [MAFCR] = 0x01f8,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:221:13: note: (near initialization for ?sh_eth_offset_fast_sh4[61]?)
drivers/net/ethernet/renesas/sh_eth.c:222:13: warning: initialized field overwritten [-Woverride-init]
222 | [RTRATE] = 0x01fc,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:222:13: note: (near initialization for ?sh_eth_offset_fast_sh4[62]?)
drivers/net/ethernet/renesas/sh_eth.c:224:12: warning: initialized field overwritten [-Woverride-init]
224 | [EDMR] = 0x0000,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:224:12: note: (near initialization for ?sh_eth_offset_fast_sh4[1]?)
drivers/net/ethernet/renesas/sh_eth.c:225:13: warning: initialized field overwritten [-Woverride-init]
225 | [EDTRR] = 0x0008,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:225:13: note: (near initialization for ?sh_eth_offset_fast_sh4[2]?)
drivers/net/ethernet/renesas/sh_eth.c:226:13: warning: initialized field overwritten [-Woverride-init]
226 | [EDRRR] = 0x0010,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:226:13: note: (near initialization for ?sh_eth_offset_fast_sh4[3]?)
drivers/net/ethernet/renesas/sh_eth.c:227:13: warning: initialized field overwritten [-Woverride-init]
227 | [TDLAR] = 0x0018,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:227:13: note: (near initialization for ?sh_eth_offset_fast_sh4[6]?)
drivers/net/ethernet/renesas/sh_eth.c:228:13: warning: initialized field overwritten [-Woverride-init]
228 | [RDLAR] = 0x0020,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:228:13: note: (near initialization for ?sh_eth_offset_fast_sh4[10]?)
drivers/net/ethernet/renesas/sh_eth.c:229:12: warning: initialized field overwritten [-Woverride-init]
229 | [EESR] = 0x0028,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:229:12: note: (near initialization for ?sh_eth_offset_fast_sh4[4]?)
drivers/net/ethernet/renesas/sh_eth.c:230:13: warning: initialized field overwritten [-Woverride-init]
230 | [EESIPR] = 0x0030,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:230:13: note: (near initialization for ?sh_eth_offset_fast_sh4[5]?)
drivers/net/ethernet/renesas/sh_eth.c:231:13: warning: initialized field overwritten [-Woverride-init]
231 | [TRSCER] = 0x0038,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:231:13: note: (near initialization for ?sh_eth_offset_fast_sh4[14]?)
drivers/net/ethernet/renesas/sh_eth.c:232:13: warning: initialized field overwritten [-Woverride-init]
232 | [RMFCR] = 0x0040,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:232:13: note: (near initialization for ?sh_eth_offset_fast_sh4[15]?)
drivers/net/ethernet/renesas/sh_eth.c:233:12: warning: initialized field overwritten [-Woverride-init]
233 | [TFTR] = 0x0048,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:233:12: note: (near initialization for ?sh_eth_offset_fast_sh4[16]?)
drivers/net/ethernet/renesas/sh_eth.c:234:11: warning: initialized field overwritten [-Woverride-init]
234 | [FDR] = 0x0050,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:234:11: note: (near initialization for ?sh_eth_offset_fast_sh4[17]?)
drivers/net/ethernet/renesas/sh_eth.c:235:12: warning: initialized field overwritten [-Woverride-init]
235 | [RMCR] = 0x0058,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:235:12: note: (near initialization for ?sh_eth_offset_fast_sh4[18]?)
drivers/net/ethernet/renesas/sh_eth.c:236:13: warning: initialized field overwritten [-Woverride-init]
236 | [TFUCR] = 0x0064,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:236:13: note: (near initialization for ?sh_eth_offset_fast_sh4[20]?)
drivers/net/ethernet/renesas/sh_eth.c:237:13: warning: initialized field overwritten [-Woverride-init]
237 | [RFOCR] = 0x0068,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:237:13: note: (near initialization for ?sh_eth_offset_fast_sh4[21]?)
drivers/net/ethernet/renesas/sh_eth.c:238:13: warning: initialized field overwritten [-Woverride-init]
238 | [FCFTR] = 0x0070,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:238:13: note: (near initialization for ?sh_eth_offset_fast_sh4[23]?)
drivers/net/ethernet/renesas/sh_eth.c:239:13: warning: initialized field overwritten [-Woverride-init]
239 | [RPADIR] = 0x0078,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:239:13: note: (near initialization for ?sh_eth_offset_fast_sh4[24]?)
drivers/net/ethernet/renesas/sh_eth.c:240:13: warning: initialized field overwritten [-Woverride-init]
240 | [TRIMD] = 0x007c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:240:13: note: (near initialization for ?sh_eth_offset_fast_sh4[25]?)
drivers/net/ethernet/renesas/sh_eth.c:241:13: warning: initialized field overwritten [-Woverride-init]
241 | [RBWAR] = 0x00c8,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:241:13: note: (near initialization for ?sh_eth_offset_fast_sh4[26]?)
drivers/net/ethernet/renesas/sh_eth.c:242:13: warning: initialized field overwritten [-Woverride-init]
242 | [RDFAR] = 0x00cc,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:242:13: note: (near initialization for ?sh_eth_offset_fast_sh4[11]?)
drivers/net/ethernet/renesas/sh_eth.c:243:13: warning: initialized field overwritten [-Woverride-init]
243 | [TBRAR] = 0x00d4,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:243:13: note: (near initialization for ?sh_eth_offset_fast_sh4[27]?)
drivers/net/ethernet/renesas/sh_eth.c:244:13: warning: initialized field overwritten [-Woverride-init]
244 | [TDFAR] = 0x00d8,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:244:13: note: (near initialization for ?sh_eth_offset_fast_sh4[7]?)
drivers/net/ethernet/renesas/sh_eth.c:250:12: warning: initialized field overwritten [-Woverride-init]
250 | [EDMR] = 0x0000,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:250:12: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[1]?)
drivers/net/ethernet/renesas/sh_eth.c:251:13: warning: initialized field overwritten [-Woverride-init]
251 | [EDTRR] = 0x0004,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:251:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[2]?)
drivers/net/ethernet/renesas/sh_eth.c:252:13: warning: initialized field overwritten [-Woverride-init]
252 | [EDRRR] = 0x0008,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:252:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[3]?)
drivers/net/ethernet/renesas/sh_eth.c:253:13: warning: initialized field overwritten [-Woverride-init]
253 | [TDLAR] = 0x000c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:253:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[6]?)
drivers/net/ethernet/renesas/sh_eth.c:254:13: warning: initialized field overwritten [-Woverride-init]
254 | [RDLAR] = 0x0010,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:254:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[10]?)
drivers/net/ethernet/renesas/sh_eth.c:255:12: warning: initialized field overwritten [-Woverride-init]
255 | [EESR] = 0x0014,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:255:12: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[4]?)
drivers/net/ethernet/renesas/sh_eth.c:256:13: warning: initialized field overwritten [-Woverride-init]
256 | [EESIPR] = 0x0018,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:256:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[5]?)
drivers/net/ethernet/renesas/sh_eth.c:257:13: warning: initialized field overwritten [-Woverride-init]
257 | [TRSCER] = 0x001c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:257:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[14]?)
drivers/net/ethernet/renesas/sh_eth.c:258:13: warning: initialized field overwritten [-Woverride-init]
258 | [RMFCR] = 0x0020,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:258:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[15]?)
drivers/net/ethernet/renesas/sh_eth.c:259:12: warning: initialized field overwritten [-Woverride-init]
259 | [TFTR] = 0x0024,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:259:12: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[16]?)
drivers/net/ethernet/renesas/sh_eth.c:260:11: warning: initialized field overwritten [-Woverride-init]
260 | [FDR] = 0x0028,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:260:11: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[17]?)
drivers/net/ethernet/renesas/sh_eth.c:261:12: warning: initialized field overwritten [-Woverride-init]
261 | [RMCR] = 0x002c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:261:12: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[18]?)
drivers/net/ethernet/renesas/sh_eth.c:262:13: warning: initialized field overwritten [-Woverride-init]
262 | [EDOCR] = 0x0030,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:262:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[19]?)
drivers/net/ethernet/renesas/sh_eth.c:263:13: warning: initialized field overwritten [-Woverride-init]
263 | [FCFTR] = 0x0034,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:263:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[23]?)
drivers/net/ethernet/renesas/sh_eth.c:264:13: warning: initialized field overwritten [-Woverride-init]
264 | [RPADIR] = 0x0038,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:264:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[24]?)
drivers/net/ethernet/renesas/sh_eth.c:265:13: warning: initialized field overwritten [-Woverride-init]
265 | [TRIMD] = 0x003c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:265:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[25]?)
drivers/net/ethernet/renesas/sh_eth.c:266:13: warning: initialized field overwritten [-Woverride-init]
266 | [RBWAR] = 0x0040,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:266:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[26]?)
drivers/net/ethernet/renesas/sh_eth.c:267:13: warning: initialized field overwritten [-Woverride-init]
267 | [RDFAR] = 0x0044,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:267:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[11]?)
drivers/net/ethernet/renesas/sh_eth.c:268:13: warning: initialized field overwritten [-Woverride-init]
268 | [TBRAR] = 0x004c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:268:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[27]?)
drivers/net/ethernet/renesas/sh_eth.c:269:13: warning: initialized field overwritten [-Woverride-init]
269 | [TDFAR] = 0x0050,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:269:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[7]?)
drivers/net/ethernet/renesas/sh_eth.c:271:12: warning: initialized field overwritten [-Woverride-init]
271 | [ECMR] = 0x0160,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:271:12: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[28]?)
drivers/net/ethernet/renesas/sh_eth.c:272:12: warning: initialized field overwritten [-Woverride-init]
272 | [ECSR] = 0x0164,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:272:12: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[29]?)
drivers/net/ethernet/renesas/sh_eth.c:273:13: warning: initialized field overwritten [-Woverride-init]
273 | [ECSIPR] = 0x0168,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:273:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[30]?)
drivers/net/ethernet/renesas/sh_eth.c:274:11: warning: initialized field overwritten [-Woverride-init]
274 | [PIR] = 0x016c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:274:11: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[31]?)
drivers/net/ethernet/renesas/sh_eth.c:275:12: warning: initialized field overwritten [-Woverride-init]
275 | [MAHR] = 0x0170,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:275:12: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[49]?)
drivers/net/ethernet/renesas/sh_eth.c:276:12: warning: initialized field overwritten [-Woverride-init]
276 | [MALR] = 0x0174,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:276:12: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[50]?)
drivers/net/ethernet/renesas/sh_eth.c:277:12: warning: initialized field overwritten [-Woverride-init]
277 | [RFLR] = 0x0178,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:277:12: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[35]?)
drivers/net/ethernet/renesas/sh_eth.c:278:11: warning: initialized field overwritten [-Woverride-init]
278 | [PSR] = 0x017c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:278:11: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[32]?)
drivers/net/ethernet/renesas/sh_eth.c:279:13: warning: initialized field overwritten [-Woverride-init]
279 | [TROCR] = 0x0180,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:279:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[51]?)
drivers/net/ethernet/renesas/sh_eth.c:280:12: warning: initialized field overwritten [-Woverride-init]
280 | [CDCR] = 0x0184,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:280:12: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[52]?)
drivers/net/ethernet/renesas/sh_eth.c:281:12: warning: initialized field overwritten [-Woverride-init]
281 | [LCCR] = 0x0188,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:281:12: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[53]?)
drivers/net/ethernet/renesas/sh_eth.c:282:13: warning: initialized field overwritten [-Woverride-init]
282 | [CNDCR] = 0x018c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:282:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[54]?)
drivers/net/ethernet/renesas/sh_eth.c:283:13: warning: initialized field overwritten [-Woverride-init]
283 | [CEFCR] = 0x0194,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:283:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[55]?)
drivers/net/ethernet/renesas/sh_eth.c:284:13: warning: initialized field overwritten [-Woverride-init]
284 | [FRECR] = 0x0198,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:284:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[56]?)
drivers/net/ethernet/renesas/sh_eth.c:285:13: warning: initialized field overwritten [-Woverride-init]
285 | [TSFRCR] = 0x019c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:285:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[57]?)
drivers/net/ethernet/renesas/sh_eth.c:286:13: warning: initialized field overwritten [-Woverride-init]
286 | [TLFRCR] = 0x01a0,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:286:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[58]?)
drivers/net/ethernet/renesas/sh_eth.c:287:12: warning: initialized field overwritten [-Woverride-init]
287 | [RFCR] = 0x01a4,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:287:12: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[41]?)
drivers/net/ethernet/renesas/sh_eth.c:288:13: warning: initialized field overwritten [-Woverride-init]
288 | [MAFCR] = 0x01a8,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:288:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[61]?)
drivers/net/ethernet/renesas/sh_eth.c:289:12: warning: initialized field overwritten [-Woverride-init]
289 | [IPGR] = 0x01b4,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:289:12: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[36]?)
drivers/net/ethernet/renesas/sh_eth.c:290:11: warning: initialized field overwritten [-Woverride-init]
290 | [APR] = 0x01b8,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:290:11: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[37]?)
drivers/net/ethernet/renesas/sh_eth.c:291:11: warning: initialized field overwritten [-Woverride-init]
291 | [MPR] = 0x01bc,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:291:11: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[38]?)
drivers/net/ethernet/renesas/sh_eth.c:292:14: warning: initialized field overwritten [-Woverride-init]
292 | [TPAUSER] = 0x01c4,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:292:14: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[43]?)
drivers/net/ethernet/renesas/sh_eth.c:293:12: warning: initialized field overwritten [-Woverride-init]
293 | [BCFR] = 0x01cc,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:293:12: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[45]?)
drivers/net/ethernet/renesas/sh_eth.c:295:13: warning: initialized field overwritten [-Woverride-init]
295 | [ARSTR] = 0x0000,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:295:13: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[65]?)
drivers/net/ethernet/renesas/sh_eth.c:296:16: warning: initialized field overwritten [-Woverride-init]
296 | [TSU_CTRST] = 0x0004,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:296:16: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[66]?)
drivers/net/ethernet/renesas/sh_eth.c:297:16: warning: initialized field overwritten [-Woverride-init]
297 | [TSU_FWEN0] = 0x0010,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:297:16: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[67]?)
drivers/net/ethernet/renesas/sh_eth.c:298:16: warning: initialized field overwritten [-Woverride-init]
298 | [TSU_FWEN1] = 0x0014,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:298:16: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[68]?)
drivers/net/ethernet/renesas/sh_eth.c:299:14: warning: initialized field overwritten [-Woverride-init]
299 | [TSU_FCM] = 0x0018,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:299:14: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[69]?)
drivers/net/ethernet/renesas/sh_eth.c:300:17: warning: initialized field overwritten [-Woverride-init]
300 | [TSU_BSYSL0] = 0x0020,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:300:17: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[70]?)
drivers/net/ethernet/renesas/sh_eth.c:301:17: warning: initialized field overwritten [-Woverride-init]
301 | [TSU_BSYSL1] = 0x0024,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:301:17: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[71]?)
drivers/net/ethernet/renesas/sh_eth.c:302:17: warning: initialized field overwritten [-Woverride-init]
302 | [TSU_PRISL0] = 0x0028,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:302:17: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[72]?)
drivers/net/ethernet/renesas/sh_eth.c:303:17: warning: initialized field overwritten [-Woverride-init]
303 | [TSU_PRISL1] = 0x002c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:303:17: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[73]?)
drivers/net/ethernet/renesas/sh_eth.c:304:16: warning: initialized field overwritten [-Woverride-init]
304 | [TSU_FWSL0] = 0x0030,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:304:16: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[74]?)
drivers/net/ethernet/renesas/sh_eth.c:305:16: warning: initialized field overwritten [-Woverride-init]
305 | [TSU_FWSL1] = 0x0034,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:305:16: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[75]?)
drivers/net/ethernet/renesas/sh_eth.c:306:16: warning: initialized field overwritten [-Woverride-init]
306 | [TSU_FWSLC] = 0x0038,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:306:16: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[76]?)
drivers/net/ethernet/renesas/sh_eth.c:307:17: warning: initialized field overwritten [-Woverride-init]
307 | [TSU_QTAGM0] = 0x0040,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:307:17: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[79]?)
drivers/net/ethernet/renesas/sh_eth.c:308:17: warning: initialized field overwritten [-Woverride-init]
308 | [TSU_QTAGM1] = 0x0044,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:308:17: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[80]?)
drivers/net/ethernet/renesas/sh_eth.c:309:16: warning: initialized field overwritten [-Woverride-init]
309 | [TSU_ADQT0] = 0x0048,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:309:16: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[83]?)
drivers/net/ethernet/renesas/sh_eth.c:310:16: warning: initialized field overwritten [-Woverride-init]
310 | [TSU_ADQT1] = 0x004c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:310:16: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[84]?)
drivers/net/ethernet/renesas/sh_eth.c:311:15: warning: initialized field overwritten [-Woverride-init]
311 | [TSU_FWSR] = 0x0050,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:311:15: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[81]?)
drivers/net/ethernet/renesas/sh_eth.c:312:17: warning: initialized field overwritten [-Woverride-init]
312 | [TSU_FWINMK] = 0x0054,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:312:17: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[82]?)
drivers/net/ethernet/renesas/sh_eth.c:313:17: warning: initialized field overwritten [-Woverride-init]
313 | [TSU_ADSBSY] = 0x0060,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:313:17: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[87]?)
drivers/net/ethernet/renesas/sh_eth.c:314:14: warning: initialized field overwritten [-Woverride-init]
314 | [TSU_TEN] = 0x0064,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:314:14: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[88]?)
drivers/net/ethernet/renesas/sh_eth.c:315:16: warning: initialized field overwritten [-Woverride-init]
315 | [TSU_POST1] = 0x0070,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:315:16: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[89]?)
drivers/net/ethernet/renesas/sh_eth.c:316:16: warning: initialized field overwritten [-Woverride-init]
316 | [TSU_POST2] = 0x0074,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:316:16: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[90]?)
drivers/net/ethernet/renesas/sh_eth.c:317:16: warning: initialized field overwritten [-Woverride-init]
317 | [TSU_POST3] = 0x0078,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:317:16: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[91]?)
drivers/net/ethernet/renesas/sh_eth.c:318:16: warning: initialized field overwritten [-Woverride-init]
318 | [TSU_POST4] = 0x007c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:318:16: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[92]?)
drivers/net/ethernet/renesas/sh_eth.c:320:14: warning: initialized field overwritten [-Woverride-init]
320 | [TXNLCR0] = 0x0080,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:320:14: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[94]?)
drivers/net/ethernet/renesas/sh_eth.c:321:14: warning: initialized field overwritten [-Woverride-init]
321 | [TXALCR0] = 0x0084,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:321:14: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[95]?)
drivers/net/ethernet/renesas/sh_eth.c:322:14: warning: initialized field overwritten [-Woverride-init]
322 | [RXNLCR0] = 0x0088,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:322:14: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[96]?)
drivers/net/ethernet/renesas/sh_eth.c:323:14: warning: initialized field overwritten [-Woverride-init]
323 | [RXALCR0] = 0x008c,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:323:14: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[97]?)
drivers/net/ethernet/renesas/sh_eth.c:324:14: warning: initialized field overwritten [-Woverride-init]
324 | [FWNLCR0] = 0x0090,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:324:14: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[98]?)
drivers/net/ethernet/renesas/sh_eth.c:325:14: warning: initialized field overwritten [-Woverride-init]
325 | [FWALCR0] = 0x0094,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:325:14: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[99]?)
drivers/net/ethernet/renesas/sh_eth.c:326:14: warning: initialized field overwritten [-Woverride-init]
326 | [TXNLCR1] = 0x00a0,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:326:14: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[100]?)
drivers/net/ethernet/renesas/sh_eth.c:327:14: warning: initialized field overwritten [-Woverride-init]
327 | [TXALCR1] = 0x00a4,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:327:14: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[101]?)
drivers/net/ethernet/renesas/sh_eth.c:328:14: warning: initialized field overwritten [-Woverride-init]
328 | [RXNLCR1] = 0x00a8,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:328:14: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[102]?)
drivers/net/ethernet/renesas/sh_eth.c:329:14: warning: initialized field overwritten [-Woverride-init]
329 | [RXALCR1] = 0x00ac,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:329:14: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[103]?)
drivers/net/ethernet/renesas/sh_eth.c:330:14: warning: initialized field overwritten [-Woverride-init]
330 | [FWNLCR1] = 0x00b0,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:330:14: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[104]?)
drivers/net/ethernet/renesas/sh_eth.c:331:14: warning: initialized field overwritten [-Woverride-init]
331 | [FWALCR1] = 0x00b4,
| ^~~~~~
drivers/net/ethernet/renesas/sh_eth.c:331:14: note: (near initialization for ?sh_eth_offset_fast_sh3_sh2[105]?)
drivers/net/ethernet/renesas/sh_eth.c:333:16: warning: initialized field overwritten [-Woverride-init]
333 | [TSU_ADRH0] = 0x0100,
| ^~~~~~
---
drivers/net/ethernet/renesas/sh_eth.c | 10 ++++++++++
1 file changed, 10 insertions(+)drivers/net/ethernet/renesas/sh_eth.c +10 -0
@@ -45,6 +45,15 @@#define SH_ETH_OFFSET_DEFAULTS \ [0 ... SH_ETH_MAX_REGISTER_OFFSET - 1] = SH_ETH_OFFSET_INVALID +/* use some intentionally tricky logic here to initialize the whole struct to +* 0xffff, but then override certain fields, requiring us to indicate that we +* "know" that there are overrides in this structure, and we'll need to disable +* that warning from W=1 builds. GCC has supported this option since 4.2.X, but +* the macros available to do this only define GCC 8. +*/ +__diag_push (); +__diag_ignore (GCC ,8 ,"-Woverride-init" , +"logic to initialize all and then override some is OK" );static const u16 sh_eth_offset_gigabit[SH_ETH_MAX_REGISTER_OFFSET ] = {SH_ETH_OFFSET_DEFAULTS ,
@@ -332,6 +341,7 @@ static const u16 sh_eth_offset_fast_sh3_sh2[SH_ETH_MAX_REGISTER_OFFSET] = { [TSU_ADRH0 ] =0x0100 , }; +__diag_pop ();static void sh_eth_rcv_snd_disable (struct net_device *ndev);static struct net_device_stats *sh_eth_get_stats (struct net_device *ndev);
Signature · 1 line
2.25.4
PATCH v3 6/9 drivers/net/ethernet: add some basic kdoc tags
In reply to Jesse BrandeburgFrom: Jesse Brandeburg <[email protected]>
A couple of drivers had a "generic documentation" section that would trigger a "can't understand" message from W=1 compiles.
Fix by using correct DOC: tags in the generic sections.
Fixed Warnings:drivers/net/ethernet/arc/emac_arc.c:4: info: Scanning doc for c drivers/net/ethernet/cadence/macb_pci.c:3: warning: missing initial short description on line:
* Cadence GEM PCI wrapper.drivers/net/ethernet/cadence/macb_pci.c:3: info: Scanning doc for Cadence
---
v3: add some warning detail
v2: first non-rfc version
--- drivers/net/ethernet/arc/emac_arc.c | 2 +- drivers/net/ethernet/cadence/macb_pci.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/arc/emac_arc.c +1 -1
@@ -1,6 +1,6 @@// SPDX-License-Identifier: GPL-2.0-or-later /** -* emac_arc.c - ARC EMAC specific glue layer +* DOC: emac_arc.c - ARC EMAC specific glue layer * * Copyright (C) 2014 Romain Perier *
drivers/net/ethernet/cadence/macb_pci.c +1 -1
@@ -1,6 +1,6 @@// SPDX-License-Identifier: GPL-2.0-only /** -* Cadence GEM PCI wrapper. +* DOC: Cadence GEM PCI wrapper. * * Copyright (C) 2016 Cadence Design Systems - https://www.cadence.com *
Signature · 1 line
2.25.4
PATCH v3 7/9 drivers/net/ethernet: remove incorrectly formatted doc
In reply to Jesse BrandeburgFrom: Jesse Brandeburg <[email protected]>
As part of the W=1 series for ethernet, these drivers were discovered to be using kdoc style comments but were not actually doing kdoc. The kernel uses kdoc style when documenting code, not doxygen or other styles.
Fixed Warnings:drivers/net/ethernet/amazon/ena/ena_com.c:613: warning: Function parameter or member 'ena_dev' not described in 'ena_com_set_llq' drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c:1540: warning: Cannot understand * @brief Set VLAN filter table drivers/net/ethernet/xilinx/ll_temac_main.c:114: warning: Function parameter or member 'lp' not described in 'temac_indirect_busywait' drivers/net/ethernet/xilinx/ll_temac_main.c:129: warning: Function parameter or member 'lp' not described in 'temac_indirect_in32' drivers/net/ethernet/xilinx/ll_temac_main.c:129: warning: Function parameter or member 'reg' not described in 'temac_indirect_in32' drivers/net/ethernet/xilinx/ll_temac_main.c:147: warning: Function parameter or member 'lp' not described in 'temac_indirect_in32_locked' drivers/net/ethernet/xilinx/ll_temac_main.c:147: warning: Function parameter or member 'reg' not described in 'temac_indirect_in32_locked' drivers/net/ethernet/xilinx/ll_temac_main.c:172: warning: Function parameter or member 'lp' not described in 'temac_indirect_out32' drivers/net/ethernet/xilinx/ll_temac_main.c:172: warning: Function parameter or member 'reg' not described in 'temac_indirect_out32' drivers/net/ethernet/xilinx/ll_temac_main.c:172: warning: Function parameter or member 'value' not described in 'temac_indirect_out32' drivers/net/ethernet/xilinx/ll_temac_main.c:188: warning: Function parameter or member 'lp' not described in 'temac_indirect_out32_locked' drivers/net/ethernet/xilinx/ll_temac_main.c:188: warning: Function parameter or member 'reg' not described in 'temac_indirect_out32_locked' drivers/net/ethernet/xilinx/ll_temac_main.c:188: warning: Function parameter or member 'value' not described in 'temac_indirect_out32_locked' drivers/net/ethernet/xilinx/ll_temac_main.c:212: warning: Function parameter or member 'lp' not described in 'temac_dma_in32_be' drivers/net/ethernet/xilinx/ll_temac_main.c:212: warning: Function parameter or member 'reg' not described in 'temac_dma_in32_be' drivers/net/ethernet/xilinx/ll_temac_main.c:228: warning: Function parameter or member 'lp' not described in 'temac_dma_out32_be' drivers/net/ethernet/xilinx/ll_temac_main.c:228: warning: Function parameter or member 'reg' not described in 'temac_dma_out32_be' drivers/net/ethernet/xilinx/ll_temac_main.c:228: warning: Function parameter or member 'value' not described in 'temac_dma_out32_be' drivers/net/ethernet/xilinx/ll_temac_main.c:247: warning: Function parameter or member 'lp' not described in 'temac_dma_dcr_in' drivers/net/ethernet/xilinx/ll_temac_main.c:247: warning: Function parameter or member 'reg' not described in 'temac_dma_dcr_in' drivers/net/ethernet/xilinx/ll_temac_main.c:255: warning: Function parameter or member 'lp' not described in 'temac_dma_dcr_out' drivers/net/ethernet/xilinx/ll_temac_main.c:255: warning: Function parameter or member 'reg' not described in 'temac_dma_dcr_out' drivers/net/ethernet/xilinx/ll_temac_main.c:255: warning: Function parameter or member 'value' not described in 'temac_dma_dcr_out' drivers/net/ethernet/xilinx/ll_temac_main.c:265: warning: Function parameter or member 'lp' not described in 'temac_dcr_setup' drivers/net/ethernet/xilinx/ll_temac_main.c:265: warning: Function parameter or member 'op' not described in 'temac_dcr_setup' drivers/net/ethernet/xilinx/ll_temac_main.c:265: warning: Function parameter or member 'np' not described in 'temac_dcr_setup' drivers/net/ethernet/xilinx/ll_temac_main.c:300: warning: Function parameter or member 'ndev' not described in 'temac_dma_bd_release' drivers/net/ethernet/xilinx/ll_temac_main.c:330: warning: Function parameter or member 'ndev' not described in 'temac_dma_bd_init' drivers/net/ethernet/xilinx/ll_temac_main.c:600: warning: Function parameter or member 'ndev' not described in 'temac_setoptions' drivers/net/ethernet/xilinx/ll_temac_main.c:600: warning: Function parameter or member 'options' not described in 'temac_setoptions'
---
v3: added warning detail
v2: first non-rfc version
--- drivers/net/ethernet/amazon/ena/ena_com.c | 2 +- .../aquantia/atlantic/hw_atl/hw_atl_b0.c | 2 +- drivers/net/ethernet/xilinx/ll_temac_main.c | 26 +++++++++---------- 3 files changed, 15 insertions(+), 15 deletions(-)
drivers/net/ethernet/amazon/ena/ena_com.c +1 -1
@@ -579,7 +579,7 @@ static int ena_com_wait_and_process_admin_cq_polling(struct ena_comp_ctx *comp_creturn ret; } -/** +/* * Set the LLQ configurations of the firmware * * The driver provides only the enabled feature values to the device,
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c +1 -1
@@ -1536,7 +1536,7 @@ static int hw_atl_b0_hw_fl2_clear(struct aq_hw_s *self,return aq_hw_err_from_flags (self); } -/** +/* * @brief Set VLAN filter table * @details Configure VLAN filter table to accept (and assign the queue) traffic * for the particular vlan ids.
drivers/net/ethernet/xilinx/ll_temac_main.c +13 -13
@@ -106,7 +106,7 @@ static bool hard_acs_rdy_or_timeout(struct temac_local *lp, ktime_t timeout)*/ #define HARD_ACS_RDY_POLL_NS (20 * NSEC_PER_MSEC) -/** +/* * temac_indirect_busywait - Wait for current indirect register access * to complete. */
@@ -121,7 +121,7 @@ int temac_indirect_busywait(struct temac_local *lp)return 0 ; } -/** +/* * temac_indirect_in32 - Indirect register read access. This function * must be called without lp->indirect_lock being held. */
@@ -136,7 +136,7 @@ u32 temac_indirect_in32(struct temac_local *lp, int reg)return val; } -/** +/* * temac_indirect_in32_locked - Indirect register read access. This * function must be called with lp->indirect_lock being held. Use * this together with spin_lock_irqsave/spin_lock_irqrestore to avoid
@@ -164,7 +164,7 @@ u32 temac_indirect_in32_locked(struct temac_local *lp, int reg)return temac_ior (lp,XTE_LSW0_OFFSET ); } -/** +/* * temac_indirect_out32 - Indirect register write access. This function * must be called without lp->indirect_lock being held. */
@@ -177,7 +177,7 @@ void temac_indirect_out32(struct temac_local *lp, int reg, u32 value)spin_unlock_irqrestore (lp->indirect_lock, flags); } -/** +/* * temac_indirect_out32_locked - Indirect register write access. This * function must be called with lp->indirect_lock being held. Use * this together with spin_lock_irqsave/spin_lock_irqrestore to avoid
@@ -202,7 +202,7 @@ void temac_indirect_out32_locked(struct temac_local *lp, int reg, u32 value)WARN_ON (temac_indirect_busywait (lp)); } -/** +/* * temac_dma_in32_* - Memory mapped DMA read, these function expects a * register input that is based on DCR word addresses which are then * converted to memory mapped byte addresses. To be assigned to
@@ -218,7 +218,7 @@ static u32 temac_dma_in32_le(struct temac_local *lp, int reg)return ioread32 (lp->sdma_regs + (reg <<2 )); } -/** +/* * temac_dma_out32_* - Memory mapped DMA read, these function expects * a register input that is based on DCR word addresses which are then * converted to memory mapped byte addresses. To be assigned to
@@ -240,7 +240,7 @@ static void temac_dma_out32_le(struct temac_local *lp, int reg, u32 value)*/ #ifdef CONFIG_PPC_DCR -/** +/* * temac_dma_dcr_in32 - DCR based DMA read */ static u32 temac_dma_dcr_in (struct temac_local *lp,int reg)
@@ -248,7 +248,7 @@ static u32 temac_dma_dcr_in(struct temac_local *lp, int reg)return dcr_read (lp->sdma_dcrs, reg); } -/** +/* * temac_dma_dcr_out32 - DCR based DMA write */ static void temac_dma_dcr_out (struct temac_local *lp,int reg,u32 value)
@@ -256,7 +256,7 @@ static void temac_dma_dcr_out(struct temac_local *lp, int reg, u32 value)dcr_write (lp->sdma_dcrs, reg, value); } -/** +/* * temac_dcr_setup - If the DMA is DCR based, then setup the address and * I/O functions */
@@ -293,7 +293,7 @@ static int temac_dcr_setup(struct temac_local *lp, struct platform_device *op,#endif -/** +/* * temac_dma_bd_release - Release buffer descriptor rings */ static void temac_dma_bd_release (struct net_device *ndev)
@@ -323,7 +323,7 @@ static void temac_dma_bd_release(struct net_device *ndev) lp->tx_bd_v, lp->tx_bd_p); } -/** +/* * temac_dma_bd_init - Setup buffer descriptor rings */ static int temac_dma_bd_init (struct net_device *ndev)
@@ -593,7 +593,7 @@ static struct temac_option { {} }; -/** +/* * temac_setoptions */ static u32 temac_setoptions (struct net_device *ndev,u32 options)
Signature · 1 line
2.25.4
PATCH v3 8/9 sfc: fix kdoc warning
In reply to Jesse BrandeburgFrom: Jesse Brandeburg <[email protected]>
kernel-doc script as used by W=1, is confused by the macro usage inside the header describing the efx_ptp_data struct.
drivers/net/ethernet/sfc/ptp.c:345: warning: Function parameter or member 'MC_CMD_PTP_IN_TRANSMIT_LENMAX' not described in 'efx_ptp_data'
After some discussion on the list, break this patch out to a separate one, and fix the issue through a creative macro declaration.
---
v3: unchanged, but it should be noted that the kernel-doc script
should be fixed by someone smarter than me, to not complain about the original code.
v2: split this patch out and used custom fix to work around
kernel-doc script.
--- drivers/net/ethernet/sfc/mcdi.h | 1 + drivers/net/ethernet/sfc/ptp.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/sfc/mcdi.h +1 -0
@@ -190,6 +190,7 @@ void efx_mcdi_sensor_event(struct efx_nic *efx, efx_qword_t *ev);* 32-bit-aligned. Also, on Siena we must copy to the MC shared * memory strictly 32 bits at a time, so add any necessary padding. */ +#define MCDI_TX_BUF_LEN (_len) DIV_ROUND_UP((_len), 4)#define _MCDI_DECLARE_BUF (_name, _len) \ efx_dword_t _name[DIV_ROUND_UP(_len, 4)]#define MCDI_DECLARE_BUF (_name, _len) \
drivers/net/ethernet/sfc/ptp.c +1 -1
@@ -326,7 +326,7 @@ struct efx_ptp_data {struct work_struct pps_work;struct workqueue_struct *pps_workwq;bool nic_ts_enabled; -_MCDI_DECLARE_BUF (txbuf,MC_CMD_PTP_IN_TRANSMIT_LENMAX ); +efx_dword_t txbuf[MCDI_TX_BUF_LEN (MC_CMD_PTP_IN_TRANSMIT_LENMAX )];unsigned int good_syncs;unsigned int fast_syncs;
Signature · 1 line
2.25.4
PATCH v3 9/9 drivers/net/ethernet: clean up mis-targeted comments
In reply to Jesse BrandeburgFrom: Jesse Brandeburg <[email protected]>
As part of the W=1 cleanups for ethernet, a million [*] driver comments had to be cleaned up to get the W=1 compilation to succeed. This change finally makes the drivers/net/ethernet tree compile with W=1 set on the command line. NOTE: The kernel uses kdoc style (see Documentation/process/kernel-doc.rst) when documenting code, not doxygen or other styles.
After this patch the x86_64 build has no warnings from W=1, however scripts/kernel-doc says there are 1545 more warnings in source files, that I need to develop a script to fix in a followup patch.
The errors fixed here are all kdoc of a few classes, with a few outliers:
In file included from drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c:10:drivers/net/ethernet/qlogic/netxen/netxen_nic.h:1193:18: warning: ?FW_DUMP_LEVELS? defined but not used [-Wunused-const-variable=]
1193 | static const u32 FW_DUMP_LEVELS[] = { 0x3, 0x7, 0xf, 0x1f, 0x3f, 0x7f, 0xff };
| ^~~~~~~~~~~~~~... repeats 4 times...drivers/net/ethernet/sun/cassini.c:2084:24: warning: suggest braces around empty body in an ?else? statement [-Wempty-body]
2084 | RX_USED_ADD(page, i);drivers/net/ethernet/natsemi/ns83820.c: In function ?phy_intr?:drivers/net/ethernet/natsemi/ns83820.c:603:6: warning: variable ?tbisr? set but not used [-Wunused-but-set-variable]
603 | u32 tbisr, tanar, tanlpar;
| ^~~~~
drivers/net/ethernet/natsemi/ns83820.c: In function ?ns83820_get_link_ksettings?:
drivers/net/ethernet/natsemi/ns83820.c:1207:11: warning: variable ?tanar? set but not used [-Wunused-but-set-variable]
1207 | u32 cfg, tanar, tbicr;
| ^~~~~
drivers/net/ethernet/packetengines/yellowfin.c:1063:18: warning: variable ?yf_size? set but not used [-Wunused-but-set-variable]
1063 | int data_size, yf_size;
| ^~~~~~~Normal kdoc fixes:
warning: Function parameter or member 'x' not described in 'y'
warning: Excess function parameter 'x' description in 'y'
warning: Cannot understand <string> on line <NNN> - I thought it was a doc line
[*] - ok it wasn't quite a million, but it felt like it.
---
Testing Hints: build with W=1 in the drivers/net/ethernet directory, I used:
# yes this first step may be un-necessary, sorry make allyesconfig make allmodconfig make modules_prepare make M=drivers/net/ethernet W=1 modules [optional -j N arguments to the above]
v3: Rebase to latest net-next, absorb/repair some fixes that were accepted
upstream while I was working on this. include detailed warnings, fix extra warnings that popped up in a few files when rebasing.
v2: moved sfc change to separate patch. added note about kernel expecting
kdoc.
Full List of Warnings:drivers/net/ethernet/atheros/atlx/atl1.c:2558: warning: Function parameter or member 't' not described in 'atl1_phy_config' drivers/net/ethernet/atheros/atlx/atl1.c:2558: warning: Excess function parameter 'data' description in 'atl1_phy_config' drivers/net/ethernet/cadence/macb_main.c:466: warning: Function parameter or member 'clk' not described in 'macb_set_tx_clk' drivers/net/ethernet/cadence/macb_main.c:466: warning: Function parameter or member 'speed' not described in 'macb_set_tx_clk' drivers/net/ethernet/cadence/macb_main.c:466: warning: Function parameter or member 'dev' not described in 'macb_set_tx_clk' drivers/net/ethernet/atheros/atl1e/atl1e_main.c:117: warning: Function parameter or member 't' not described in 'atl1e_phy_config' drivers/net/ethernet/atheros/atl1e/atl1e_main.c:117: warning: Excess function parameter 'data' description in 'atl1e_phy_config' drivers/net/ethernet/atheros/atl1e/atl1e_main.c:202: warning: Function parameter or member 'work' not described in 'atl1e_link_chg_task' drivers/net/ethernet/atheros/atl1e/atl1e_main.c:202: warning: Excess function parameter 'netdev' description in 'atl1e_link_chg_task' drivers/net/ethernet/atheros/atl1e/atl1e_main.c:251: warning: Function parameter or member 'txqueue' not described in 'atl1e_tx_timeout' drivers/net/ethernet/atheros/atl1e/atl1e_main.c:1507: warning: Function parameter or member 'napi' not described in 'atl1e_clean' drivers/net/ethernet/atheros/atl1e/atl1e_main.c:1507: warning: Function parameter or member 'budget' not described in 'atl1e_clean' drivers/net/ethernet/atheros/atlx/atl2.c:999: warning: Function parameter or member 'txqueue' not described in 'atl2_tx_timeout' drivers/net/ethernet/atheros/atlx/atl2.c:1011: warning: Function parameter or member 't' not described in 'atl2_watchdog' drivers/net/ethernet/atheros/atlx/atl2.c:1011: warning: Excess function parameter 'data' description in 'atl2_watchdog' drivers/net/ethernet/atheros/atlx/atl2.c:1036: warning: Function parameter or member 't' not described in 'atl2_phy_config' drivers/net/ethernet/atheros/atlx/atl2.c:1036: warning: Excess function parameter 'data' description in 'atl2_phy_config' drivers/net/ethernet/atheros/atlx/atl2.c:1240: warning: Function parameter or member 'work' not described in 'atl2_link_chg_task' drivers/net/ethernet/cavium/liquidio/octeon_console.c:19: warning: Cannot understand * @file octeon_console.c drivers/net/ethernet/cavium/liquidio/octeon_console.c:151: warning: Function parameter or member 'oct' not described in '__cvmx_bootmem_desc_get' drivers/net/ethernet/cavium/liquidio/octeon_console.c:151: warning: Function parameter or member 'base' not described in '__cvmx_bootmem_desc_get' drivers/net/ethernet/cavium/liquidio/octeon_console.c:151: warning: Function parameter or member 'offset' not described in '__cvmx_bootmem_desc_get' drivers/net/ethernet/cavium/liquidio/octeon_console.c:151: warning: Function parameter or member 'size' not described in '__cvmx_bootmem_desc_get' drivers/net/ethernet/cavium/liquidio/octeon_console.c:177: warning: Function parameter or member 'oct' not described in 'CVMX_BOOTMEM_NAMED_GET_NAME' drivers/net/ethernet/cavium/liquidio/octeon_console.c:177: warning: Function parameter or member 'addr' not described in 'CVMX_BOOTMEM_NAMED_GET_NAME' drivers/net/ethernet/cavium/liquidio/octeon_console.c:177: warning: Function parameter or member 'str' not described in 'CVMX_BOOTMEM_NAMED_GET_NAME' drivers/net/ethernet/cavium/liquidio/octeon_console.c:177: warning: Function parameter or member 'len' not described in 'CVMX_BOOTMEM_NAMED_GET_NAME' drivers/net/ethernet/cavium/liquidio/octeon_console.c:197: warning: Function parameter or member 'oct' not described in '__cvmx_bootmem_check_version' drivers/net/ethernet/cavium/liquidio/octeon_console.c:197: warning: Function parameter or member 'exact_match' not described in '__cvmx_bootmem_check_version' drivers/net/ethernet/cavium/liquidio/octeon_console.c:337: warning: Function parameter or member 'oct' not described in 'octeon_named_block_find' drivers/net/ethernet/cavium/liquidio/octeon_console.c:337: warning: Function parameter or member 'name' not described in 'octeon_named_block_find' drivers/net/ethernet/cavium/liquidio/octeon_console.c:337: warning: Function parameter or member 'base_addr' not described in 'octeon_named_block_find' drivers/net/ethernet/cavium/liquidio/octeon_console.c:337: warning: Function parameter or member 'size' not described in 'octeon_named_block_find' drivers/net/ethernet/cavium/liquidio/octeon_console.c:716: warning: Function parameter or member 'oct' not described in 'octeon_remove_consoles' drivers/net/ethernet/atheros/atl1c/atl1c_main.c:210: warning: Function parameter or member 't' not described in 'atl1c_phy_config' drivers/net/ethernet/atheros/atl1c/atl1c_main.c:210: warning: Excess function parameter 'data' description in 'atl1c_phy_config' drivers/net/ethernet/atheros/atl1c/atl1c_main.c:351: warning: Function parameter or member 'txqueue' not described in 'atl1c_tx_timeout' drivers/net/ethernet/atheros/atl1c/atl1c_main.c:852: warning: Function parameter or member 'type' not described in 'atl1c_clean_tx_ring' drivers/net/ethernet/atheros/atl1c/atl1c_main.c:1866: warning: Function parameter or member 'napi' not described in 'atl1c_clean' drivers/net/ethernet/atheros/atl1c/atl1c_main.c:1866: warning: Function parameter or member 'budget' not described in 'atl1c_clean' drivers/net/ethernet/freescale/fman/fman_muram.c:155: warning: Function parameter or member 'muram' not described in 'fman_muram_free_mem' drivers/net/ethernet/freescale/fman/fman_muram.c:155: warning: Function parameter or member 'offset' not described in 'fman_muram_free_mem' drivers/net/ethernet/freescale/fman/fman_muram.c:155: warning: Function parameter or member 'size' not described in 'fman_muram_free_mem' drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c:156: warning: Function parameter or member 'dev' not described in 'link_report' drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c:156: warning: Excess function parameter 'p' description in 'link_report' drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c:315: warning: Function parameter or member 'adap' not described in 't3_os_phymod_changed' drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c:315: warning: Function parameter or member 'port_id' not described in 't3_os_phymod_changed' drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c:315: warning: Excess function parameter 'phy' description in 't3_os_phymod_changed' drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c:315: warning: Excess function parameter 'mod_type' description in 't3_os_phymod_changed' drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c:1212: warning: Function parameter or member 'adap' not described in 'cxgb_up' drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c:1212: warning: Excess function parameter 'adapter' description in 'cxgb_up' drivers/net/ethernet/brocade/bna/bfa_ioc.c:1771: warning: Function parameter or member 'ioc' not described in 'bfa_nw_ioc_fwver_cmp' drivers/net/ethernet/brocade/bna/bfa_ioc.c:1771: warning: Function parameter or member 'fwhdr' not described in 'bfa_nw_ioc_fwver_cmp' drivers/net/ethernet/brocade/bna/bfa_ioc.c:2475: warning: Function parameter or member 'cbfn' not described in 'bfa_nw_ioc_attach' drivers/net/ethernet/brocade/bna/bfa_ioc.c:2508: warning: Function parameter or member 'ioc' not described in 'bfa_nw_ioc_pci_init' drivers/net/ethernet/brocade/bna/bfa_ioc.c:2508: warning: Function parameter or member 'clscode' not described in 'bfa_nw_ioc_pci_init' drivers/net/ethernet/brocade/bna/bfa_ioc.c:2577: warning: Function parameter or member 'ioc' not described in 'bfa_nw_ioc_mem_claim' drivers/net/ethernet/brocade/bna/bfa_ioc.c:2645: warning: Function parameter or member 'cbfn' not described in 'bfa_nw_ioc_mbox_queue' drivers/net/ethernet/brocade/bna/bfa_ioc.c:2645: warning: Function parameter or member 'cbarg' not described in 'bfa_nw_ioc_mbox_queue' drivers/net/ethernet/cortina/gemini.c:92: warning: Function parameter or member 'page' not described in 'gmac_queue_page' drivers/net/ethernet/cortina/gemini.c:92: warning: Function parameter or member 'mapping' not described in 'gmac_queue_page' drivers/net/ethernet/freescale/fman/fman.c:2079: warning: Function parameter or member 'module' not described in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2079: warning: Function parameter or member 'isr_cb' not described in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2079: warning: Function parameter or member 'src_arg' not described in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2079: warning: Excess function parameter 'mod' description in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2079: warning: Excess function parameter 'f_isr' description in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2079: warning: Excess function parameter 'h_src_arg' description in 'fman_register_intr' drivers/net/ethernet/freescale/fman/fman.c:2104: warning: Function parameter or member 'module' not described in 'fman_unregister_intr' drivers/net/ethernet/freescale/fman/fman.c:2104: warning: Excess function parameter 'mod' description in 'fman_unregister_intr' drivers/net/ethernet/freescale/fman/fman.c:2355: warning: Function parameter or member 'fman' not described in 'fman_get_revision' drivers/net/ethernet/freescale/fman/fman.c:2355: warning: Function parameter or member 'rev_info' not described in 'fman_get_revision' drivers/net/ethernet/freescale/fman/fman.c:2520: warning: Function parameter or member 'fm_dev' not described in 'fman_bind' drivers/net/ethernet/freescale/fman/fman.c:2520: warning: Excess function parameter 'dev' description in 'fman_bind' drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c:1352: warning: Function parameter or member 'priv' not described in 'dpaa2_eth_drain_bufs' drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c:1352: warning: Function parameter or member 'count' not described in 'dpaa2_eth_drain_bufs' drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c:851: warning: Function parameter or member 'bp' not described in 'bnx2x_read_pages_regs' drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c:851: warning: Function parameter or member 'p' not described in 'bnx2x_read_pages_regs' drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c:851: warning: Function parameter or member 'preset' not described in 'bnx2x_read_pages_regs' drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c:3569: warning: Function parameter or member 'num_rss' not described in 'bnx2x_change_num_queues' drivers/net/ethernet/freescale/fman/mac.c:372: warning: Function parameter or member 'rx_pause' not described in 'fman_get_pause_cfg' drivers/net/ethernet/freescale/fman/mac.c:372: warning: Function parameter or member 'tx_pause' not described in 'fman_get_pause_cfg' drivers/net/ethernet/freescale/fman/mac.c:372: warning: Excess function parameter 'rx' description in 'fman_get_pause_cfg' drivers/net/ethernet/freescale/fman/mac.c:372: warning: Excess function parameter 'tx' description in 'fman_get_pause_cfg' drivers/net/ethernet/cisco/enic/enic_ethtool.c:30: warning: cannot understand function prototype: 'struct enic_stat ' drivers/net/ethernet/cavium/liquidio/lio_core.c:35: warning: Cannot understand * \brief Delete gather lists drivers/net/ethernet/cavium/liquidio/lio_core.c:76: warning: Cannot understand * \brief Setup gather lists
drivers/net/ethernet/cavium/liquidio/lio_core.c:524: warning: Cannot understand * \brief Setup output queue drivers/net/ethernet/cavium/liquidio/lio_core.c:701: warning: Cannot understand * \brief wrapper for calling napi_schedule drivers/net/ethernet/cavium/liquidio/lio_core.c:714: warning: Cannot understand * \brief callback when receive interrupt occurs and we are in NAPI mode drivers/net/ethernet/cavium/liquidio/lio_core.c:740: warning: Cannot understand * \brief Entry point for NAPI polling drivers/net/ethernet/cavium/liquidio/lio_core.c:795: warning: Cannot understand * \brief Setup input and output queues drivers/net/ethernet/cavium/liquidio/lio_core.c:946: warning: Cannot understand * \brief Droq packet processor sceduler drivers/net/ethernet/cavium/liquidio/lio_core.c:975: warning: Cannot understand * \brief Interrupt handler for octeon
drivers/net/ethernet/cavium/liquidio/lio_core.c:1002: warning: Cannot understand * \brief Setup interrupt for octeon device drivers/net/ethernet/cavium/liquidio/lio_core.c:1200: warning: Cannot understand * \brief Net device change_mtu drivers/net/ethernet/cisco/enic/enic_api.c:31: warning: Function parameter or member 'netdev' not described in 'enic_api_devcmd_proxy_by_index' drivers/net/ethernet/cisco/enic/enic_api.c:31: warning: Function parameter or member 'vf' not described in 'enic_api_devcmd_proxy_by_index' drivers/net/ethernet/cisco/enic/enic_api.c:31: warning: Function parameter or member 'cmd' not described in 'enic_api_devcmd_proxy_by_index' drivers/net/ethernet/cisco/enic/enic_api.c:31: warning: Function parameter or member 'a0' not described in 'enic_api_devcmd_proxy_by_index' drivers/net/ethernet/cisco/enic/enic_api.c:31: warning: Function parameter or member 'a1' not described in 'enic_api_devcmd_proxy_by_index' drivers/net/ethernet/cisco/enic/enic_api.c:31: warning: Function parameter or member 'wait' not described in 'enic_api_devcmd_proxy_by_index' drivers/net/ethernet/brocade/bna/bfa_cee.c:116: warning: Function parameter or member 'cee' not described in 'bfa_cee_reset_stats_isr' drivers/net/ethernet/brocade/bna/bfa_cee.c:116: warning: Function parameter or member 'status' not described in 'bfa_cee_reset_stats_isr' drivers/net/ethernet/brocade/bna/bfa_cee.c:160: warning: Function parameter or member 'attr' not described in 'bfa_nw_cee_get_attr' drivers/net/ethernet/brocade/bna/bfa_cee.c:160: warning: Function parameter or member 'cbfn' not described in 'bfa_nw_cee_get_attr' drivers/net/ethernet/brocade/bna/bfa_cee.c:160: warning: Function parameter or member 'cbarg' not described in 'bfa_nw_cee_get_attr' drivers/net/ethernet/brocade/bna/bfa_cee.c:189: warning: Function parameter or member 'cbarg' not described in 'bfa_cee_isr' drivers/net/ethernet/brocade/bna/bfa_cee.c:189: warning: Function parameter or member 'm' not described in 'bfa_cee_isr' drivers/net/ethernet/brocade/bna/bfa_cee.c:218: warning: Function parameter or member 'arg' not described in 'bfa_cee_notify' drivers/net/ethernet/cavium/liquidio/lio_main.c:72: warning: Cannot understand * \brief determines if a given console has debug enabled.
drivers/net/ethernet/cavium/liquidio/lio_main.c:225: warning: Cannot understand * \brief Forces all IO queues off on a given device drivers/net/ethernet/cavium/liquidio/lio_main.c:241: warning: Cannot understand * \brief Cause device to go quiet so it can be safely removed/reset/etc drivers/net/ethernet/cavium/liquidio/lio_main.c:286: warning: Cannot understand * \brief Cleanup PCI AER uncorrectable error status drivers/net/ethernet/cavium/liquidio/lio_main.c:306: warning: Cannot understand * \brief Stop all PCI IO to a given device drivers/net/ethernet/cavium/liquidio/lio_main.c:335: warning: Cannot understand * \brief called when PCI error is detected drivers/net/ethernet/cavium/liquidio/lio_main.c:365: warning: Cannot understand * \brief mmio handler drivers/net/ethernet/cavium/liquidio/lio_main.c:379: warning: Cannot understand * \brief called after the pci bus has been reset. drivers/net/ethernet/cavium/liquidio/lio_main.c:396: warning: Cannot understand * \brief called when traffic can start flowing again. drivers/net/ethernet/cavium/liquidio/lio_main.c:450: warning: Cannot understand * \brief register PCI driver drivers/net/ethernet/cavium/liquidio/lio_main.c:458: warning: Cannot understand * \brief unregister PCI driver drivers/net/ethernet/cavium/liquidio/lio_main.c:466: warning: Cannot understand * \brief Check Tx queue status, and take appropriate action drivers/net/ethernet/cavium/liquidio/lio_main.c:494: warning: Cannot understand * \brief Print link information drivers/net/ethernet/cavium/liquidio/lio_main.c:516: warning: Cannot understand * \brief Routine to notify MTU change drivers/net/ethernet/cavium/liquidio/lio_main.c:534: warning: Cannot understand * \brief Sets up the mtu status change work drivers/net/ethernet/cavium/liquidio/lio_main.c:566: warning: Cannot understand * \brief Update link status drivers/net/ethernet/cavium/liquidio/lio_main.c:672: warning: Function parameter or member 'netdev' not described in 'setup_sync_octeon_time_wq' drivers/net/ethernet/cavium/liquidio/lio_main.c:699: warning: Function parameter or member 'netdev' not described in 'cleanup_sync_octeon_time_wq' drivers/net/ethernet/cavium/liquidio/lio_main.c:831: warning: Cannot understand * \brief PCI probe handler drivers/net/ethernet/cavium/liquidio/lio_main.c:927: warning: Cannot understand * \brief PCI FLR for each Octeon device. drivers/net/ethernet/cavium/liquidio/lio_main.c:954: warning: Cannot understand *\brief Destroy resources associated with octeon device drivers/net/ethernet/cavium/liquidio/lio_main.c:1155: warning: Cannot understand * \brief Send Rx control command drivers/net/ethernet/cavium/liquidio/lio_main.c:1213: warning: Cannot understand * \brief Destroy NIC device interface drivers/net/ethernet/cavium/liquidio/lio_main.c:1275: warning: Cannot understand * \brief Stop complete NIC functionality drivers/net/ethernet/cavium/liquidio/lio_main.c:1316: warning: Cannot understand * \brief Cleans up resources at unload time drivers/net/ethernet/cavium/liquidio/lio_main.c:1349: warning: Cannot understand * \brief Identify the Octeon device and to map the BAR address space drivers/net/ethernet/cavium/liquidio/lio_main.c:1393: warning: Cannot understand * \brief PCI initialization for each Octeon device. drivers/net/ethernet/cavium/liquidio/lio_main.c:1417: warning: Cannot understand * \brief Unmap and free network buffer drivers/net/ethernet/cavium/liquidio/lio_main.c:1437: warning: Cannot understand * \brief Unmap and free gather buffer drivers/net/ethernet/cavium/liquidio/lio_main.c:1477: warning: Cannot understand * \brief Unmap and free gather buffer with response drivers/net/ethernet/cavium/liquidio/lio_main.c:1521: warning: Cannot understand * \brief Adjust ptp frequency drivers/net/ethernet/cavium/liquidio/lio_main.c:1558: warning: Cannot understand * \brief Adjust ptp time drivers/net/ethernet/cavium/liquidio/lio_main.c:1575: warning: Cannot understand * \brief Get hardware clock time, including any adjustment drivers/net/ethernet/cavium/liquidio/lio_main.c:1598: warning: Cannot understand * \brief Set hardware clock time. Reset adjustment drivers/net/ethernet/cavium/liquidio/lio_main.c:1621: warning: Cannot understand * \brief Check if PTP is enabled drivers/net/ethernet/cavium/liquidio/lio_main.c:1635: warning: Cannot understand * \brief Open PTP clock source drivers/net/ethernet/cavium/liquidio/lio_main.c:1668: warning: Cannot understand * \brief Init PTP clock drivers/net/ethernet/cavium/liquidio/lio_main.c:1685: warning: Cannot understand * \brief Load firmware to device drivers/net/ethernet/cavium/liquidio/lio_main.c:1724: warning: Cannot understand * \brief Poll routine for checking transmit queue status drivers/net/ethernet/cavium/liquidio/lio_main.c:1741: warning: Cannot understand * \brief Sets up the txq poll check drivers/net/ethernet/cavium/liquidio/lio_main.c:1774: warning: Cannot understand * \brief Net device open for LiquidIO drivers/net/ethernet/cavium/liquidio/lio_main.c:1834: warning: Cannot understand * \brief Net device stop for LiquidIO drivers/net/ethernet/cavium/liquidio/lio_main.c:1899: warning: Cannot understand * \brief Converts a mask based on net device flags drivers/net/ethernet/cavium/liquidio/lio_main.c:1932: warning: Cannot understand * \brief Net device set_multicast_list drivers/net/ethernet/cavium/liquidio/lio_main.c:1980: warning: Cannot understand * \brief Net device set_mac_address drivers/net/ethernet/cavium/liquidio/lio_main.c:2099: warning: Cannot understand * \brief Handler for SIOCSHWTSTAMP ioctl drivers/net/ethernet/cavium/liquidio/lio_main.c:2157: warning: Cannot understand * \brief ioctl handler drivers/net/ethernet/cavium/liquidio/lio_main.c:2177: warning: Cannot understand * \brief handle a Tx timestamp response drivers/net/ethernet/cavium/liquidio/lio_main.c:3310: warning: Cannot understand * \brief Setup network interfaces drivers/net/ethernet/cavium/liquidio/lio_main.c:3875: warning: Cannot understand * \brief initialize the NIC drivers/net/ethernet/cavium/liquidio/lio_main.c:3931: warning: Cannot understand * \brief starter callback that invokes the remaining initialization work after drivers/net/ethernet/cavium/liquidio/lio_main.c:4026: warning: Cannot understand * \brief Device initialization for each Octeon device that is probed drivers/net/ethernet/cavium/liquidio/lio_main.c:4306: warning: Cannot understand * \brief Debug console print function drivers/net/ethernet/cavium/liquidio/lio_main.c:4333: warning: Cannot understand * \brief Exits the module
drivers/net/ethernet/freescale/fman/fman_port.c:1420: warning: Function parameter or member 'port' not described in 'fman_port_use_kg_hash' drivers/net/ethernet/freescale/fman/fman_port.c:1420: warning: Function parameter or member 'enable' not described in 'fman_port_use_kg_hash' drivers/net/ethernet/freescale/fman/fman_port.c:1440: warning: Function parameter or member 'port' not described in 'fman_port_init' drivers/net/ethernet/freescale/fman/fman_port.c:1553: warning: Function parameter or member 'port' not described in 'fman_port_cfg_buf_prefix_content' drivers/net/ethernet/freescale/fman/fman_port.c:1553: warning: Function parameter or member 'buffer_prefix_content' not described in 'fman_port_cfg_buf_prefix_content' drivers/net/ethernet/freescale/fman/fman_port.c:1586: warning: Function parameter or member 'port' not described in 'fman_port_disable' drivers/net/ethernet/freescale/fman/fman_port.c:1663: warning: Function parameter or member 'port' not described in 'fman_port_enable' drivers/net/ethernet/freescale/fman/fman_port.c:1709: warning: Function parameter or member 'dev' not described in 'fman_port_bind' drivers/net/ethernet/freescale/fman/fman_port.c:1723: warning: Function parameter or member 'port' not described in 'fman_port_get_qman_channel_id' drivers/net/ethernet/freescale/fman/fman_port.c:1737: warning: Function parameter or member 'port' not described in 'fman_port_get_device' drivers/net/ethernet/hisilicon/hns/hnae.c:276: warning: Function parameter or member 'ae_chain' not described in 'RAW_NOTIFIER_HEAD' drivers/net/ethernet/freescale/fec_ptp.c:520: warning: Function parameter or member 'work' not described in 'fec_time_keep' drivers/net/ethernet/freescale/fec_ptp.c:577: warning: Function parameter or member 'pdev' not described in 'fec_ptp_init' drivers/net/ethernet/freescale/fec_ptp.c:577: warning: Function parameter or member 'irq_idx' not described in 'fec_ptp_init' drivers/net/ethernet/freescale/fec_ptp.c:577: warning: Excess function parameter 'ndev' description in 'fec_ptp_init' drivers/net/ethernet/cavium/liquidio/octeon_droq.c:785: warning: Function parameter or member 'oct' not described in 'octeon_droq_process_poll_pkts' drivers/net/ethernet/cavium/liquidio/octeon_droq.c:785: warning: Function parameter or member 'droq' not described in 'octeon_droq_process_poll_pkts' drivers/net/ethernet/cavium/liquidio/octeon_droq.c:785: warning: Function parameter or member 'budget' not described in 'octeon_droq_process_poll_pkts' drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c:515: warning: Function parameter or member 'num_of_coalesced_segs' not described in 'bnx2x_set_gro_params' drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c:1980: warning: Function parameter or member 'include_cnic' not described in 'bnx2x_set_real_num_queues' drivers/net/ethernet/chelsio/cxgb3/t3_hw.c:2494: warning: Function parameter or member 'credits' not described in 't3_sge_cqcntxt_op' drivers/net/ethernet/chelsio/cxgb3/t3_hw.c:2899: warning: Function parameter or member 'alpha' not described in 't3_load_mtus' drivers/net/ethernet/chelsio/cxgb3/t3_hw.c:2899: warning: Excess function parameter 'alphs' description in 't3_load_mtus' drivers/net/ethernet/chelsio/cxgb3/t3_hw.c:3493: warning: Function parameter or member 'caps' not described in 'init_link_config' drivers/net/ethernet/chelsio/cxgb3/t3_hw.c:3493: warning: Excess function parameter 'ai' description in 'init_link_config' drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c:37: warning: Function parameter or member 'mbox' not described in 'octeon_mbox_read' drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c:37: warning: Excess function parameter 'oct' description in 'octeon_mbox_read' drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c:293: warning: Function parameter or member 'mbox' not described in 'octeon_mbox_process_message' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:57: warning: Function parameter or member 'bp' not described in 'bnx2x_exe_queue_init' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:57: warning: Function parameter or member 'remove' not described in 'bnx2x_exe_queue_init' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:115: warning: Function parameter or member 'elem' not described in 'bnx2x_exe_queue_add' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:115: warning: Excess function parameter 'cmd' description in 'bnx2x_exe_queue_add' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:285: warning: Function parameter or member 'pstate' not described in 'bnx2x_state_wait' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:285: warning: Excess function parameter 'state_p' description in 'bnx2x_state_wait' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:432: warning: Excess function parameter 'details' description in '__bnx2x_vlan_mac_h_write_trylock' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:980: warning: Function parameter or member 'type' not described in 'bnx2x_vlan_mac_set_rdata_hdr_e1x' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:1619: warning: Function parameter or member 'cqe' not described in 'bnx2x_complete_vlan_mac' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:1619: warning: Function parameter or member 'ramrod_flags' not described in 'bnx2x_complete_vlan_mac' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:1619: warning: Excess function parameter 'cont' description in 'bnx2x_complete_vlan_mac' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:1665: warning: Function parameter or member 'qo' not described in 'bnx2x_optimize_vlan_mac' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:1665: warning: Excess function parameter 'o' description in 'bnx2x_optimize_vlan_mac' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:1730: warning: Function parameter or member 'o' not described in 'bnx2x_vlan_mac_get_registry_elem' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:1730: warning: Function parameter or member 'elem' not described in 'bnx2x_vlan_mac_get_registry_elem' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:1730: warning: Function parameter or member 'restore' not described in 'bnx2x_vlan_mac_get_registry_elem' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:1781: warning: Function parameter or member 'qo' not described in 'bnx2x_execute_vlan_mac' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:1781: warning: Function parameter or member 'exe_chunk' not described in 'bnx2x_execute_vlan_mac' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:2022: warning: Function parameter or member 'o' not described in 'bnx2x_vlan_mac_del_all' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:2022: warning: Function parameter or member 'vlan_mac_flags' not described in 'bnx2x_vlan_mac_del_all' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:2776: warning: Function parameter or member 'o' not described in 'bnx2x_mcast_get_next_bin' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:2904: warning: Function parameter or member 'o' not described in 'bnx2x_mcast_handle_restore_cmd_e2' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:3220: warning: Function parameter or member 'p' not described in 'bnx2x_mcast_handle_current_cmd' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:3220: warning: Function parameter or member 'cmd' not described in 'bnx2x_mcast_handle_current_cmd' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:3332: warning: Function parameter or member 'p' not described in 'bnx2x_mcast_set_rdata_hdr_e2' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:3693: warning: Function parameter or member 'p' not described in 'bnx2x_mcast_set_rdata_hdr_e1' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:3726: warning: Function parameter or member 'o' not described in 'bnx2x_mcast_handle_restore_cmd_e1' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:3808: warning: Function parameter or member 'fw_hi' not described in 'bnx2x_get_fw_mac_addr' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:3808: warning: Function parameter or member 'fw_mid' not described in 'bnx2x_get_fw_mac_addr' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:3808: warning: Function parameter or member 'fw_lo' not described in 'bnx2x_get_fw_mac_addr' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:3808: warning: Function parameter or member 'mac' not described in 'bnx2x_get_fw_mac_addr' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:3830: warning: Function parameter or member 'o' not described in 'bnx2x_mcast_refresh_registry_e1' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:3830: warning: Excess function parameter 'cnt' description in 'bnx2x_mcast_refresh_registry_e1' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:4324: warning: Function parameter or member 'p' not described in 'bnx2x_init_credit_pool' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:4736: warning: Function parameter or member 'o' not described in 'bnx2x_queue_comp_cmd' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:5495: warning: Function parameter or member 'o' not described in 'bnx2x_queue_chk_transition' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:5747: warning: Function parameter or member 'o' not described in 'bnx2x_func_state_change_comp' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:5787: warning: Function parameter or member 'o' not described in 'bnx2x_func_comp_cmd' drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c:5813: warning: Function parameter or member 'o' not described in 'bnx2x_func_chk_transition' drivers/net/ethernet/chelsio/cxgb3/sge.c:381: warning: Function parameter or member 'q' not described in 'free_rx_bufs' drivers/net/ethernet/chelsio/cxgb3/sge.c:381: warning: Excess function parameter 'rxq' description in 'free_rx_bufs' drivers/net/ethernet/chelsio/cxgb3/sge.c:506: warning: Function parameter or member 'adap' not described in 'refill_fl' drivers/net/ethernet/chelsio/cxgb3/sge.c:506: warning: Excess function parameter 'adapter' description in 'refill_fl' drivers/net/ethernet/chelsio/cxgb3/sge.c:580: warning: Function parameter or member 'adap' not described in 'recycle_rx_buf' drivers/net/ethernet/chelsio/cxgb3/sge.c:580: warning: Excess function parameter 'adapter' description in 'recycle_rx_buf' drivers/net/ethernet/chelsio/cxgb3/sge.c:845: warning: Function parameter or member 'q' not described in 'get_packet_pg' drivers/net/ethernet/chelsio/cxgb3/sge.c:1184: warning: Function parameter or member 'addr' not described in 'write_tx_pkt_wr' drivers/net/ethernet/chelsio/cxgb3/sge.c:1633: warning: Function parameter or member 'addr' not described in 'write_ofld_wr' drivers/net/ethernet/chelsio/cxgb3/sge.c:1896: warning: Function parameter or member 'napi' not described in 'ofld_poll' drivers/net/ethernet/chelsio/cxgb3/sge.c:1896: warning: Excess function parameter 'dev' description in 'ofld_poll' drivers/net/ethernet/chelsio/cxgb3/sge.c:2017: warning: Function parameter or member 'pi' not described in 'cxgb3_arp_process' drivers/net/ethernet/chelsio/cxgb3/sge.c:2017: warning: Excess function parameter 'adapter' description in 'cxgb3_arp_process' drivers/net/ethernet/chelsio/cxgb3/sge.c:2080: warning: Function parameter or member 'lro' not described in 'rx_eth' drivers/net/ethernet/chelsio/cxgb3/sge.c:2252: warning: Function parameter or member 'adap' not described in 'check_ring_db' drivers/net/ethernet/chelsio/cxgb3/sge.c:2252: warning: Excess function parameter 'adapter' description in 'check_ring_db' drivers/net/ethernet/chelsio/cxgb3/sge.c:2919: warning: Function parameter or member 't' not described in 'sge_timer_tx' drivers/net/ethernet/chelsio/cxgb3/sge.c:2919: warning: Excess function parameter 'data' description in 'sge_timer_tx' drivers/net/ethernet/chelsio/cxgb3/sge.c:2959: warning: Function parameter or member 't' not described in 'sge_timer_rx' drivers/net/ethernet/chelsio/cxgb3/sge.c:2959: warning: Excess function parameter 'data' description in 'sge_timer_rx' drivers/net/ethernet/chelsio/cxgb3/sge.c:3036: warning: Function parameter or member 'dev' not described in 't3_sge_alloc_qset' drivers/net/ethernet/chelsio/cxgb3/sge.c:3036: warning: Excess function parameter 'netdev' description in 't3_sge_alloc_qset' drivers/net/ethernet/microchip/encx24j600-regmap.c:22: warning: Function parameter or member 'ctx' not described in 'encx24j600_switch_bank' drivers/net/ethernet/microchip/encx24j600-regmap.c:22: warning: Function parameter or member 'bank' not described in 'encx24j600_switch_bank' drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c:385: warning: Function parameter or member 'port_num' not described in 'hns_mac_port_config_bc_en' drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c:385: warning: Function parameter or member 'vlan_id' not described in 'hns_mac_port_config_bc_en' drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c:385: warning: Function parameter or member 'enable' not described in 'hns_mac_port_config_bc_en' drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c:385: warning: Excess function parameter 'queue' description in 'hns_mac_port_config_bc_en' drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c:385: warning: Excess function parameter 'en' description in 'hns_mac_port_config_bc_en' drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c:418: warning: Function parameter or member 'enable' not described in 'hns_mac_vm_config_bc_en' drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c:418: warning: Excess function parameter 'en' description in 'hns_mac_vm_config_bc_en' drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c:549: warning: Function parameter or member 'auto_neg' not described in 'hns_mac_get_autoneg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c:549: warning: Excess function parameter 'enable' description in 'hns_mac_get_autoneg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c:807: warning: Excess function parameter 'np' description in 'hns_mac_get_info' drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c:618: warning: Function parameter or member 'en' not described in 'hns_mac_config_sds_loopback'
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:102: warning: Cannot understand * \brief Cause device to go quiet so it can be safely removed/reset/etc drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:146: warning: Cannot understand * \brief Cleanup PCI AER uncorrectable error status drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:166: warning: Cannot understand * \brief Stop all PCI IO to a given device drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:208: warning: Cannot understand * \brief called when PCI error is detected drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:259: warning: Cannot understand * \brief Print link information drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:281: warning: Cannot understand * \brief Routine to notify MTU change drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:299: warning: Cannot understand * \brief Sets up the mtu status change work drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:331: warning: Cannot understand * \brief Update link status drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:377: warning: Cannot understand * \brief PCI probe handler drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:419: warning: Cannot understand * \brief PCI FLR for each Octeon device. drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:440: warning: Cannot understand *\brief Destroy resources associated with octeon device drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:595: warning: Cannot understand * \brief Send Rx control command drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:647: warning: Cannot understand * \brief Destroy NIC device interface drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:707: warning: Cannot understand * \brief Stop complete NIC functionality drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:740: warning: Cannot understand * \brief Cleans up resources at unload time drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:766: warning: Cannot understand * \brief PCI initialization for each Octeon device. drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:795: warning: Cannot understand * \brief Unmap and free network buffer drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:815: warning: Cannot understand * \brief Unmap and free gather buffer drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:856: warning: Cannot understand * \brief Unmap and free gather buffer with response drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:900: warning: Cannot understand * \brief Net device open for LiquidIO drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:944: warning: Cannot understand * \brief Net device stop for LiquidIO drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:994: warning: Cannot understand * \brief Converts a mask based on net device flags drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:1063: warning: Cannot understand * \brief Net device set_multicast_list drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:1113: warning: Cannot understand * \brief Net device set_mac_address drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:1232: warning: Cannot understand * \brief Handler for SIOCSHWTSTAMP ioctl drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:1290: warning: Cannot understand * \brief ioctl handler drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:1920: warning: Cannot understand * \brief Setup network interfaces drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:2232: warning: Cannot understand * \brief initialize the NIC drivers/net/ethernet/cavium/liquidio/lio_vf_main.c:2273: warning: Cannot understand * \brief Device initialization for each Octeon device that is probed
drivers/net/ethernet/micrel/ksz884x.c:9: warning: Function parameter or member 'fmt' not described in 'pr_fmt' drivers/net/ethernet/micrel/ksz884x.c:968: warning: Function parameter or member 'len' not described in 'ksz_dma_buf' drivers/net/ethernet/micrel/ksz884x.c:1305: warning: Function parameter or member 'reserved2' not described in 'ksz_hw' drivers/net/ethernet/micrel/ksz884x.c:1475: warning: Function parameter or member 'monitor_timer_info' not described in 'dev_priv' drivers/net/ethernet/micrel/ksz884x.c:1576: warning: Function parameter or member 'hw' not described in 'hw_block_intr' drivers/net/ethernet/micrel/ksz884x.c:1827: warning: Function parameter or member 'last' not described in 'port_r_mib_pkt' drivers/net/ethernet/micrel/ksz884x.c:1983: warning: Function parameter or member 'addr' not described in 'port_chk_shift' drivers/net/ethernet/micrel/ksz884x.c:1983: warning: Excess function parameter 'offset' description in 'port_chk_shift' drivers/net/ethernet/micrel/ksz884x.c:2004: warning: Function parameter or member 'addr' not described in 'port_cfg_shift' drivers/net/ethernet/micrel/ksz884x.c:2004: warning: Excess function parameter 'offset' description in 'port_cfg_shift' drivers/net/ethernet/micrel/ksz884x.c:4432: warning: Function parameter or member 'dma_buf' not described in 'free_dma_buf' drivers/net/ethernet/micrel/ksz884x.c:4432: warning: Function parameter or member 'direction' not described in 'free_dma_buf' drivers/net/ethernet/micrel/ksz884x.c:4569: warning: Function parameter or member 'direction' not described in 'ksz_free_buffers' drivers/net/ethernet/micrel/ksz884x.c:4728: warning: Function parameter or member 'hw_priv' not described in 'transmit_cleanup' drivers/net/ethernet/micrel/ksz884x.c:4728: warning: Function parameter or member 'normal' not described in 'transmit_cleanup' drivers/net/ethernet/micrel/ksz884x.c:4728: warning: Excess function parameter 'dev' description in 'transmit_cleanup' drivers/net/ethernet/micrel/ksz884x.c:4785: warning: Function parameter or member 'hw_priv' not described in 'tx_done' drivers/net/ethernet/micrel/ksz884x.c:4785: warning: Excess function parameter 'dev' description in 'tx_done' drivers/net/ethernet/micrel/ksz884x.c:4892: warning: Function parameter or member 'txqueue' not described in 'netdev_tx_timeout' drivers/net/ethernet/micrel/ksz884x.c:6085: warning: cannot understand function prototype: 'struct hw_regs ' drivers/net/ethernet/micrel/ksz884x.c:6249: warning: Excess function parameter 'dev' description in 'EEPROM_MAGIC' drivers/net/ethernet/micrel/ksz884x.c:6249: warning: Excess function parameter 'eeprom' description in 'EEPROM_MAGIC' drivers/net/ethernet/micrel/ksz884x.c:6249: warning: Excess function parameter 'data' description in 'EEPROM_MAGIC' drivers/net/ethernet/micrel/ksz884x.c:6393: warning: Function parameter or member 'ring' not described in 'netdev_get_ringparam' drivers/net/ethernet/micrel/ksz884x.c:6393: warning: Excess function parameter 'pause' description in 'netdev_get_ringparam' drivers/net/ethernet/micrel/ksz884x.c:6696: warning: Function parameter or member 't' not described in 'dev_monitor' drivers/net/ethernet/micrel/ksz884x.c:6696: warning: Excess function parameter 'ptr' description in 'dev_monitor' drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:3098: warning: Function parameter or member 'bp' not described in 'bnx2x_get_common_flags' drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:3098: warning: Function parameter or member 'fp' not described in 'bnx2x_get_common_flags' drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:3098: warning: Function parameter or member 'zero_stats' not described in 'bnx2x_get_common_flags' drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:13599: warning: Function parameter or member 'pdev' not described in 'bnx2x_get_num_non_def_sbs' drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:13599: warning: Function parameter or member 'cnic_cnt' not described in 'bnx2x_get_num_non_def_sbs' drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:13599: warning: Excess function parameter 'dev' description in 'bnx2x_get_num_non_def_sbs' drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:14462: warning: Excess function parameter 'set' description in 'bnx2x_set_iscsi_eth_mac_addr' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:213: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_sbm_link_sram_init_en' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:213: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_sbm_link_sram_init_en' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:224: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_reg_cnt_clr_ce' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:224: warning: Function parameter or member 'reg_cnt_clr_ce' not described in 'hns_dsaf_reg_cnt_clr_ce' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:224: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_reg_cnt_clr_ce' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:224: warning: Excess function parameter 'hns_dsaf_reg_cnt_clr_ce' description in 'hns_dsaf_reg_cnt_clr_ce' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:236: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_ppe_qid_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:236: warning: Function parameter or member 'qid_cfg' not described in 'hns_dsaf_ppe_qid_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:236: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_ppe_qid_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:236: warning: Excess function parameter 'pppe_qid_cfg' description in 'hns_dsaf_ppe_qid_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:293: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_sw_port_type_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:293: warning: Function parameter or member 'port_type' not described in 'hns_dsaf_sw_port_type_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:293: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_sw_port_type_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:293: warning: Excess function parameter 'psw_port_type' description in 'hns_dsaf_sw_port_type_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:311: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_stp_port_type_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:311: warning: Function parameter or member 'port_type' not described in 'hns_dsaf_stp_port_type_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:311: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_stp_port_type_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:311: warning: Excess function parameter 'pstp_port_type' description in 'hns_dsaf_stp_port_type_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:329: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_sbm_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:329: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_sbm_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:348: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_sbm_cfg_mib_en' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:348: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_sbm_cfg_mib_en' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:393: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_sbm_bp_wl_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:393: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_sbm_bp_wl_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:562: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_voq_bp_all_thrd_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:562: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_voq_bp_all_thrd_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:608: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_tbl_tcam_data_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:608: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_tbl_tcam_data_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:623: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_tbl_tcam_mcast_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:623: warning: Function parameter or member 'mcast' not described in 'hns_dsaf_tbl_tcam_mcast_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:623: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_tbl_tcam_mcast_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:623: warning: Excess function parameter 'ptbl_tcam_mcast' description in 'hns_dsaf_tbl_tcam_mcast_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:657: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_tbl_tcam_ucast_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:657: warning: Function parameter or member 'tbl_tcam_ucast' not described in 'hns_dsaf_tbl_tcam_ucast_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:657: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_tbl_tcam_ucast_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:657: warning: Excess function parameter 'ptbl_tcam_ucast' description in 'hns_dsaf_tbl_tcam_ucast_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:682: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_tbl_line_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:682: warning: Function parameter or member 'tbl_lin' not described in 'hns_dsaf_tbl_line_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:682: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_tbl_line_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:682: warning: Excess function parameter 'ptbl_lin' description in 'hns_dsaf_tbl_line_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:701: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_tbl_tcam_mcast_pul' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:701: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_tbl_tcam_mcast_pul' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:716: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_tbl_line_pul' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:716: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_tbl_line_pul' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:732: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_tbl_tcam_data_mcast_pul' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:732: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_tbl_tcam_data_mcast_pul' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:750: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_tbl_tcam_data_ucast_pul' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:750: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_tbl_tcam_data_ucast_pul' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:775: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_tbl_stat_en' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:775: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_tbl_stat_en' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:775: warning: Excess function parameter 'ptbl_stat_en' description in 'hns_dsaf_tbl_stat_en' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:791: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_rocee_bp_en' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:791: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_rocee_bp_en' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:862: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_single_line_tbl_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:862: warning: Function parameter or member 'address' not described in 'hns_dsaf_single_line_tbl_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:862: warning: Function parameter or member 'ptbl_line' not described in 'hns_dsaf_single_line_tbl_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:862: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_single_line_tbl_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:887: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_tcam_uc_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:887: warning: Function parameter or member 'address' not described in 'hns_dsaf_tcam_uc_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:887: warning: Function parameter or member 'ptbl_tcam_data' not described in 'hns_dsaf_tcam_uc_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:887: warning: Function parameter or member 'ptbl_tcam_ucast' not described in 'hns_dsaf_tcam_uc_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:887: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_tcam_uc_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:914: warning: Function parameter or member 'ptbl_tcam_mask' not described in 'hns_dsaf_tcam_mc_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:944: warning: Function parameter or member 'address' not described in 'hns_dsaf_tcam_uc_cfg_vague' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:944: warning: Function parameter or member 'tcam_data' not described in 'hns_dsaf_tcam_uc_cfg_vague' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:944: warning: Function parameter or member 'tcam_mask' not described in 'hns_dsaf_tcam_uc_cfg_vague' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:944: warning: Function parameter or member 'tcam_uc' not described in 'hns_dsaf_tcam_uc_cfg_vague' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:973: warning: Function parameter or member 'address' not described in 'hns_dsaf_tcam_mc_cfg_vague' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:973: warning: Function parameter or member 'tcam_data' not described in 'hns_dsaf_tcam_mc_cfg_vague' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:973: warning: Function parameter or member 'tcam_mask' not described in 'hns_dsaf_tcam_mc_cfg_vague' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:973: warning: Function parameter or member 'tcam_mc' not described in 'hns_dsaf_tcam_mc_cfg_vague' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:995: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_tcam_mc_invld' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:995: warning: Function parameter or member 'address' not described in 'hns_dsaf_tcam_mc_invld' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:995: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_tcam_mc_invld' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1036: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_tcam_uc_get' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1036: warning: Function parameter or member 'address' not described in 'hns_dsaf_tcam_uc_get' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1036: warning: Function parameter or member 'ptbl_tcam_data' not described in 'hns_dsaf_tcam_uc_get' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1036: warning: Function parameter or member 'ptbl_tcam_ucast' not described in 'hns_dsaf_tcam_uc_get' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1036: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_tcam_uc_get' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1089: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_tcam_mc_get' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1089: warning: Function parameter or member 'address' not described in 'hns_dsaf_tcam_mc_get' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1089: warning: Function parameter or member 'ptbl_tcam_data' not described in 'hns_dsaf_tcam_mc_get' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1089: warning: Function parameter or member 'ptbl_tcam_mcast' not described in 'hns_dsaf_tcam_mc_get' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1089: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_tcam_mc_get' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1133: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_tbl_line_init' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1133: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_tbl_line_init' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1147: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_tbl_tcam_init' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1147: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_tbl_tcam_init' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1163: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_pfc_en_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1163: warning: Function parameter or member 'mac_id' not described in 'hns_dsaf_pfc_en_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1163: warning: Function parameter or member 'tc_en' not described in 'hns_dsaf_pfc_en_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1163: warning: Excess function parameter 'mac_cb' description in 'hns_dsaf_pfc_en_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1216: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_comm_init' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1216: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_comm_init' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1269: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_inode_init' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1269: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_inode_init' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1321: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_sbm_init' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1321: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_sbm_init' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1375: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_tbl_init' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1375: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_tbl_init' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1387: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_voq_init' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:1387: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_voq_init' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2105: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_free_dev' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2105: warning: Excess function parameter 'dev' description in 'hns_dsaf_free_dev' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2117: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_pfc_unit_cnt' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2117: warning: Function parameter or member 'mac_id' not described in 'hns_dsaf_pfc_unit_cnt' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2117: warning: Function parameter or member 'rate' not described in 'hns_dsaf_pfc_unit_cnt' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2117: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_pfc_unit_cnt' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2117: warning: Excess function parameter 'pport_rate' description in 'hns_dsaf_pfc_unit_cnt' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2117: warning: Excess function parameter 'pdsaf_pfc_unit_cnt' description in 'hns_dsaf_pfc_unit_cnt' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2148: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_port_work_rate_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2148: warning: Function parameter or member 'mac_id' not described in 'hns_dsaf_port_work_rate_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2148: warning: Function parameter or member 'rate_mode' not described in 'hns_dsaf_port_work_rate_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2148: warning: Excess function parameter 'dsaf_id' description in 'hns_dsaf_port_work_rate_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2260: warning: Function parameter or member 'ddev' not described in 'hns_dsaf_get_regs' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2260: warning: Function parameter or member 'port' not described in 'hns_dsaf_get_regs' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2260: warning: Excess function parameter 'dsaf_dev' description in 'hns_dsaf_get_regs' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2697: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_get_sset_count' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:2717: warning: Function parameter or member 'dsaf_dev' not described in 'hns_dsaf_get_strings' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:3045: warning: Function parameter or member 'dereset' not described in 'hns_dsaf_roce_reset' drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c:3045: warning: Excess function parameter 'enable' description in 'hns_dsaf_roce_reset' drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c:73: warning: Function parameter or member 'comm_index' not described in 'hns_ppe_common_get_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c:150: warning: Function parameter or member 'ppe_cb' not described in 'hns_ppe_checksum_hw' drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c:150: warning: Excess function parameter 'ppe_device' description in 'hns_ppe_checksum_hw' drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c:187: warning: Function parameter or member 'ppe_cb' not described in 'hns_ppe_set_port_mode' drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c:187: warning: Excess function parameter 'ppe_device' description in 'hns_ppe_set_port_mode' drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c:350: warning: Function parameter or member 'ppe_cb' not described in 'hns_ppe_uninit_hw' drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c:350: warning: Excess function parameter 'ppe_device' description in 'hns_ppe_uninit_hw' drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c:390: warning: Function parameter or member 'ppe_common_index' not described in 'hns_ppe_reset_common' drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c:463: warning: Function parameter or member 'ppe_cb' not described in 'hns_ppe_get_strings' drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c:463: warning: Excess function parameter 'ppe_device' description in 'hns_ppe_get_strings' drivers/net/ethernet/natsemi/ns83820.c:603:6: warning: variable ?tbisr? set but not used [-Wunused-but-set-variable] drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c:41: warning: Function parameter or member 'q_num' not described in 'hns_rcb_wait_fbd_clean' drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c:41: warning: Excess function parameter 'qnum' description in 'hns_rcb_wait_fbd_clean' drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c:197: warning: Function parameter or member 'q' not described in 'hns_rcb_ring_enable_hw' drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c:197: warning: Function parameter or member 'val' not described in 'hns_rcb_ring_enable_hw' drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c:197: warning: Excess function parameter 'ring' description in 'hns_rcb_ring_enable_hw' drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c:851: warning: Function parameter or member 'queue' not described in 'hns_rcb_get_stats' drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c:851: warning: Excess function parameter 'ring' description in 'hns_rcb_get_stats' drivers/net/ethernet/neterion/vxge/vxge-ethtool.c:129: warning: Function parameter or member 'space' not described in 'vxge_ethtool_gregs' drivers/net/ethernet/neterion/vxge/vxge-ethtool.c:129: warning: Excess function parameter 'reg_space' description in 'vxge_ethtool_gregs' drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c:21: warning: cannot understand function prototype: 'int TxDescriptors = OPTION_UNSET; ' drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c:30: warning: cannot understand function prototype: 'int RxDescriptors = OPTION_UNSET; ' drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c:43: warning: cannot understand function prototype: 'int Speed = OPTION_UNSET; ' drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c:55: warning: cannot understand function prototype: 'int Duplex = OPTION_UNSET; ' drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c:76: warning: cannot understand function prototype: 'int AutoNeg = OPTION_UNSET; ' drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c:97: warning: cannot understand function prototype: 'int FlowControl = OPTION_UNSET; ' drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c:134: warning: cannot understand function prototype: 'struct pch_gbe_option ' drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c:14: warning: cannot understand function prototype: 'struct pch_gbe_stats ' drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c:30: warning: cannot understand function prototype: 'const struct pch_gbe_stats pch_gbe_gstrings_stats[] = ' drivers/net/ethernet/neterion/vxge/vxge-traffic.c:289: warning: Function parameter or member 'channel' not described in 'vxge_hw_channel_msix_mask' drivers/net/ethernet/neterion/vxge/vxge-traffic.c:289: warning: Excess function parameter 'channeh' description in 'vxge_hw_channel_msix_mask' drivers/net/ethernet/neterion/vxge/vxge-traffic.c:307: warning: Function parameter or member 'channel' not described in 'vxge_hw_channel_msix_unmask' drivers/net/ethernet/neterion/vxge/vxge-traffic.c:307: warning: Excess function parameter 'channeh' description in 'vxge_hw_channel_msix_unmask' drivers/net/ethernet/neterion/vxge/vxge-traffic.c:362: warning: Excess function parameter 'op' description in 'vxge_hw_device_intr_enable' drivers/net/ethernet/neterion/vxge/vxge-traffic.c:416: warning: Excess function parameter 'op' description in 'vxge_hw_device_intr_disable' drivers/net/ethernet/neterion/vxge/vxge-traffic.c:1430: warning: Function parameter or member 'fifo' not described in 'vxge_hw_fifo_txdl_reserve' drivers/net/ethernet/neterion/vxge/vxge-traffic.c:1430: warning: Excess function parameter 'fifoh' description in 'vxge_hw_fifo_txdl_reserve' drivers/net/ethernet/neterion/vxge/vxge-traffic.c:1529: warning: Excess function parameter 'frags' description in 'vxge_hw_fifo_txdl_post' drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c:248: warning: Function parameter or member 'rx_en' not described in 'hns_xgmac_pausefrm_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c:248: warning: Function parameter or member 'tx_en' not described in 'hns_xgmac_pausefrm_cfg' drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c:248: warning: Excess function parameter 'newval' description in 'hns_xgmac_pausefrm_cfg' drivers/net/ethernet/neterion/vxge/vxge-traffic.c:2420: warning: Function parameter or member 'skb_ptr' not described in 'vxge_hw_vpath_poll_tx' drivers/net/ethernet/neterion/vxge/vxge-traffic.c:2420: warning: Function parameter or member 'nr_skb' not described in 'vxge_hw_vpath_poll_tx' drivers/net/ethernet/neterion/vxge/vxge-traffic.c:2420: warning: Function parameter or member 'more' not described in 'vxge_hw_vpath_poll_tx' drivers/net/ethernet/neterion/vxge/vxge-config.c:998: warning: Function parameter or member 'bar0' not described in 'vxge_hw_device_hw_info_get' drivers/net/ethernet/neterion/vxge/vxge-config.c:998: warning: Function parameter or member 'hw_info' not described in 'vxge_hw_device_hw_info_get' drivers/net/ethernet/neterion/vxge/vxge-config.c:3938: warning: Function parameter or member 'ring' not described in 'vxge_hw_vpath_check_leak' drivers/net/ethernet/neterion/vxge/vxge-config.c:3938: warning: Excess function parameter 'ringh' description in 'vxge_hw_vpath_check_leak' drivers/net/ethernet/packetengines/yellowfin.c:1063:18: warning: variable ?yf_size? set but not used [-Wunused-but-set-variable] drivers/net/ethernet/hisilicon/hns_mdio.c:219: warning: Function parameter or member 'data' not described in 'hns_mdio_write' drivers/net/ethernet/hisilicon/hns_mdio.c:219: warning: Excess function parameter 'value' description in 'hns_mdio_write' drivers/net/ethernet/hisilicon/hns_mdio.c:281: warning: Excess function parameter 'value' description in 'hns_mdio_read' drivers/net/ethernet/qualcomm/emac/emac.c:302: warning: Function parameter or member 'adpt' not described in 'emac_update_hw_stats' drivers/net/ethernet/hisilicon/hns/hns_enet.c:757: warning: Function parameter or member 'new_param' not described in 'smooth_alg' drivers/net/ethernet/hisilicon/hns/hns_enet.c:757: warning: Function parameter or member 'old_param' not described in 'smooth_alg' drivers/net/ethernet/neterion/vxge/vxge-main.c:1282: warning: Function parameter or member 'p' not described in 'vxge_set_mac_addr' drivers/net/ethernet/neterion/vxge/vxge-main.c:1813: warning: Function parameter or member 'napi' not described in 'vxge_poll_msix' drivers/net/ethernet/neterion/vxge/vxge-main.c:1813: warning: Excess function parameter 'dev' description in 'vxge_poll_msix' drivers/net/ethernet/neterion/vxge/vxge-main.c:3104: warning: Function parameter or member 'net_stats' not described in 'vxge_get_stats64' drivers/net/ethernet/neterion/vxge/vxge-main.c:3104: warning: Excess function parameter 'stats' description in 'vxge_get_stats64' drivers/net/ethernet/neterion/vxge/vxge-main.c:3256: warning: Function parameter or member 'rq' not described in 'vxge_ioctl' drivers/net/ethernet/neterion/vxge/vxge-main.c:3256: warning: Excess function parameter 'ifr' description in 'vxge_ioctl' drivers/net/ethernet/neterion/vxge/vxge-main.c:3278: warning: Function parameter or member 'txqueue' not described in 'vxge_tx_watchdog' drivers/net/ethernet/neterion/vxge/vxge-main.c:4008: warning: Function parameter or member 'dev_d' not described in 'vxge_pm_suspend' drivers/net/ethernet/neterion/vxge/vxge-main.c:4016: warning: Function parameter or member 'dev_d' not described in 'vxge_pm_resume' drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:301: warning: Function parameter or member 'bit' not described in 'pch_gbe_wait_clr_bit' drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:301: warning: Excess function parameter 'busy' description in 'pch_gbe_wait_clr_bit' drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:1040: warning: Function parameter or member 't' not described in 'pch_gbe_watchdog' drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:1040: warning: Excess function parameter 'data' description in 'pch_gbe_watchdog' drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:2275: warning: Function parameter or member 'txqueue' not described in 'pch_gbe_tx_timeout' drivers/net/ethernet/neterion/s2io.c:1008: warning: Function parameter or member 'nic' not described in 's2io_verify_pci_mode' drivers/net/ethernet/neterion/s2io.c:1042: warning: Function parameter or member 'nic' not described in 's2io_print_pci_mode' drivers/net/ethernet/neterion/s2io.c:2071: warning: Function parameter or member 'sp' not described in 'verify_pcc_quiescent' drivers/net/ethernet/neterion/s2io.c:2071: warning: Function parameter or member 'flag' not described in 'verify_pcc_quiescent' drivers/net/ethernet/neterion/s2io.c:2111: warning: Function parameter or member 'sp' not described in 'verify_xena_quiescence' drivers/net/ethernet/neterion/s2io.c:2311: warning: Function parameter or member 'fifo_data' not described in 's2io_txdl_getskb' drivers/net/ethernet/neterion/s2io.c:2311: warning: Function parameter or member 'txdlp' not described in 's2io_txdl_getskb' drivers/net/ethernet/neterion/s2io.c:2311: warning: Function parameter or member 'get_off' not described in 's2io_txdl_getskb' drivers/net/ethernet/neterion/s2io.c:2403: warning: Function parameter or member 'nic' not described in 'stop_nic' drivers/net/ethernet/neterion/s2io.c:2444: warning: Function parameter or member 'nic' not described in 'fill_rx_buffers' drivers/net/ethernet/neterion/s2io.c:2444: warning: Function parameter or member 'ring' not described in 'fill_rx_buffers' drivers/net/ethernet/neterion/s2io.c:2444: warning: Excess function parameter 'ring_info' description in 'fill_rx_buffers' drivers/net/ethernet/neterion/s2io.c:2879: warning: Function parameter or member 'ring_data' not described in 'rx_intr_handler' drivers/net/ethernet/neterion/s2io.c:2879: warning: Excess function parameter 'ring_info' description in 'rx_intr_handler' drivers/net/ethernet/neterion/s2io.c:2986: warning: Function parameter or member 'fifo_data' not described in 'tx_intr_handler' drivers/net/ethernet/neterion/s2io.c:2986: warning: Excess function parameter 'nic' description in 'tx_intr_handler' drivers/net/ethernet/neterion/s2io.c:3165: warning: Function parameter or member 'regs_stat' not described in 's2io_chk_xpak_counter' drivers/net/ethernet/neterion/s2io.c:3165: warning: Function parameter or member 'index' not described in 's2io_chk_xpak_counter' drivers/net/ethernet/neterion/s2io.c:3323: warning: Function parameter or member 'addr' not described in 'wait_for_cmd_complete' drivers/net/ethernet/neterion/s2io.c:3323: warning: Function parameter or member 'busy_bit' not described in 'wait_for_cmd_complete' drivers/net/ethernet/neterion/s2io.c:3323: warning: Function parameter or member 'bit_state' not described in 'wait_for_cmd_complete' drivers/net/ethernet/neterion/s2io.c:3323: warning: Excess function parameter 'sp' description in 'wait_for_cmd_complete' drivers/net/ethernet/neterion/s2io.c:4345: warning: Function parameter or member 'dev_id' not described in 's2io_handle_errors' drivers/net/ethernet/neterion/s2io.c:4345: warning: Excess function parameter 'nic' description in 's2io_handle_errors' drivers/net/ethernet/neterion/s2io.c:4746: warning: Function parameter or member 'sp' not described in 's2io_updt_stats' drivers/net/ethernet/neterion/s2io.c:5176: warning: Function parameter or member 'dev' not described in 's2io_set_mac_addr' drivers/net/ethernet/neterion/s2io.c:5176: warning: Function parameter or member 'p' not described in 's2io_set_mac_addr' drivers/net/ethernet/neterion/s2io.c:5260: warning: Function parameter or member 'dev' not described in 's2io_ethtool_set_link_ksettings' drivers/net/ethernet/neterion/s2io.c:5260: warning: Excess function parameter 'sp' description in 's2io_ethtool_set_link_ksettings' drivers/net/ethernet/neterion/s2io.c:5289: warning: Function parameter or member 'dev' not described in 's2io_ethtool_get_link_ksettings' drivers/net/ethernet/neterion/s2io.c:5289: warning: Excess function parameter 'sp' description in 's2io_ethtool_get_link_ksettings' drivers/net/ethernet/neterion/s2io.c:5328: warning: Function parameter or member 'dev' not described in 's2io_ethtool_gdrvinfo' drivers/net/ethernet/neterion/s2io.c:5328: warning: Excess function parameter 'sp' description in 's2io_ethtool_gdrvinfo' drivers/net/ethernet/neterion/s2io.c:5352: warning: Function parameter or member 'dev' not described in 's2io_ethtool_gregs' drivers/net/ethernet/neterion/s2io.c:5352: warning: Function parameter or member 'space' not described in 's2io_ethtool_gregs' drivers/net/ethernet/neterion/s2io.c:5352: warning: Excess function parameter 'sp' description in 's2io_ethtool_gregs' drivers/net/ethernet/neterion/s2io.c:5352: warning: Excess function parameter 'reg_space' description in 's2io_ethtool_gregs' drivers/net/ethernet/neterion/s2io.c:5484: warning: Function parameter or member 'dev' not described in 's2io_ethtool_getpause_data' drivers/net/ethernet/neterion/s2io.c:5484: warning: Excess function parameter 'sp' description in 's2io_ethtool_getpause_data' drivers/net/ethernet/neterion/s2io.c:5511: warning: Function parameter or member 'dev' not described in 's2io_ethtool_setpause_data' drivers/net/ethernet/neterion/s2io.c:5511: warning: Excess function parameter 'sp' description in 's2io_ethtool_setpause_data' drivers/net/ethernet/neterion/s2io.c:5545: warning: Excess function parameter 'sp' description in 'S2IO_DEV_ID' drivers/net/ethernet/neterion/s2io.c:5545: warning: Excess function parameter 'off' description in 'S2IO_DEV_ID' drivers/net/ethernet/neterion/s2io.c:5545: warning: Excess function parameter 'data' description in 'S2IO_DEV_ID' drivers/net/ethernet/neterion/s2io.c:5751: warning: Function parameter or member 'dev' not described in 's2io_ethtool_geeprom' drivers/net/ethernet/neterion/s2io.c:5751: warning: Excess function parameter 'sp' description in 's2io_ethtool_geeprom' drivers/net/ethernet/neterion/s2io.c:5789: warning: Function parameter or member 'dev' not described in 's2io_ethtool_seeprom' drivers/net/ethernet/neterion/s2io.c:5789: warning: Function parameter or member 'data_buf' not described in 's2io_ethtool_seeprom' drivers/net/ethernet/neterion/s2io.c:5789: warning: Excess function parameter 'sp' description in 's2io_ethtool_seeprom' drivers/net/ethernet/neterion/s2io.c:6042: warning: Function parameter or member 'sp' not described in 's2io_link_test' drivers/net/ethernet/neterion/s2io.c:6169: warning: Function parameter or member 'dev' not described in 's2io_ethtool_test' drivers/net/ethernet/neterion/s2io.c:6169: warning: Excess function parameter 'sp' description in 's2io_ethtool_test' drivers/net/ethernet/neterion/s2io.c:6610: warning: Function parameter or member 'rq' not described in 's2io_ioctl' drivers/net/ethernet/neterion/s2io.c:6610: warning: Excess function parameter 'ifr' description in 's2io_ioctl' drivers/net/ethernet/neterion/s2io.c:6658: warning: Function parameter or member 'work' not described in 's2io_set_link' drivers/net/ethernet/neterion/s2io.c:6658: warning: Excess function parameter 'data' description in 's2io_set_link' drivers/net/ethernet/neterion/s2io.c:7199: warning: Function parameter or member 'work' not described in 's2io_restart_nic' drivers/net/ethernet/neterion/s2io.c:7199: warning: Excess function parameter 'data' description in 's2io_restart_nic' drivers/net/ethernet/neterion/s2io.c:7232: warning: Function parameter or member 'txqueue' not described in 's2io_tx_watchdog' drivers/net/ethernet/neterion/s2io.c:7261: warning: Function parameter or member 'ring_data' not described in 'rx_osm_handler' drivers/net/ethernet/neterion/s2io.c:7261: warning: Function parameter or member 'rxdp' not described in 'rx_osm_handler' drivers/net/ethernet/neterion/s2io.c:7261: warning: Excess function parameter 'sp' description in 'rx_osm_handler' drivers/net/ethernet/neterion/s2io.c:7261: warning: Excess function parameter 'skb' description in 'rx_osm_handler' drivers/net/ethernet/neterion/s2io.c:7261: warning: Excess function parameter 'len' description in 'rx_osm_handler' drivers/net/ethernet/neterion/s2io.c:7261: warning: Excess function parameter 'cksum' description in 'rx_osm_handler' drivers/net/ethernet/neterion/s2io.c:7261: warning: Excess function parameter 'ring_no' description in 'rx_osm_handler' drivers/net/ethernet/neterion/s2io.c:7588: warning: Function parameter or member 'ds_codepoint' not described in 'rts_ds_steer' drivers/net/ethernet/neterion/s2io.c:7588: warning: Function parameter or member 'ring' not described in 'rts_ds_steer' drivers/net/ethernet/qlogic/netxen/netxen_nic.h:1193:18: warning: ?FW_DUMP_LEVELS? defined but not used [-Wunused-const-variable=] drivers/net/ethernet/qlogic/netxen/netxen_nic.h:1193:18: warning: ?FW_DUMP_LEVELS? defined but not used [-Wunused-const-variable=] drivers/net/ethernet/qlogic/netxen/netxen_nic.h:1193:18: warning: ?FW_DUMP_LEVELS? defined but not used [-Wunused-const-variable=] drivers/net/ethernet/qlogic/netxen/netxen_nic.h:1193:18: warning: ?FW_DUMP_LEVELS? defined but not used [-Wunused-const-variable=] drivers/net/ethernet/sfc/falcon/selftest.c:77: warning: cannot understand function prototype: 'struct ef4_loopback_state ' drivers/net/ethernet/sis/sis900.c:1311: warning: Function parameter or member 't' not described in 'sis900_timer' drivers/net/ethernet/sis/sis900.c:1311: warning: Excess function parameter 'data' description in 'sis900_timer' drivers/net/ethernet/sis/sis900.c:1544: warning: Function parameter or member 'txqueue' not described in 'sis900_tx_timeout' drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:106: warning: Function parameter or member 't' not described in 'sxgbe_eee_ctrl_timer' drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:106: warning: Excess function parameter 'arg' description in 'sxgbe_eee_ctrl_timer' drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:265: warning: Function parameter or member 'ndev' not described in 'sxgbe_init_phy' drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:265: warning: Excess function parameter 'dev' description in 'sxgbe_init_phy' drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:375: warning: Function parameter or member 'p' not described in 'sxgbe_free_rx_buffers' drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:375: warning: Function parameter or member 'i' not described in 'sxgbe_free_rx_buffers' drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:375: warning: Function parameter or member 'dma_buf_sz' not described in 'sxgbe_free_rx_buffers' drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:375: warning: Excess function parameter 'rx_rsize' description in 'sxgbe_free_rx_buffers' drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:392: warning: Function parameter or member 'queue_no' not described in 'init_tx_ring' drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:458: warning: Function parameter or member 'queue_no' not described in 'init_rx_ring' drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:557: warning: Function parameter or member 'netd' not described in 'init_dma_desc_rings' drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:557: warning: Excess function parameter 'dev' description in 'init_dma_desc_rings' drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:731: warning: Function parameter or member 'tqueue' not described in 'sxgbe_tx_queue_clean' drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:731: warning: Excess function parameter 'priv' description in 'sxgbe_tx_queue_clean' drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:814: warning: Function parameter or member 'queue_num' not described in 'sxgbe_restart_tx_queue' drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c:1576: warning: Function parameter or member 'txqueue' not described in 'sxgbe_tx_timeout' drivers/net/ethernet/via/via-rhine.c:1523: warning: Function parameter or member 'dev' not described in 'rhine_update_vcam' drivers/net/ethernet/via/via-rhine.c:1523: warning: Excess function parameter 'rp' description in 'rhine_update_vcam' drivers/net/ethernet/sfc/falcon/rx.c:150: warning: Function parameter or member 'atomic' not described in 'ef4_init_rx_buffers' drivers/net/ethernet/sfc/falcon/rx.c:325: warning: Function parameter or member 'atomic' not described in 'ef4_fast_push_rx_descriptors' drivers/net/ethernet/ti/davinci_cpdma.c:726: warning: Function parameter or member 'ctlr' not described in 'cpdma_chan_split_pool' drivers/net/ethernet/tehuti/tehuti.c:152: warning: Function parameter or member 'reg_CFG0' not described in 'bdx_fifo_init' drivers/net/ethernet/tehuti/tehuti.c:152: warning: Function parameter or member 'reg_CFG1' not described in 'bdx_fifo_init' drivers/net/ethernet/tehuti/tehuti.c:152: warning: Function parameter or member 'reg_RPTR' not described in 'bdx_fifo_init' drivers/net/ethernet/tehuti/tehuti.c:152: warning: Function parameter or member 'reg_WPTR' not described in 'bdx_fifo_init' drivers/net/ethernet/tehuti/tehuti.c:152: warning: Excess function parameter 'reg_XXX' description in 'bdx_fifo_init' drivers/net/ethernet/tehuti/tehuti.c:571: warning: Function parameter or member 'ndev' not described in 'bdx_close' drivers/net/ethernet/tehuti/tehuti.c:571: warning: Excess function parameter 'netdev' description in 'bdx_close' drivers/net/ethernet/tehuti/tehuti.c:599: warning: Function parameter or member 'ndev' not described in 'bdx_open' drivers/net/ethernet/tehuti/tehuti.c:599: warning: Excess function parameter 'netdev' description in 'bdx_open' drivers/net/ethernet/tehuti/tehuti.c:706: warning: Function parameter or member 'enable' not described in '__bdx_vlan_rx_vid' drivers/net/ethernet/tehuti/tehuti.c:706: warning: Excess function parameter 'op' description in '__bdx_vlan_rx_vid' drivers/net/ethernet/tehuti/tehuti.c:735: warning: Function parameter or member 'proto' not described in 'bdx_vlan_rx_add_vid' drivers/net/ethernet/tehuti/tehuti.c:746: warning: Function parameter or member 'proto' not described in 'bdx_vlan_rx_kill_vid' drivers/net/ethernet/tehuti/tehuti.c:759: warning: Function parameter or member 'ndev' not described in 'bdx_change_mtu' drivers/net/ethernet/tehuti/tehuti.c:759: warning: Excess function parameter 'netdev' description in 'bdx_change_mtu' drivers/net/ethernet/tehuti/tehuti.c:1759: warning: Function parameter or member 'priv' not described in 'bdx_tx_free_skbs' drivers/net/ethernet/ti/davinci_emac.c:680: warning: Function parameter or member 'mac_addr' not described in 'emac_add_mcast' drivers/net/ethernet/ti/davinci_emac.c:988: warning: Function parameter or member 'txqueue' not described in 'emac_dev_tx_timeout' drivers/net/ethernet/ti/davinci_emac.c:1224: warning: Function parameter or member 'napi' not described in 'emac_poll' drivers/net/ethernet/ti/davinci_emac.c:1224: warning: Excess function parameter 'ndev' description in 'emac_poll' drivers/net/ethernet/sun/cassini.c:2084:24: warning: suggest braces around empty body in an ?else? statement [-Wempty-body] drivers/net/ethernet/via/via-velocity.c:379: warning: cannot understand function prototype: 'const struct of_device_id velocity_of_ids[] = ' drivers/net/ethernet/via/via-velocity.c:393: warning: Function parameter or member 'chip_id' not described in 'get_chip_name' drivers/net/ethernet/via/via-velocity.c:393: warning: Excess function parameter 'id' description in 'get_chip_name' drivers/net/ethernet/via/via-velocity.c:758: warning: Function parameter or member 'mii_addr' not described in 'velocity_mii_write' drivers/net/ethernet/via/via-velocity.c:758: warning: Excess function parameter 'index' description in 'velocity_mii_write' drivers/net/ethernet/via/via-velocity.c:879: warning: Function parameter or member 'vptr' not described in 'velocity_set_media_mode' drivers/net/ethernet/via/via-velocity.c:1264: warning: Function parameter or member 'vptr' not described in 'setup_queue_timers' drivers/net/ethernet/via/via-velocity.c:1290: warning: Function parameter or member 'vptr' not described in 'setup_adaptive_interrupts' drivers/net/ethernet/via/via-velocity.c:1731: warning: Function parameter or member 'td' not described in 'velocity_free_tx_buf' drivers/net/ethernet/via/via-velocity.c:1906: warning: Function parameter or member 'vptr' not described in 'velocity_tx_srv' drivers/net/ethernet/via/via-velocity.c:2003: warning: Function parameter or member 'vptr' not described in 'velocity_rx_copy' drivers/net/ethernet/via/via-velocity.c:2003: warning: Excess function parameter 'rd' description in 'velocity_rx_copy' drivers/net/ethernet/via/via-velocity.c:2003: warning: Excess function parameter 'dev' description in 'velocity_rx_copy' drivers/net/ethernet/via/via-velocity.c:2106: warning: Function parameter or member 'budget_left' not described in 'velocity_rx_srv' drivers/net/ethernet/via/via-velocity.c:2657: warning: Excess function parameter 'pdev' description in 'velocity_init_info' drivers/net/ethernet/via/via-velocity.c:2673: warning: Excess function parameter 'pdev' description in 'velocity_get_pci_info' drivers/net/ethernet/via/via-velocity.c:2709: warning: Excess function parameter 'pdev' description in 'velocity_get_platform_info' drivers/net/ethernet/via/via-velocity.c:2764: warning: Function parameter or member 'dev' not described in 'velocity_probe' drivers/net/ethernet/via/via-velocity.c:2764: warning: Function parameter or member 'irq' not described in 'velocity_probe' drivers/net/ethernet/via/via-velocity.c:2764: warning: Function parameter or member 'info' not described in 'velocity_probe' drivers/net/ethernet/via/via-velocity.c:2764: warning: Excess function parameter 'pdev' description in 'velocity_probe' drivers/net/ethernet/via/via-velocity.c:2764: warning: Excess function parameter 'ent' description in 'velocity_probe' drivers/net/ethernet/via/via-velocity.c:2979: warning: Function parameter or member 'size' not described in 'wol_calc_crc' drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:343: warning: Function parameter or member 't' not described in 'stmmac_eee_ctrl_timer' drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:343: warning: Excess function parameter 'arg' description in 'stmmac_eee_ctrl_timer'drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:712: warning: bad line: as requested.drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:775: warning: Function parameter or member 'duplex' not described in 'stmmac_mac_flow_ctrl' drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:1949: warning: Function parameter or member 'budget' not described in 'stmmac_tx_clean' drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:2343: warning: Function parameter or member 't' not described in 'stmmac_tx_timer' drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:2343: warning: Excess function parameter 'data' description in 'stmmac_tx_timer' drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:2611: warning: Function parameter or member 'init_ptp' not described in 'stmmac_hw_setup' drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:2969: warning: Function parameter or member 'last_segment' not described in 'stmmac_tso_allocator' drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:2969: warning: Excess function parameter 'last_segmant' description in 'stmmac_tso_allocator' drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3936: warning: Function parameter or member 'txqueue' not described in 'stmmac_tx_timeout' drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:5168: warning: Function parameter or member 'priv' not described in 'stmmac_reset_queues_param' drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:5168: warning: Excess function parameter 'dev' description in 'stmmac_reset_queues_param' drivers/net/ethernet/calxeda/xgmac.c:1255: warning: Function parameter or member 'txqueue' not described in 'xgmac_tx_timeout' drivers/net/ethernet/sfc/ptp.c:186: warning: Function parameter or member 'link' not described in 'efx_ptp_event_rx' drivers/net/ethernet/sfc/ptp.c:186: warning: Function parameter or member 'expiry' not described in 'efx_ptp_event_rx' drivers/net/ethernet/sfc/ptp.c:343: warning: Function parameter or member 'rxfilter_installed' not described in 'efx_ptp_data' drivers/net/ethernet/sfc/ptp.c:343: warning: Function parameter or member 'nic_time' not described in 'efx_ptp_data' drivers/net/ethernet/sfc/ptp.c:343: warning: Function parameter or member 'ts_corrections' not described in 'efx_ptp_data' drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c:28: warning: cannot understand function prototype: 'struct rk_priv_data; ' drivers/net/ethernet/ethoc.c:221: warning: Function parameter or member 'big_endian' not described in 'ethoc' drivers/net/ethernet/ethoc.c:221: warning: Function parameter or member 'clk' not described in 'ethoc'drivers/net/ethernet/ethoc.c:221: warning: Function parameter or member 'old_link' not described in 'ethoc' drivers/net/ethernet/ethoc.c:221: warning: Function parameter or member 'old_duplex' not described in 'ethoc' drivers/net/ethernet/ethoc.c:1021: warning: Function parameter or member 'pdev' not described in 'ethoc_probe' drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:131: warning: Function parameter or member 'plat' not described in 'stmmac_mtl_setup' drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:371: warning: Function parameter or member 'np' not described in 'stmmac_of_get_mac_mode'
--- .../net/ethernet/atheros/atl1c/atl1c_main.c | 6 +- .../net/ethernet/atheros/atl1e/atl1e_main.c | 7 +- drivers/net/ethernet/atheros/atlx/atl1.c | 2 +- drivers/net/ethernet/atheros/atlx/atl2.c | 6 +- .../net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 2 + .../ethernet/broadcom/bnx2x/bnx2x_ethtool.c | 6 +- .../net/ethernet/broadcom/bnx2x/bnx2x_main.c | 12 +- .../net/ethernet/broadcom/bnx2x/bnx2x_sp.c | 98 ++--- drivers/net/ethernet/brocade/bna/bfa_cee.c | 20 +- drivers/net/ethernet/brocade/bna/bfa_ioc.c | 8 +- drivers/net/ethernet/cadence/macb_main.c | 6 +- drivers/net/ethernet/calxeda/xgmac.c | 2 + .../net/ethernet/cavium/liquidio/lio_core.c | 92 ++--- .../net/ethernet/cavium/liquidio/lio_main.c | 351 +++++++++--------- .../ethernet/cavium/liquidio/lio_vf_main.c | 158 ++++---- .../ethernet/cavium/liquidio/octeon_console.c | 12 +- .../ethernet/cavium/liquidio/octeon_device.c | 4 +- .../ethernet/cavium/liquidio/octeon_droq.c | 2 +- .../ethernet/cavium/liquidio/octeon_mailbox.c | 5 +- .../net/ethernet/chelsio/cxgb3/cxgb3_main.c | 8 +- drivers/net/ethernet/chelsio/cxgb3/sge.c | 24 +- drivers/net/ethernet/chelsio/cxgb3/t3_hw.c | 5 +- drivers/net/ethernet/cisco/enic/enic_api.c | 2 +- .../net/ethernet/cisco/enic/enic_ethtool.c | 2 +- drivers/net/ethernet/cortina/gemini.c | 2 + drivers/net/ethernet/ethoc.c | 6 +- .../net/ethernet/freescale/dpaa2/dpaa2-eth.c | 2 +- drivers/net/ethernet/freescale/fec_ptp.c | 5 +- drivers/net/ethernet/freescale/fman/fman.c | 14 +- .../net/ethernet/freescale/fman/fman_muram.c | 6 +- .../net/ethernet/freescale/fman/fman_port.c | 23 +- drivers/net/ethernet/freescale/fman/mac.c | 4 +- drivers/net/ethernet/hisilicon/hns/hnae.c | 2 +- .../net/ethernet/hisilicon/hns/hns_dsaf_mac.c | 34 +- .../ethernet/hisilicon/hns/hns_dsaf_main.c | 148 ++++---- .../ethernet/hisilicon/hns/hns_dsaf_misc.c | 9 +- .../net/ethernet/hisilicon/hns/hns_dsaf_ppe.c | 17 +- .../net/ethernet/hisilicon/hns/hns_dsaf_rcb.c | 7 +- .../ethernet/hisilicon/hns/hns_dsaf_xgmac.c | 3 +- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 4 +- .../net/ethernet/hisilicon/hns/hns_ethtool.c | 8 +- drivers/net/ethernet/hisilicon/hns_mdio.c | 3 +- drivers/net/ethernet/micrel/ksz884x.c | 46 ++- .../ethernet/microchip/encx24j600-regmap.c | 2 +- drivers/net/ethernet/natsemi/ns83820.c | 4 +- drivers/net/ethernet/neterion/s2io.c | 91 ++--- .../net/ethernet/neterion/vxge/vxge-config.c | 5 +- .../net/ethernet/neterion/vxge/vxge-ethtool.c | 2 +- .../net/ethernet/neterion/vxge/vxge-main.c | 10 +- .../net/ethernet/neterion/vxge/vxge-traffic.c | 40 +- .../oki-semi/pch_gbe/pch_gbe_ethtool.c | 4 +- .../ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 5 +- .../ethernet/oki-semi/pch_gbe/pch_gbe_param.c | 14 +- .../net/ethernet/packetengines/yellowfin.c | 2 +- .../net/ethernet/qlogic/netxen/netxen_nic.h | 3 - .../qlogic/netxen/netxen_nic_ethtool.c | 3 + drivers/net/ethernet/qualcomm/emac/emac.c | 1 + .../net/ethernet/samsung/sxgbe/sxgbe_main.c | 17 +- drivers/net/ethernet/sfc/falcon/rx.c | 2 + drivers/net/ethernet/sfc/falcon/selftest.c | 2 +- drivers/net/ethernet/sfc/net_driver.h | 2 +- drivers/net/ethernet/sfc/ptp.c | 5 + drivers/net/ethernet/sis/sis900.c | 3 +- .../net/ethernet/stmicro/stmmac/dwmac-rk.c | 2 +- .../net/ethernet/stmicro/stmmac/stmmac_main.c | 14 +- .../ethernet/stmicro/stmmac/stmmac_platform.c | 3 +- drivers/net/ethernet/sun/cassini.c | 4 +- drivers/net/ethernet/tehuti/tehuti.c | 17 +- drivers/net/ethernet/ti/davinci_cpdma.c | 2 +- drivers/net/ethernet/ti/davinci_emac.c | 5 +- drivers/net/ethernet/via/via-rhine.c | 2 +- drivers/net/ethernet/via/via-velocity.c | 27 +- 72 files changed, 794 insertions(+), 682 deletions(-)
drivers/net/ethernet/atheros/atl1c/atl1c_main.c +5 -1
@@ -204,7 +204,7 @@ static u32 atl1c_wait_until_idle(struct atl1c_hw *hw, u32 modu_ctrl)/** * atl1c_phy_config - Timer Call-back -* @data: pointer to netdev cast into an unsigned long +* @t: timer list containing pointer to netdev cast into an unsigned long */ static void atl1c_phy_config (struct timer_list *t) {
@@ -346,6 +346,7 @@ static void atl1c_del_timer(struct atl1c_adapter *adapter)/** * atl1c_tx_timeout - Respond to a Tx Hang * @netdev: network interface device structure +* @txqueue: index of hanging tx queue */ static void atl1c_tx_timeout (struct net_device *netdev,unsigned int txqueue) {
@@ -846,6 +847,7 @@ static inline void atl1c_clean_buffer(struct pci_dev *pdev,/** * atl1c_clean_tx_ring - Free Tx-skb * @adapter: board private structure +* @type: type of transmit queue */ static void atl1c_clean_tx_ring (struct atl1c_adapter *adapter,enum atl1c_trans_queue type)
@@ -1861,6 +1863,8 @@ static void atl1c_clean_rx_irq(struct atl1c_adapter *adapter,/** * atl1c_clean - NAPI Rx polling callback +* @napi: napi info +* @budget: limit of packets to clean */ static int atl1c_clean (struct napi_struct *napi,int budget) {
drivers/net/ethernet/atheros/atl1e/atl1e_main.c +5 -2
@@ -111,7 +111,7 @@ static inline void atl1e_irq_reset(struct atl1e_adapter *adapter)/** * atl1e_phy_config - Timer Call-back -* @data: pointer to netdev cast into an unsigned long +* @t: timer list containing pointer to netdev cast into an unsigned long */ static void atl1e_phy_config (struct timer_list *t) {
@@ -196,7 +196,7 @@ static int atl1e_check_link(struct atl1e_adapter *adapter)/** * atl1e_link_chg_task - deal with link change event Out of interrupt context -* @netdev: network interface device structure +* @work: work struct with driver info */ static void atl1e_link_chg_task (struct work_struct *work) {
@@ -246,6 +246,7 @@ static void atl1e_cancel_work(struct atl1e_adapter *adapter)/** * atl1e_tx_timeout - Respond to a Tx Hang * @netdev: network interface device structure +* @txqueue: the index of the hanging queue */ static void atl1e_tx_timeout (struct net_device *netdev,unsigned int txqueue) {
@@ -1502,6 +1503,8 @@ static void atl1e_clean_rx_irq(struct atl1e_adapter *adapter, u8 que,/** * atl1e_clean - NAPI Rx polling callback +* @napi: napi info +* @budget: number of packets to clean */ static int atl1e_clean (struct napi_struct *napi,int budget) {
drivers/net/ethernet/atheros/atlx/atl1.c +1 -1
@@ -2552,7 +2552,7 @@ static irqreturn_t atl1_intr(int irq, void *data)/** * atl1_phy_config - Timer Call-back -* @data: pointer to netdev cast into an unsigned long +* @t: timer_list containing pointer to netdev cast into an unsigned long */ static void atl1_phy_config (struct timer_list *t) {
drivers/net/ethernet/atheros/atlx/atl2.c +4 -2
@@ -994,6 +994,7 @@ static int atl2_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)/** * atl2_tx_timeout - Respond to a Tx Hang * @netdev: network interface device structure +* @txqueue: index of the hanging transmit queue */ static void atl2_tx_timeout (struct net_device *netdev,unsigned int txqueue) {
@@ -1005,7 +1006,7 @@ static void atl2_tx_timeout(struct net_device *netdev, unsigned int txqueue)/** * atl2_watchdog - Timer Call-back -* @data: pointer to netdev cast into an unsigned long +* @t: timer list containing a pointer to netdev cast into an unsigned long */ static void atl2_watchdog (struct timer_list *t) {
@@ -1030,7 +1031,7 @@ static void atl2_watchdog(struct timer_list *t)/** * atl2_phy_config - Timer Call-back -* @data: pointer to netdev cast into an unsigned long +* @t: timer list containing a pointer to netdev cast into an unsigned long */ static void atl2_phy_config (struct timer_list *t) {
@@ -1235,6 +1236,7 @@ static int atl2_check_link(struct atl2_adapter *adapter)/** * atl2_link_chg_task - deal with link change event Out of interrupt context +* @work: pointer to work struct with private info */ static void atl2_link_chg_task (struct work_struct *work) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c +2 -0
@@ -504,6 +504,7 @@ static void bnx2x_tpa_start(struct bnx2x_fastpath *fp, u16 queue,* @len_on_bd: total length of the first packet for the * aggregation. * @pkt_len: length of all segments +* @num_of_coalesced_segs: count of segments * * Approximate value of the MSS for this aggregation calculated using * the first packet of it.
@@ -1958,6 +1959,7 @@ void bnx2x_set_num_queues(struct bnx2x *bp)* bnx2x_set_real_num_queues - configure netdev->real_num_[tx,rx]_queues * * @bp: Driver handle +* @include_cnic: handle cnic case * * We currently support for at most 16 Tx queues for each CoS thus we will * allocate a multiple of 16 for ETH L2 rings according to the value of the
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c +4 -2
@@ -839,8 +839,9 @@ static bool bnx2x_is_wreg_in_chip(struct bnx2x *bp,/** * bnx2x_read_pages_regs - read "paged" registers * -* @bp device handle -* @p output buffer +* @bp: device handle +* @p: output buffer +* @preset: the preset value * * Reads "paged" memories: memories that may only be read by first writing to a * specific address ("write address") and then reading from a specific address
@@ -3561,6 +3562,7 @@ static void bnx2x_get_channels(struct net_device *dev,* bnx2x_change_num_queues - change the number of RSS queues. * * @bp: bnx2x private structure +* @num_rss: rss count * * Re-configure interrupt mode to get the new number of MSI-X * vectors and re-add NAPI objects.
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +5 -7
@@ -3086,9 +3086,9 @@ void bnx2x_func_init(struct bnx2x *bp, struct bnx2x_func_init_params *p)/** * bnx2x_get_common_flags - Return common flags * -* @bp device handle -* @fp queue handle -* @zero_stats TRUE if statistics zeroing is needed +* @bp: device handle +* @fp: queue handle +* @zero_stats: TRUE if statistics zeroing is needed * * Return the flags that are common for the Tx-only and not normal connections. */
@@ -13591,8 +13591,8 @@ static int bnx2x_set_qm_cid_count(struct bnx2x *bp)/** * bnx2x_get_num_none_def_sbs - return the number of none default SBs -* -* @dev: pci device +* @pdev: pci device +* @cnic_cnt: count * */ static int bnx2x_get_num_non_def_sbs (struct pci_dev *pdev,int cnic_cnt)
@@ -14451,9 +14451,7 @@ module_exit(bnx2x_cleanup);/** * bnx2x_set_iscsi_eth_mac_addr - set iSCSI MAC(s). -* * @bp: driver handle -* @set: set or clear the CAM entry * * This function will wait until the ramrod completion returns. * Return 0 if success, -ENODEV if ramrod doesn't return.
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c +50 -48
290 lines not on this page · raw message
drivers/net/ethernet/brocade/bna/bfa_cee.c +11 -9
@@ -102,14 +102,10 @@ bfa_cee_get_stats_isr(struct bfa_cee *cee, enum bfa_status status) }/** -* bfa_cee_get_attr_isr() +* bfa_cee_reset_stats_isr - CEE ISR for reset-stats responses from f/w * -* @brief CEE ISR for reset-stats responses from f/w -* -* @param[in] cee - Pointer to the CEE module -* status - Return status from the f/w -* -* @return void +* @cee: Input Pointer to the CEE module +* @status: Return status from the f/w */ static void bfa_cee_reset_stats_isr (struct bfa_cee *cee,enum bfa_status status)
@@ -148,9 +144,12 @@ bfa_nw_cee_mem_claim(struct bfa_cee *cee, u8 *dma_kva, u64 dma_pa) }/** -* bfa_cee_get_attr - Send the request to the f/w to fetch CEE attributes. +* bfa_nw_cee_get_attr - Send the request to the f/w to fetch CEE attributes. * * @cee: Pointer to the CEE module data structure. +* @attr: attribute requested +* @cbfn: function pointer +* @cbarg: function pointer arguments * * Return: status */
@@ -181,7 +180,9 @@ bfa_nw_cee_get_attr(struct bfa_cee *cee, struct bfa_cee_attr *attr, }/** -* bfa_cee_isrs - Handles Mail-box interrupts for CEE module. +* bfa_cee_isr - Handles Mail-box interrupts for CEE module. +* @cbarg: argument passed containing pointer to the CEE module data structure. +* @m: message pointer */ static void
@@ -210,6 +211,7 @@ bfa_cee_isr(void *cbarg, struct bfi_mbmsg *m)/** * bfa_cee_notify - CEE module heart-beat failure handler. * +* @arg: argument passed containing pointer to the CEE module data structure. * @event: IOC event type */
drivers/net/ethernet/brocade/bna/bfa_ioc.c +7 -1
@@ -1763,7 +1763,7 @@ bfa_ioc_flash_fwver_cmp(struct bfa_ioc *ioc,return BFI_IOC_IMG_VER_INCOMP ; } -/** +/* * Returns TRUE if driver is willing to work with current smem f/w version. */ bool
@@ -2469,6 +2469,7 @@ bfa_ioc_isr(struct bfa_ioc *ioc, struct bfi_mbmsg *m)* * @ioc: memory for IOC * @bfa: driver instance structure +* @cbfn: callback function */ void bfa_nw_ioc_attach (struct bfa_ioc *ioc,void *bfa,struct bfa_ioc_cbfn *cbfn)
@@ -2500,7 +2501,9 @@ bfa_nw_ioc_detach(struct bfa_ioc *ioc)/** * bfa_nw_ioc_pci_init - Setup IOC PCI properties. * +* @ioc: memory for IOC * @pcidev: PCI device information for this IOC +* @clscode: class code */ void bfa_nw_ioc_pci_init(struct bfa_ioc *ioc, struct bfa_pcidev *pcidev,
@@ -2569,6 +2572,7 @@ bfa_nw_ioc_pci_init(struct bfa_ioc *ioc, struct bfa_pcidev *pcidev,/** * bfa_nw_ioc_mem_claim - Initialize IOC dma memory * +* @ioc: memory for IOC * @dm_kva: kernel virtual address of IOC dma memory * @dm_pa: physical address of IOC dma memory */
@@ -2636,6 +2640,8 @@ bfa_nw_ioc_mbox_regisr(struct bfa_ioc *ioc, enum bfi_mclass mc,* * @ioc: IOC instance * @cmd: Mailbox command +* @cbfn: callback function +* @cbarg: arguments to callback * * Waits if mailbox is busy. Responsibility of caller to serialize */
drivers/net/ethernet/cadence/macb_main.c +3 -3
@@ -458,9 +458,9 @@ static void macb_init_buffers(struct macb *bp)/** * macb_set_tx_clk() - Set a clock to a new frequency -* @clk Pointer to the clock to change -* @rate New frequency in Hz -* @dev Pointer to the struct net_device +* @clk: Pointer to the clock to change +* @speed: New frequency in Hz +* @dev: Pointer to the struct net_device */ static void macb_set_tx_clk (struct clk *clk,int speed,struct net_device *dev) {
drivers/net/ethernet/calxeda/xgmac.c +2 -0
@@ -1246,6 +1246,8 @@ static int xgmac_poll(struct napi_struct *napi, int budget)/** * xgmac_tx_timeout * @dev : Pointer to net device structure +* @txqueue: index of the hung transmit queue +* * Description: this function is called when a packet transmission fails to * complete within a reasonable tmrate. The driver will mark the error in the * netdev structure and arrange for the device to be reset to a sane state
drivers/net/ethernet/cavium/liquidio/lio_core.c +49 -43
191 lines not on this page · raw message
drivers/net/ethernet/cavium/liquidio/lio_main.c +180 -171
745 lines not on this page · raw message
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c +80 -78
353 lines not on this page · raw message
drivers/net/ethernet/cavium/liquidio/octeon_console.c +6 -6
@@ -15,7 +15,7 @@* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or * NONINFRINGEMENT. See the GNU General Public License for more details. ***********************************************************************/ -/** +/* * @file octeon_console.c */ #include <linux/moduleparam.h>
@@ -131,7 +131,7 @@ struct octeon_pci_console_desc {/* Implicit storage for console_addr_array */ }; -/** +/* * This function is the implementation of the get macros defined * for individual structure members. The argument are generated * by the macros inorder to read only the needed memory.
@@ -160,7 +160,7 @@ static inline u64 __cvmx_bootmem_desc_get(struct octeon_device *oct, } } -/** +/* * This function retrieves the string name of a named block. It is * more complicated than a simple memcpy() since the named block * descriptor may not be directly accessible.
@@ -182,7 +182,7 @@ static void CVMX_BOOTMEM_NAMED_GET_NAME(struct octeon_device *oct,/* See header file for descriptions of functions */ -/** +/* * Check the version information on the bootmem descriptor * * @param exact_match
@@ -323,7 +323,7 @@ static u64 cvmx_bootmem_phy_named_block_find(struct octeon_device *oct,return result; } -/** +/* * Find a named block on the remote Octeon * * @param name Name of block to find
@@ -707,7 +707,7 @@ int octeon_add_console(struct octeon_device *oct, u32 console_num,return ret; } -/** +/* * Removes all consoles * * @param oct octeon device
drivers/net/ethernet/cavium/liquidio/octeon_device.c +2 -2
@@ -1307,7 +1307,7 @@ struct octeon_config *octeon_get_conf(struct octeon_device *oct)/* scratch register address is same in all the OCT-II and CN70XX models */ #define CNXX_SLI_SCRATCH1 0x3C0 -/** Get the octeon device pointer. +/* Get the octeon device pointer. * @param octeon_id - The id for which the octeon device pointer is required. * @return Success: Octeon device pointer. * @return Failure: NULL.
@@ -1410,7 +1410,7 @@ int octeon_wait_for_ddr_init(struct octeon_device *oct, u32 *timeout)return ret; } -/** Get the octeon id assigned to the octeon device passed as argument. +/* Get the octeon id assigned to the octeon device passed as argument. * This function is exported to other modules. * @param dev - octeon device pointer passed as a void *. * @return octeon device id
drivers/net/ethernet/cavium/liquidio/octeon_droq.c +1 -1
@@ -774,7 +774,7 @@ octeon_droq_process_packets(struct octeon_device *oct,return 0 ; } -/** +/* * Utility function to poll for packets. check_hw_for_packets must be * called before calling this routine. */
drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c +3 -2
@@ -28,7 +28,7 @@/** * octeon_mbox_read: -* @oct: Pointer mailbox +* @mbox: Pointer mailbox * * Reads the 8-bytes of data from the mbox register * Writes back the acknowldgement inidcating completion of read
@@ -285,7 +285,8 @@ static int octeon_mbox_process_cmd(struct octeon_mbox *mbox, }/** -*octeon_mbox_process_message: +* octeon_mbox_process_message +* @mbox: mailbox * * Process the received mbox message. */
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c +4 -4
@@ -148,7 +148,7 @@ struct workqueue_struct *cxgb3_wq;/** * link_report - show link status and link speed/duplex -* @p: the port whose settings are to be reported +* @dev: the port whose settings are to be reported * * Shows the link status, speed, and duplex of a port. */
@@ -304,8 +304,8 @@ void t3_os_link_changed(struct adapter *adapter, int port_id, int link_stat,/** * t3_os_phymod_changed - handle PHY module changes -* @phy: the PHY reporting the module change -* @mod_type: new module type +* @adap: the adapter associated with the link change +* @port_id: the port index whose limk status has changed * * This is the OS-dependent handler for PHY module changes. It is * invoked when a PHY module is removed or inserted for any OS-specific
@@ -1200,7 +1200,7 @@ static void cxgb_vlan_mode(struct net_device *dev, netdev_features_t features)/** * cxgb_up - enable the adapter -* @adapter: adapter being enabled +* @adap: adapter being enabled * * Called when the first port is enabled, this function performs the * actions necessary to make an adapter operational, such as completing
drivers/net/ethernet/chelsio/cxgb3/sge.c +14 -10
@@ -372,7 +372,7 @@ static void clear_rx_desc(struct pci_dev *pdev, const struct sge_fl *q,/** * free_rx_bufs - free the Rx buffers on an SGE free list * @pdev: the PCI device associated with the adapter -* @rxq: the SGE free list to clean up +* @q: the SGE free list to clean up * * Release the buffers on an SGE free-buffer Rx queue. HW fetching from * this queue should be stopped before calling this function.
@@ -493,7 +493,7 @@ static inline void ring_fl_db(struct adapter *adap, struct sge_fl *q)/** * refill_fl - refill an SGE free-buffer list -* @adapter: the adapter +* @adap: the adapter * @q: the free-list to refill * @n: the number of new buffers to allocate * @gfp: the gfp flags for allocating new buffers
@@ -568,7 +568,7 @@ static inline void __refill_fl(struct adapter *adap, struct sge_fl *fl)/** * recycle_rx_buf - recycle a receive buffer -* @adapter: the adapter +* @adap: the adapter * @q: the SGE free list * @idx: index of buffer to recycle *
@@ -825,6 +825,7 @@ static struct sk_buff *get_packet(struct adapter *adap, struct sge_fl *fl,* get_packet_pg - return the next ingress packet buffer from a free list * @adap: the adapter that received the packet * @fl: the SGE free list holding the packet +* @q: the queue * @len: the packet length including any SGE padding * @drop_thres: # of remaining buffers before we start dropping packets *
@@ -1173,6 +1174,7 @@ static void write_wr_hdr_sgl(unsigned int ndesc, struct sk_buff *skb,* @q: the Tx queue * @ndesc: number of descriptors the packet will occupy * @compl: the value of the COMPL bit to use +* @addr: address * * Generate a TX_PKT work request to send the supplied packet. */
@@ -1622,6 +1624,7 @@ static void setup_deferred_unmapping(struct sk_buff *skb, struct pci_dev *pdev,* @pidx: index of the first Tx descriptor to write * @gen: the generation value to use * @ndesc: number of descriptors the packet will occupy +* @addr: the address * * Write an offload work request to send the supplied packet. The packet * data already carry the work request with most fields populated.
@@ -1883,7 +1886,7 @@ static inline void deliver_partial_bundle(struct t3cdev *tdev,/** * ofld_poll - NAPI handler for offload packets in interrupt mode -* @dev: the network device doing the polling +* @napi: the network device doing the polling * @budget: polling budget * * The NAPI handler for offload packets when a response queue is serviced
@@ -2007,7 +2010,7 @@ static void restart_tx(struct sge_qset *qs)/** * cxgb3_arp_process - process an ARP request probing a private IP address -* @adapter: the adapter +* @pi: the port info * @skb: the skbuff containing the ARP request * * Check if the ARP request is probing the private IP address
@@ -2069,7 +2072,8 @@ static void cxgb3_process_iscsi_prov_pack(struct port_info *pi,* @adap: the adapter * @rq: the response queue that received the packet * @skb: the packet -* @pad: amount of padding at the start of the buffer +* @pad: padding +* @lro: large receive offload * * Process an ingress ethernet pakcet and deliver it to the stack. * The padding is 2 if the packet was delivered in an Rx buffer and 0
@@ -2239,7 +2243,7 @@ static inline void handle_rsp_cntrl_info(struct sge_qset *qs, u32 flags)/** * check_ring_db - check if we need to ring any doorbells -* @adapter: the adapter +* @adap: the adapter * @qs: the queue set whose Tx queues are to be examined * @sleeping: indicates which Tx queue sent GTS *
@@ -2899,7 +2903,7 @@ void t3_sge_err_intr_handler(struct adapter *adapter)/** * sge_timer_tx - perform periodic maintenance of an SGE qset -* @data: the SGE queue set to maintain +* @t: a timer list containing the SGE queue set to maintain * * Runs periodically from a timer to perform maintenance of an SGE queue * set. It performs two tasks:
@@ -2943,7 +2947,7 @@ static void sge_timer_tx(struct timer_list *t)/** * sge_timer_rx - perform periodic maintenance of an SGE qset -* @data: the SGE queue set to maintain +* @t: the timer list containing the SGE queue set to maintain * * a) Replenishes Rx queues that have run out due to memory shortage. * Normally new Rx buffers are added when existing ones are consumed but
@@ -3021,7 +3025,7 @@ void t3_update_qset_coalesce(struct sge_qset *qs, const struct qset_params *p)* @irq_vec_idx: the IRQ vector index for response queue interrupts * @p: configuration parameters for this queue set * @ntxq: number of Tx queues for the queue set -* @netdev: net device associated with this queue set +* @dev: net device associated with this queue set * @netdevq: net device TX queue associated with this queue set * * Allocate resources and initialize an SGE queue set. A queue set
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c +3 -2
@@ -2484,6 +2484,7 @@ int t3_sge_disable_cqcntxt(struct adapter *adapter, unsigned int id)* @adapter: the adapter * @id: the context id * @op: the operation to perform +* @credits: credit value to write * * Perform the selected operation on an SGE completion queue context. * The caller is responsible for ensuring only one context operation
@@ -2885,7 +2886,7 @@ static void init_cong_ctrl(unsigned short *a, unsigned short *b)* t3_load_mtus - write the MTU and congestion control HW tables * @adap: the adapter * @mtus: the unrestricted values for the MTU table -* @alphs: the values for the congestion control alpha parameter +* @alpha: the values for the congestion control alpha parameter * @beta: the values for the congestion control beta parameter * @mtu_cap: the maximum permitted effective MTU *
@@ -3483,7 +3484,7 @@ static void get_pci_mode(struct adapter *adapter, struct pci_params *p)/** * init_link_config - initialize a link's SW state * @lc: structure holding the link state -* @ai: information about the current card +* @caps: information about the current card * * Initializes the SW state maintained for each link, including the link's * capabilities and default speed/duplex/flow-control/autonegotiation
drivers/net/ethernet/cisco/enic/enic_api.c +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Cisco Systems, Inc. All rights reserved. * * This program is free software; you may redistribute it and/or modify
drivers/net/ethernet/cisco/enic/enic_ethtool.c +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Copyright 2013 Cisco Systems, Inc. All rights reserved. * * This program is free software; you may redistribute it and/or modify
drivers/net/ethernet/cortina/gemini.c +2 -0
@@ -85,6 +85,8 @@ MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all)");/** * struct gmac_queue_page - page buffer per-page info +* @page: the page struct +* @mapping: the dma address handle */ struct gmac_queue_page {struct page *page;
drivers/net/ethernet/ethoc.c +5 -1
@@ -177,6 +177,7 @@ MODULE_PARM_DESC(buffer_size, "DMA buffer allocation size");* struct ethoc - driver-private device structure * @iobase: pointer to I/O memory region * @membase: pointer to buffer memory region +* @big_endian: just big or little (endian) * @num_bd: number of buffer descriptors * @num_tx: number of send buffers * @cur_tx: last send buffer written
@@ -189,7 +190,10 @@ MODULE_PARM_DESC(buffer_size, "DMA buffer allocation size");* @msg_enable: device state flags * @lock: device lock * @mdio: MDIO bus for PHY access +* @clk: clock * @phy_id: address of attached PHY +* @old_link: previous link info +* @old_duplex: previous duplex info */ struct ethoc {void __iomem *iobase;
@@ -1015,7 +1019,7 @@ static const struct net_device_ops ethoc_netdev_ops = {/** * ethoc_probe - initialize OpenCores ethernet MAC -* pdev: platform device +* @pdev: platform device */ static int ethoc_probe (struct platform_device *pdev) {
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c +1 -1
@@ -1344,7 +1344,7 @@ static int dpaa2_eth_seed_pool(struct dpaa2_eth_priv *priv, u16 bpid)return 0 ; } -/** +/* * Drain the specified number of buffers from the DPNI's private buffer pool. * @count must not exceeed DPAA2_ETH_BUFS_PER_CMD */
drivers/net/ethernet/freescale/fec_ptp.c +3 -2
@@ -512,7 +512,7 @@ int fec_ptp_get(struct net_device *ndev, struct ifreq *ifr) -EFAULT : 0; } -/** +/* * fec_time_keep - call timecounter_read every second to avoid timer overrun * because ENET just support 32bit counter, will timeout in 4s */
@@ -566,7 +566,8 @@ static irqreturn_t fec_pps_interrupt(int irq, void *dev_id)/** * fec_ptp_init -* @ndev: The FEC network adapter +* @pdev: The FEC network adapter +* @irq_idx: the interrupt index * * This function performs the required steps for enabling ptp * support. If ptp support has already been loaded it simply calls the
drivers/net/ethernet/freescale/fman/fman.c +7 -7
@@ -2063,11 +2063,11 @@ static int fman_set_exception(struct fman *fman,/** * fman_register_intr * @fman: A Pointer to FMan device -* @mod: Calling module +* @module: Calling module * @mod_id: Module id (if more than 1 exists, '0' if not) * @intr_type: Interrupt type (error/normal) selection. -* @f_isr: The interrupt service routine. -* @h_src_arg: Argument to be passed to f_isr. +* @isr_cb: The interrupt service routine. +* @src_arg: Argument to be passed to isr_cb. * * Used to register an event handler to be processed by FMan *
@@ -2091,7 +2091,7 @@ EXPORT_SYMBOL(fman_register_intr);/** * fman_unregister_intr * @fman: A Pointer to FMan device -* @mod: Calling module +* @module: Calling module * @mod_id: Module id (if more than 1 exists, '0' if not) * @intr_type: Interrupt type (error/normal) selection. *
@@ -2342,8 +2342,8 @@ EXPORT_SYMBOL(fman_get_bmi_max_fifo_size);/** * fman_get_revision -* @fman - Pointer to the FMan module -* @rev_info - A structure of revision information parameters. +* @fman: - Pointer to the FMan module +* @rev_info: - A structure of revision information parameters. * * Returns the FM revision *
@@ -2508,7 +2508,7 @@ EXPORT_SYMBOL(fman_get_rx_extra_headroom);/** * fman_bind -* @dev: FMan OF device pointer +* @fm_dev: FMan OF device pointer * * Bind to a specific FMan device. *
drivers/net/ethernet/freescale/fman/fman_muram.c +3 -3
@@ -144,9 +144,9 @@ unsigned long fman_muram_alloc(struct muram_info *muram, size_t size)/** * fman_muram_free_mem -* muram: FM-MURAM module pointer. -* offset: offset of the memory region to be freed. -* size: size of the memory to be freed. +* @muram: FM-MURAM module pointer. +* @offset: offset of the memory region to be freed. +* @size: size of the memory to be freed. * * Free an allocated memory from FM-MURAM partition. */
drivers/net/ethernet/freescale/fman/fman_port.c +13 -10
@@ -1410,9 +1410,11 @@ int fman_port_config(struct fman_port *port, struct fman_port_params *params) }EXPORT_SYMBOL (fman_port_config); -/** +/* * fman_port_use_kg_hash -* port: A pointer to a FM Port module. +* @port: A pointer to a FM Port module. +* @enable: enable or disable +* * Sets the HW KeyGen or the BMI as HW Parser next engine, enabling * or bypassing the KeyGen hashing of Rx traffic */
@@ -1430,7 +1432,8 @@ EXPORT_SYMBOL(fman_port_use_kg_hash);/** * fman_port_init -* port: A pointer to a FM Port module. +* @port: A pointer to a FM Port module. +* * Initializes the FM PORT module by defining the software structure and * configuring the hardware registers. *
@@ -1524,8 +1527,8 @@ EXPORT_SYMBOL(fman_port_init);/** * fman_port_cfg_buf_prefix_content -* @port A pointer to a FM Port module. -* @buffer_prefix_content A structure of parameters describing +* @port: A pointer to a FM Port module. +* @buffer_prefix_content: A structure of parameters describing * the structure of the buffer. * Out parameter: * Start margin - offset of data from
@@ -1570,7 +1573,7 @@ EXPORT_SYMBOL(fman_port_cfg_buf_prefix_content);/** * fman_port_disable -* port: A pointer to a FM Port module. +* @port: A pointer to a FM Port module. * * Gracefully disable an FM port. The port will not start new tasks after all * tasks associated with the port are terminated.
@@ -1651,7 +1654,7 @@ EXPORT_SYMBOL(fman_port_disable);/** * fman_port_enable -* port: A pointer to a FM Port module. +* @port: A pointer to a FM Port module. * * A runtime routine provided to allow disable/enable of port. *
@@ -1697,7 +1700,7 @@ EXPORT_SYMBOL(fman_port_enable);/** * fman_port_bind -* dev: FMan Port OF device pointer +* @dev: FMan Port OF device pointer * * Bind to a specific FMan Port. *
@@ -1713,7 +1716,7 @@ EXPORT_SYMBOL(fman_port_bind);/** * fman_port_get_qman_channel_id -* port: Pointer to the FMan port devuce +* @port: Pointer to the FMan port devuce * * Get the QMan channel ID for the specific port *
@@ -1727,7 +1730,7 @@ EXPORT_SYMBOL(fman_port_get_qman_channel_id);/** * fman_port_get_device -* port: Pointer to the FMan port device +* @port: Pointer to the FMan port device * * Get the 'struct device' associated to the specified FMan port device *
drivers/net/ethernet/freescale/fman/mac.c +2 -2
@@ -359,8 +359,8 @@ EXPORT_SYMBOL(fman_set_mac_active_pause);/** * fman_get_pause_cfg * @mac_dev: A pointer to the MAC device -* @rx: Return value for RX setting -* @tx: Return value for TX setting +* @rx_pause: Return value for RX setting +* @tx_pause: Return value for TX setting * * Determine the MAC RX/TX PAUSE frames settings based on PHY * autonegotiation or values set by eththool.
drivers/net/ethernet/hisilicon/hns/hnae.c +1 -1
@@ -270,7 +270,7 @@ static void hnae_fini_queue(struct hnae_queue *q)hnae_fini_ring (&q->rx_ring); } -/** +/* * ae_chain - define ae chain head */ static RAW_NOTIFIER_HEAD (ae_chain);
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c +17 -17
@@ -374,11 +374,12 @@ static void hns_mac_param_get(struct mac_params *param, }/** -*hns_mac_queue_config_bc_en - set broadcast rx&tx enable -*@mac_cb: mac device -*@queue: queue number -*@en:enable -*retuen 0 - success , negative --fail +* hns_mac_queue_config_bc_en - set broadcast rx&tx enable +* @mac_cb: mac device +* @port_num: queue number +* @vlan_id: vlan id` +* @enable: enable +* return 0 - success , negative --fail */ static int hns_mac_port_config_bc_en (struct hns_mac_cb *mac_cb,u32 port_num,u16 vlan_id,bool enable)
@@ -408,11 +409,11 @@ static int hns_mac_port_config_bc_en(struct hns_mac_cb *mac_cb, }/** -*hns_mac_vm_config_bc_en - set broadcast rx&tx enable -*@mac_cb: mac device -*@vmid: vm id -*@en:enable -*retuen 0 - success , negative --fail +* hns_mac_vm_config_bc_en - set broadcast rx&tx enable +* @mac_cb: mac device +* @vmid: vm id +* @enable: enable +* return 0 - success , negative --fail */ int hns_mac_vm_config_bc_en (struct hns_mac_cb *mac_cb,u32 vmid,bool enable) {
@@ -542,8 +543,8 @@ void hns_mac_stop(struct hns_mac_cb *mac_cb)/** * hns_mac_get_autoneg - get auto autonegotiation * @mac_cb: mac control block -* @enable: enable or not -* retuen 0 - success , negative --fail +* @auto_neg: output pointer to autoneg result +* return 0 - success , negative --fail */ void hns_mac_get_autoneg (struct hns_mac_cb *mac_cb,u32 *auto_neg) {
@@ -560,7 +561,7 @@ void hns_mac_get_autoneg(struct hns_mac_cb *mac_cb, u32 *auto_neg)* @mac_cb: mac control block * @rx_en: rx enable status * @tx_en: tx enable status -* retuen 0 - success , negative --fail +* return 0 - success , negative --fail */ void hns_mac_get_pauseparam (struct hns_mac_cb *mac_cb,u32 *rx_en,u32 *tx_en) {
@@ -578,7 +579,7 @@ void hns_mac_get_pauseparam(struct hns_mac_cb *mac_cb, u32 *rx_en, u32 *tx_en)* hns_mac_set_autoneg - set auto autonegotiation * @mac_cb: mac control block * @enable: enable or not -* retuen 0 - success , negative --fail +* return 0 - success , negative --fail */ int hns_mac_set_autoneg (struct hns_mac_cb *mac_cb,u8 enable) {
@@ -623,7 +624,7 @@ int hns_mac_set_pauseparam(struct hns_mac_cb *mac_cb, u32 rx_en, u32 tx_en)/** * hns_mac_init_ex - mac init * @mac_cb: mac control block -* retuen 0 - success , negative --fail +* return 0 - success , negative --fail */ static int hns_mac_init_ex (struct hns_mac_cb *mac_cb) {
@@ -800,7 +801,6 @@ static const struct {/** *hns_mac_get_info - get mac information from device node *@mac_cb: mac device -*@np:device node * return: 0 --success, negative --fail */ static int hns_mac_get_info (struct hns_mac_cb *mac_cb)
@@ -951,7 +951,7 @@ static int hns_mac_get_info(struct hns_mac_cb *mac_cb)/** * hns_mac_get_mode - get mac mode * @phy_if: phy interface -* retuen 0 - gmac, 1 - xgmac , negative --fail +* return 0 - gmac, 1 - xgmac , negative --fail */ static int hns_mac_get_mode (phy_interface_t phy_if) {
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c +78 -70
412 lines not on this page · raw message
drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c +6 -3
@@ -330,11 +330,12 @@ static void hns_dsaf_xge_srst_by_port_acpi(struct dsaf_device *dsaf_dev,* hns_dsaf_srst_chns - reset dsaf channels * @dsaf_dev: dsaf device struct pointer * @msk: xbar channels mask value: +* @dereset: false - request reset , true - drop reset +* * bit0-5 for xge0-5 * bit6-11 for ppe0-5 * bit12-17 for roce0-5 * bit18-19 for com/dfx -* @dereset: false - request reset , true - drop reset */ static void hns_dsaf_srst_chns (struct dsaf_device *dsaf_dev,u32 msk,bool dereset)
@@ -353,11 +354,12 @@ hns_dsaf_srst_chns(struct dsaf_device *dsaf_dev, u32 msk, bool dereset)* hns_dsaf_srst_chns - reset dsaf channels * @dsaf_dev: dsaf device struct pointer * @msk: xbar channels mask value: +* @dereset: false - request reset , true - drop reset +* * bit0-5 for xge0-5 * bit6-11 for ppe0-5 * bit12-17 for roce0-5 * bit18-19 for com/dfx -* @dereset: false - request reset , true - drop reset */ static void hns_dsaf_srst_chns_acpi (struct dsaf_device *dsaf_dev,u32 msk,bool dereset)
@@ -612,7 +614,8 @@ static int hns_mac_get_sfp_prsnt_acpi(struct hns_mac_cb *mac_cb, int *sfp_prsnt)/** * hns_mac_config_sds_loopback - set loop back for serdes * @mac_cb: mac control block -* retuen 0 == success +* @en: enable or disable +* return 0 == success */ static int hns_mac_config_sds_loopback (struct hns_mac_cb *mac_cb,bool en) {
drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c +9 -8
@@ -66,8 +66,8 @@ hns_ppe_common_get_ioaddr(struct ppe_common_cb *ppe_common)/** * hns_ppe_common_get_cfg - get ppe common config * @dsaf_dev: dasf device -* comm_index: common index -* retuen 0 - success , negative --fail +* @comm_index: common index +* return 0 - success , negative --fail */ static int hns_ppe_common_get_cfg (struct dsaf_device *dsaf_dev,int comm_index) {
@@ -143,7 +143,7 @@ static void hns_ppe_set_vlan_strip(struct hns_ppe_cb *ppe_cb, int en)/** * hns_ppe_checksum_hw - set ppe checksum caculate -* @ppe_device: ppe device +* @ppe_cb: ppe device * @value: value */ static void hns_ppe_checksum_hw (struct hns_ppe_cb *ppe_cb,u32 value)
@@ -179,7 +179,7 @@ static void hns_ppe_set_qid(struct ppe_common_cb *ppe_common, u32 qid)/** * hns_ppe_set_port_mode - set port mode -* @ppe_device: ppe device +* @ppe_cb: ppe device * @mode: port mode */ static void hns_ppe_set_port_mode(struct hns_ppe_cb *ppe_cb,
@@ -344,7 +344,7 @@ static void hns_ppe_init_hw(struct hns_ppe_cb *ppe_cb)/** * ppe_uninit_hw - uninit ppe -* @ppe_device: ppe device +* @ppe_cb: ppe device */ static void hns_ppe_uninit_hw (struct hns_ppe_cb *ppe_cb) {
@@ -384,7 +384,8 @@ void hns_ppe_uninit(struct dsaf_device *dsaf_dev)/** * hns_ppe_reset - reinit ppe/rcb hw * @dsaf_dev: dasf device -* retuen void +* @ppe_common_index: the index +* return void */ void hns_ppe_reset_common (struct dsaf_device *dsaf_dev,u8 ppe_common_index) {
@@ -455,7 +456,7 @@ int hns_ppe_get_regs_count(void)/** * ppe_get_strings - get ppe srting -* @ppe_device: ppe device +* @ppe_cb: ppe device * @stringset: string set type * @data: output string */
@@ -513,7 +514,7 @@ void hns_ppe_get_stats(struct hns_ppe_cb *ppe_cb, u64 *data)/** * hns_ppe_init - init ppe device * @dsaf_dev: dasf device -* retuen 0 - success , negative --fail +* return 0 - success , negative --fail */ int hns_ppe_init (struct dsaf_device *dsaf_dev) {
drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c +4 -3
@@ -34,7 +34,7 @@/** *hns_rcb_wait_fbd_clean - clean fbd *@qs: ring struct pointer array -*@qnum: num of array +*@q_num: num of array *@flag: tx or rx flag */ void hns_rcb_wait_fbd_clean (struct hnae_queue **qs,int q_num,u32 flag)
@@ -191,7 +191,8 @@ void hns_rcbv2_int_clr_hw(struct hnae_queue *q, u32 flag)/** *hns_rcb_ring_enable_hw - enable ring -*@ring: rcb ring +*@q: rcb ring +*@val: value to write */ void hns_rcb_ring_enable_hw (struct hnae_queue *q,u32 val) {
@@ -844,7 +845,7 @@ void hns_rcb_update_stats(struct hnae_queue *queue)/** *hns_rcb_get_stats - get rcb statistic -*@ring: rcb ring +*@queue: rcb ring *@data:statistic value */ void hns_rcb_get_stats (struct hnae_queue *queue,u64 *data)
drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c +2 -1
@@ -242,7 +242,8 @@ static void hns_xgmac_config_pad_and_crc(void *mac_drv, u8 newval)/** *hns_xgmac_pausefrm_cfg - set pause param about xgmac *@mac_drv: mac driver -*@newval:enable of pad and crc +*@rx_en: enable receive +*@tx_en: enable transmit */ static void hns_xgmac_pausefrm_cfg (void *mac_drv,u32 rx_en,u32 tx_en) {
drivers/net/ethernet/hisilicon/hns/hns_enet.c +3 -1
@@ -752,6 +752,8 @@ static void hns_update_rx_rate(struct hnae_ring *ring)/** * smooth_alg - smoothing algrithm for adjusting coalesce parameter +* @new_param: new value +* @old_param: old value **/ static u32 smooth_alg (u32 new_param,u32 old_param) {
@@ -1829,7 +1831,7 @@ static int hns_nic_uc_unsync(struct net_device *netdev, }/** -* nic_set_multicast_list - set mutl mac address +* hns_set_multicast_list - set mutl mac address * @ndev: net device * * return void
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c +4 -4
@@ -462,7 +462,7 @@ static int __lb_clean_rings(struct hns_nic_priv *priv, }/** -* nic_run_loopback_test - run loopback test +* __lb_run_test - run loopback test * @ndev: net device * @loop_mode: loopback mode */
@@ -971,7 +971,7 @@ static void hns_get_strings(struct net_device *netdev, u32 stringset, u8 *data) }/** -* nic_get_sset_count - get string set count witch returned by nic_get_strings. +* hns_get_sset_count - get string set count returned by nic_get_strings * @netdev: net device * @stringset: string set index, 0: self test string; 1: statistics string. *
@@ -1027,7 +1027,7 @@ static int hns_phy_led_set(struct net_device *netdev, int value) }/** -* nic_set_phys_id - set phy identify LED. +* hns_set_phys_id - set phy identify LED. * @netdev: net device * @state: LED state. *
@@ -1125,7 +1125,7 @@ static void hns_get_regs(struct net_device *net_dev, struct ethtool_regs *cmd, }/** -* nic_get_regs_len - get total register len. +* hns_get_regs_len - get total register len. * @net_dev: net device * * Return total register len.
drivers/net/ethernet/hisilicon/hns_mdio.c +1 -2
@@ -210,7 +210,7 @@ static void hns_mdio_cmd_write(struct hns_mdio_device *mdio_dev,* @bus: mdio bus * @phy_id: phy id * @regnum: register num -* @value: register value +* @data: register value * * Return 0 on success, negative on failure */
@@ -273,7 +273,6 @@ static int hns_mdio_write(struct mii_bus *bus,* @bus: mdio bus * @phy_id: phy id * @regnum: register num -* @value: register value * * Return phy register value */
drivers/net/ethernet/micrel/ksz884x.c +27 -19
18 lines not on this page · raw message
drivers/net/ethernet/microchip/encx24j600-regmap.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/neterion/s2io.c +46 -45
91 lines not on this page · raw message
drivers/net/ethernet/neterion/vxge/vxge-config.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/neterion/vxge/vxge-ethtool.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/neterion/vxge/vxge-main.c +7 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/neterion/vxge/vxge-traffic.c +16 -24
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c +7 -7
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/packetengines/yellowfin.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/netxen/netxen_nic.h +0 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qualcomm/emac/emac.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c +12 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/sfc/falcon/selftest.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +9 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/ti/davinci_cpdma.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/via/via-velocity.c +14 -13
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.25.4
Part of the diff is not shown here. View the raw message.
David Miller
maintainerFrom: Jesse Brandeburg <[email protected]>
Date: Fri, 25 Sep 2020 15:24:36 -0700
Quoted 21 lines
From: Jesse Brandeburg <[email protected]>
The Goal: move to W=1 being default for
drivers/net/ethernet, and then use automation to catch more code issues (warnings) being introduced.
The status: Getting much closer but not quite done for all architectures.After applying the patches below, the
drivers/net/ethernetdirectory can be built as modules with W=1 with no warnings (so far onx64_64arch only!). As Jakub pointed out, there is much more work to do to clean up C=1, but that will be another series of changes.This series removes 1,247 warnings and hopefully allows the ethernet directory to move forward from here without more warnings being added. There is only one objtool warning now.
This version drops one of the Intel patches, as I couldn't reproduce the original issue to document the warning.
Quoted 8 lines
Some of these patches are already sent and tested on Intel Wired Lan, but the rest of the series titled
drivers/net/ethernetaffects other drivers. The changes are all pretty straightforward.Signed-off-by Jesse Brandeburg <[email protected]>Reviewed-by Jakub Kicinski <[email protected]>Reviewed-by Saeed Mahameed <[email protected]>
Series applied, but that sh_eth.c thing gives me major cancer.
There has to be a better way to describe that table and I recently pushed back on someone trying to stick a CFLAGS modification into that subdirectory's Makefile to fix it.
That strategy of initializing a table might be convenient, but with it you can't look at each table and see which registers DO NOT exist for each chip which is just as interesting as which ones do exist.
But the main point is that the warning should be avoided in a cleaner way somehow. And by doing so we'll likely make the tables more expressive.