1 From: Jakub Kicinski <kuba@kernel.org>
2 Date: Thu, 19 May 2022 18:25:55 -0700
3 Subject: [PATCH] eth: mtk_ppe: fix up after merge
5 I missed this in the barrage of GCC 12 warnings. Commit cf2df74e202d
6 ("net: fix dev_fill_forward_path with pppoe + bridge") changed
7 the pointer into an array.
9 Fixes: d7e6f5836038 ("Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net")
10 Link: https://lore.kernel.org/r/20220520012555.2262461-1-kuba@kernel.org
11 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
14 --- a/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
15 +++ b/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
16 @@ -90,10 +90,11 @@ mtk_flow_get_wdma_info(struct net_device
18 struct net_device_path_ctx ctx = {
22 struct net_device_path path = {};
24 + memcpy(ctx.daddr, addr, sizeof(ctx.daddr));
26 if (!IS_ENABLED(CONFIG_NET_MEDIATEK_SOC_WED))