mbox series

[net-next,v2,0/7] drivers/net/phy C=1 W=1 fixes

Message ID 20200707014939.938621-1-andrew@lunn.ch
Headers show
Series drivers/net/phy C=1 W=1 fixes | expand

Message

Andrew Lunn July 7, 2020, 1:49 a.m. UTC
This fixes most of the Sparse and W=1 warnings in drivers/net/phy. The
Cavium code is still not fully clean, but it might actually be the
strange code is confusing Sparse.

v2
--
Added RB, TB, AB.
s/case/cause
Reverse Christmas tree
Module soft dependencies

Andrew Lunn (7):
  net: phy: at803x: Avoid comparison is always false warning
  net: phy: Fixup parameters in kerneldoc
  net: phy: Properly define genphy_c45_driver
  net: phy: Make  phy_10gbit_fec_features_array static
  net: phy: dp83640: Fixup cast to restricted __be16 warning
  net: phy: cavium: Improve __iomem mess
  net: phy: mdio-octeon: Cleanup module loading dependencies

 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c |  7 ++-----
 drivers/net/phy/adin.c                           | 12 ++++++------
 drivers/net/phy/at803x.c                         |  7 +++----
 drivers/net/phy/dp83640.c                        |  5 +++--
 drivers/net/phy/mdio-boardinfo.c                 |  3 ++-
 drivers/net/phy/mdio-cavium.h                    | 14 +++++++-------
 drivers/net/phy/mdio-octeon.c                    | 11 ++---------
 drivers/net/phy/mdio-thunder.c                   |  2 +-
 drivers/net/phy/mdio_device.c                    |  2 +-
 drivers/net/phy/phy_device.c                     |  4 +---
 drivers/staging/octeon/ethernet-mdio.c           |  2 +-
 drivers/staging/octeon/ethernet-mdio.h           |  2 --
 drivers/staging/octeon/ethernet.c                |  3 +--
 include/linux/phy.h                              |  3 +++
 14 files changed, 33 insertions(+), 44 deletions(-)

Comments

David Miller July 7, 2020, 7:47 p.m. UTC | #1
From: Andrew Lunn <andrew@lunn.ch>
Date: Tue,  7 Jul 2020 03:49:32 +0200

> This fixes most of the Sparse and W=1 warnings in drivers/net/phy. The
> Cavium code is still not fully clean, but it might actually be the
> strange code is confusing Sparse.
> 
> v2
> --
> Added RB, TB, AB.
> s/case/cause
> Reverse Christmas tree
> Module soft dependencies

Series applied, thanks Andrew.