Skip to content

Commit 26d732b

Browse files
Matthias Kaehlckedavem330
authored andcommitted
net: jme: Remove unused functions
The functions jme_restart_tx_engine(), jme_pause_rx() and jme_resume_rx() are not used. Removing them fixes the following warnings when building with clang: drivers/net/ethernet/jme.c:694:1: error: unused function 'jme_restart_tx_engine' [-Werror,-Wunused-function] drivers/net/ethernet/jme.c:2393:20: error: unused function 'jme_pause_rx' [-Werror,-Wunused-function] drivers/net/ethernet/jme.c:2406:20: error: unused function 'jme_resume_rx' [-Werror,-Wunused-function] Signed-off-by: Matthias Kaehlcke <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 52c05fc commit 26d732b

File tree

1 file changed

+0
-42
lines changed
  • drivers/net/ethernet

1 file changed

+0
-42
lines changed

drivers/net/ethernet/jme.c

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -690,17 +690,6 @@ jme_enable_tx_engine(struct jme_adapter *jme)
690690
jme_mac_txclk_on(jme);
691691
}
692692

693-
static inline void
694-
jme_restart_tx_engine(struct jme_adapter *jme)
695-
{
696-
/*
697-
* Restart TX Engine
698-
*/
699-
jwrite32(jme, JME_TXCS, jme->reg_txcs |
700-
TXCS_SELECT_QUEUE0 |
701-
TXCS_ENABLE);
702-
}
703-
704693
static inline void
705694
jme_disable_tx_engine(struct jme_adapter *jme)
706695
{
@@ -2382,37 +2371,6 @@ jme_tx_timeout(struct net_device *netdev)
23822371
jme_reset_link(jme);
23832372
}
23842373

2385-
static inline void jme_pause_rx(struct jme_adapter *jme)
2386-
{
2387-
atomic_dec(&jme->link_changing);
2388-
2389-
jme_set_rx_pcc(jme, PCC_OFF);
2390-
if (test_bit(JME_FLAG_POLL, &jme->flags)) {
2391-
JME_NAPI_DISABLE(jme);
2392-
} else {
2393-
tasklet_disable(&jme->rxclean_task);
2394-
tasklet_disable(&jme->rxempty_task);
2395-
}
2396-
}
2397-
2398-
static inline void jme_resume_rx(struct jme_adapter *jme)
2399-
{
2400-
struct dynpcc_info *dpi = &(jme->dpi);
2401-
2402-
if (test_bit(JME_FLAG_POLL, &jme->flags)) {
2403-
JME_NAPI_ENABLE(jme);
2404-
} else {
2405-
tasklet_enable(&jme->rxclean_task);
2406-
tasklet_enable(&jme->rxempty_task);
2407-
}
2408-
dpi->cur = PCC_P1;
2409-
dpi->attempt = PCC_P1;
2410-
dpi->cnt = 0;
2411-
jme_set_rx_pcc(jme, PCC_P1);
2412-
2413-
atomic_inc(&jme->link_changing);
2414-
}
2415-
24162374
static void
24172375
jme_get_drvinfo(struct net_device *netdev,
24182376
struct ethtool_drvinfo *info)

0 commit comments

Comments
 (0)