aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorNathan Huckleberry <[email protected]>2022-09-14 14:10:57 -0700
committerGreg Kroah-Hartman <[email protected]>2022-09-24 13:07:31 +0200
commitb77599043f00fce9253d0f22522c5d5b521555ce (patch)
tree7f6bff1119cecc762ac2c31b9c73e626955b830d /lib/string_helpers.c
parent9fabdbe8bcce08faaa51f618a87e3bf3ac264462 (diff)
staging: octeon: Fix return type of cvm_oct_xmit and cvm_oct_xmit_pow
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 cvm_oct_xmit and cvm_oct_xmit_pow should be changed from int to netdev_tx_t. Link: https://github.com/ClangBuiltLinux/linux/issues/1703 Cc: [email protected] Reported-by: Dan Carpenter <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Nathan Huckleberry <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions