![]() In order to make the entire kernel usable under Clang's Control Flow Integrity protections, function prototype casts need to be avoided because this will trip CFI checks at runtime (i.e. a mismatch between the caller's expected function prototype and the destination function's prototype). Many of these cases can be found with -Wcast-function-type, which found that the rtl wifi drivers had a bunch of needless function casts. Remove function casts for tasklet callbacks in the various drivers. Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/201911150926.2894A4F973@keescook Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
basic_types.h | ||
drv_types.h | ||
fw.h | ||
hal8188e_phy_cfg.h | ||
hal8188e_phy_reg.h | ||
hal8188e_rate_adaptive.h | ||
hal_com.h | ||
hal_intf.h | ||
HalVerDef.h | ||
ieee80211.h | ||
mlme_osdep.h | ||
mon.h | ||
odm.h | ||
odm_debug.h | ||
odm_hwconfig.h | ||
odm_precomp.h | ||
odm_rtl8188e.h | ||
odm_types.h | ||
osdep_intf.h | ||
osdep_service.h | ||
phy.h | ||
phydm_reg.h | ||
phydm_regdefine11n.h | ||
pwrseq.h | ||
pwrseqcmd.h | ||
recv_osdep.h | ||
rf.h | ||
rtl8188e_cmd.h | ||
rtl8188e_dm.h | ||
rtl8188e_hal.h | ||
rtl8188e_recv.h | ||
rtl8188e_spec.h | ||
rtl8188e_xmit.h | ||
rtw_android.h | ||
rtw_ap.h | ||
rtw_cmd.h | ||
rtw_debug.h | ||
rtw_eeprom.h | ||
rtw_efuse.h | ||
rtw_event.h | ||
rtw_ht.h | ||
rtw_ioctl.h | ||
rtw_ioctl_set.h | ||
rtw_iol.h | ||
rtw_led.h | ||
rtw_mlme.h | ||
rtw_mlme_ext.h | ||
rtw_pwrctrl.h | ||
rtw_recv.h | ||
rtw_rf.h | ||
rtw_security.h | ||
rtw_sreset.h | ||
rtw_xmit.h | ||
sta_info.h | ||
usb_ops_linux.h | ||
wifi.h | ||
wlan_bssdef.h | ||
xmit_osdep.h |