]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: stmmac: Remove duplicate declaration of stmmac_priv
authorWan Jiabing <wanjiabing@vivo.com>
Fri, 30 Apr 2021 03:10:47 +0000 (11:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Apr 2021 22:21:44 +0000 (15:21 -0700)
In commit d866bbf5f788e ("net: stmmac: Add support for external
trigger timestamping"), struct stmmac_priv was declared at line 507
which caused duplicate struct declarations.
Remove later duplicate declaration here.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Reviewed-by: Wong Vee Khee <vee.khee.wong@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/hwif.h

index 2cc91759b91f46e33adbb689daf6a2f5a1244274..6d5e0f2b03ce36cde300afe0f391be8c6c6dd815 100644 (file)
@@ -564,7 +564,6 @@ struct stmmac_mode_ops {
 #define stmmac_clean_desc3(__priv, __args...) \
        stmmac_do_void_callback(__priv, mode, clean_desc3, __args)
 
-struct stmmac_priv;
 struct tc_cls_u32_offload;
 struct tc_cbs_qopt_offload;
 struct flow_cls_offload;