ltq-ptm: fix build with kernel 5.4

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2023-03-16 13:06:35 +08:00
parent 17daee647c
commit 714401cbed
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 4 additions and 4 deletions

View File

@ -127,7 +127,7 @@ static int ptm_stop(struct net_device *);
static int ptm_napi_poll(struct napi_struct *, int);
static int ptm_hard_start_xmit(struct sk_buff *, struct net_device *);
static int ptm_ioctl(struct net_device *, struct ifreq *, int);
static void ptm_tx_timeout(struct net_device *, unsigned int txqueue);
static void ptm_tx_timeout(struct net_device *);
/*
* DSL Data LED
@ -511,7 +511,7 @@ static int ptm_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
return 0;
}
static void ptm_tx_timeout(struct net_device *dev, unsigned int txqueue)
static void ptm_tx_timeout(struct net_device *dev)
{
int ndev;

View File

@ -77,7 +77,7 @@ static int ptm_stop(struct net_device *);
static int ptm_napi_poll(struct napi_struct *, int);
static int ptm_hard_start_xmit(struct sk_buff *, struct net_device *);
static int ptm_ioctl(struct net_device *, struct ifreq *, int);
static void ptm_tx_timeout(struct net_device *, unsigned int txqueue);
static void ptm_tx_timeout(struct net_device *);
static inline struct sk_buff* alloc_skb_rx(void);
static inline struct sk_buff* alloc_skb_tx(unsigned int);
@ -451,7 +451,7 @@ static int ptm_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
return 0;
}
static void ptm_tx_timeout(struct net_device *dev, unsigned int txqueue)
static void ptm_tx_timeout(struct net_device *dev)
{
ASSERT(dev == g_net_dev[0], "incorrect device");