mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-03 09:04:21 +08:00
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>
This commit is contained in:
parent
6c6d534945
commit
9bc11460be
@ -47,7 +47,7 @@ static const char *mtk_foe_pkt_type_str(int type)
|
||||
static void
|
||||
mtk_print_addr(struct seq_file *m, u32 *addr, bool ipv6)
|
||||
{
|
||||
u32 n_addr[4];
|
||||
__be32 n_addr[4];
|
||||
int i;
|
||||
|
||||
if (!ipv6) {
|
||||
|
Loading…
Reference in New Issue
Block a user