aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorNathan Huckleberry <[email protected]>2022-09-29 11:19:47 -0700
committerDavid S. Miller <[email protected]>2022-10-03 08:07:40 +0100
commit73ea735073599430818e89b8901452287a15a718 (patch)
tree9bf02d411a381ec63bbea33922ada7bd06a7b9b3 /scripts/generate_rust_analyzer.py
parent7a62ed61367b8fd01bae1e18e30602c25060d824 (diff)
net: sparx5: Fix return type of sparx5_port_xmit_impl
The ndo_start_xmit field in net_device_ops is expected to be of type netdev_tx_t (*ndo_start_xmit)(struct sk_buff *skb, struct net_device *dev). The mismatched return type breaks forward edge kCFI since the underlying function definition does not match the function hook definition. The return type of sparx5_port_xmit_impl should be changed from int to netdev_tx_t. Reported-by: Dan Carpenter <[email protected]> Link: https://github.com/ClangBuiltLinux/linux/issues/1703 Cc: [email protected] Signed-off-by: Nathan Huckleberry <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions