]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ethernet: mtk_eth_soc: use be32 type to store be32 values
authorSimon Horman <horms@kernel.org>
Fri, 7 Apr 2023 13:26:51 +0000 (15:26 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 11 Apr 2023 01:24:55 +0000 (18:24 -0700)
commit9bc11460bea751b5c805ac793de35a55629adb9b
tree1d8c9837bc5055f888ebcefc6975e357a4aac01c
parent6c6d5349454d1a8200a348672bb17e8030372a7d
net: ethernet: mtk_eth_soc: use be32 type to store be32 values

n_addr is used to store be32 values,
so a sparse-friendly array of be32 to store these values.

Flagged by sparse:
  .../mtk_ppe_debugfs.c:59:27: warning: incorrect type in assignment (different base types)
  .../mtk_ppe_debugfs.c:59:27:    expected unsigned int
  .../mtk_ppe_debugfs.c:59:27:    got restricted __be32 [usertype]
  .../mtk_ppe_debugfs.c:161:46: warning: cast to restricted __be16

No functional changes intended.
Compile tested only.

Signed-off-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230401-mtk_eth_soc-sparse-v2-1-963becba3cb7@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c