KSPP / linux

Linux kernel source tree (Kernel Self Protection Project)
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project
Other
80 stars 5 forks source link

Fix -Wcast-function-type-strict warnings in drivers/net/ethernet/brocade/bna/ #240

Closed GustavoARSilva closed 1 year ago

GustavoARSilva commented 1 year ago

There are a total of 227 warnings like these:

drivers/net/ethernet/brocade/bna/bna_enet.c:519:3: warning: cast from 'void (*)(struct bna_ethport *, enum bna_ethport_event)' to 'bfa_fsm_t' (aka 'void (*)(void *, int)') converts to incompatible function type [-Wcast-function-type-strict]
                bfa_fsm_set_state(ethport, bna_ethport_sm_down);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GustavoARSilva commented 1 year ago

https://lore.kernel.org/linux-hardening/Y3UXABuDwOS8Jnxc@work/