Thread (3 messages) flat view 3 messages, 3 authors, 2022-09-03

Re: [PATCH] net: broadcom: Fix return type for implementation of

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2022-09-02 15:46:49


On 9/2/2022 12:54 AM, GUO Zihua wrote:
Since Linux now supports CFI, it will be a good idea to fix mismatched
return type for implementation of hooks. Otherwise this might get
cought out by CFI and cause a panic.

bcm4908_enet_start_xmit() would return either NETDEV_TX_BUSY or
NETDEV_TX_OK, so change the return type to netdev_tx_t directly.

Signed-off-by: GUO Zihua <redacted>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help