diff options
author | ChenTao <chentao107@huawei.com> | 2020-05-06 13:22:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-06 23:19:42 +0200 |
commit | df1577cbaa87d8a29bf18f41d2ba82668d59d106 (patch) | |
tree | 3c52a3fec4b1143161deeeb3a436fd26bdf8bc7c /drivers | |
parent | net: mediatek: Fix use correct return type for ndo_start_xmit() (diff) | |
download | linux-df1577cbaa87d8a29bf18f41d2ba82668d59d106.tar.xz linux-df1577cbaa87d8a29bf18f41d2ba82668d59d106.zip |
net: enetc: Make some symbols static
Fix the following warning:
drivers/net/ethernet/freescale/enetc/enetc_qos.c:427:20: warning:
symbol 'enetc_act_fwd' was not declared. Should it be static?
drivers/net/ethernet/freescale/enetc/enetc_qos.c:966:20: warning:
symbol 'enetc_check_flow_actions' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: ChenTao <chentao107@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/freescale/enetc/enetc_qos.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/enetc/enetc_qos.c b/drivers/net/ethernet/freescale/enetc/enetc_qos.c index 48e589e9d0f7..172acb602ccb 100644 --- a/drivers/net/ethernet/freescale/enetc/enetc_qos.c +++ b/drivers/net/ethernet/freescale/enetc/enetc_qos.c @@ -424,7 +424,7 @@ struct enetc_psfp { spinlock_t psfp_lock; /* spinlock for the struct enetc_psfp r/w */ }; -struct actions_fwd enetc_act_fwd[] = { +static struct actions_fwd enetc_act_fwd[] = { { BIT(FLOW_ACTION_GATE), BIT(FLOW_DISSECTOR_KEY_ETH_ADDRS), @@ -963,7 +963,8 @@ revert_sid: return err; } -struct actions_fwd *enetc_check_flow_actions(u64 acts, unsigned int inputkeys) +static struct actions_fwd *enetc_check_flow_actions(u64 acts, + unsigned int inputkeys) { int i; |