linux驱动ioctl报[ | 您所在的位置:网站首页 › incompartible › linux驱动ioctl报[ |
error: initialization of ‘long int (*)(struct file *, unsigned int, long unsigned int)’ from incompatible pointer type ‘int (*)(struct file *, unsigned int, long unsigned int)’ [-Werror=incompatible-pointer-types] .unlocked_ioctl = sys_led_ioctl, ^~~~~~~~~~~~~
返回值类型错误,将返回值类型改为long int即可
|
CopyRight 2018-2019 实验室设备网 版权所有 |